PDA

View Full Version : How do you delete topics in this forum?


slangdon
10-02-2003, 01:47 AM
How do you delete topics in this forum?

joelt
10-03-2003, 03:18 AM
Here is an example...

[quote]<html>[b]
<formmethod="get"name="my_form">
<inputname="search"id="search"><inputtype="submit">
</form>
<scriptlanguage="javascript">
document.forms["my_form"].elements["search"].focus();
</script>
</body></html></CODE>
... be sure to post the script after the form, or load the script on [quote][b]</CODE>

kiddanger
10-13-2003, 04:16 AM
[quote]
<html>
<head>
<scripttype="text/javascript">
function_setFocus(){
document.getElementById("txtInput1").focus();
}
</script>
</head>
[b]
<formid="Form1"method="post"runat="server">
InputBox1:<asp:TextBoxID="txtInput1"Runat="server"Width="50"/>[b]
InputBox2:<asp:TextBoxID="txtInput2"Runat="server"Width="50"/>[b]
</form>
</body>
</html>

</CODE>

-kid-

AllanS
10-20-2003, 01:21 AM
Here is a VB-centric solution:

Dim strBuilder As System.Text.StringBuilder = New System.Text.StringBuilder()
strBuilder.Append("<script language='vbscript'>")
strBuilder.Append("frmMain.txtLogin.focus()")
strBuilder.Append("</script>")
RegisterStartupScript("Focus", strBuilder.ToString)


Note: frmMain is the id of the ASPX form where the textbox lives:

<form id=frmMain method=post runat="server">




Allan Sieker
Eureka, MO