I'm using Bean's code and I'm trying to figure out a way to "force focus" to s specific field in the form (actually my form only has one field), whenever the page loads. Does anyone know how to do that?
If that's not clear, basically when the page loads, I want the cursor to be in the form entry box so that the user doesn't have to manually move the cursor there before typing in a command.
I'm using Bean's code and I'm trying to figure out a way to "force focus" to s specific field in the form (actually my form only has one field), whenever the page loads. Does anyone know how to do that?
If that's not clear, basically when the page loads, I want the cursor to be in the form entry box so that the user doesn't have to manually move the cursor there before typing in a command.
-jim-
<FORM NAME="KILLERROBOTS" METHOD=POST><SCRIPT LANGUAGE="JavaScript">
<!-- window.document.KILLERROBOTS.TEXTBOXNAMEGOESHERE.focus(); //-->
</SCRIPT> Have not tested this on Spinneret yet.
From my experience, lockups were due to bugs in my code. The best thing to do is log all HTTP requests so you can see what was going on at the time of the error.
Comments
This will enable text editing of the files via a browser (see pic)
If that's not clear, basically when the page loads, I want the cursor to be in the form entry box so that the user doesn't have to manually move the cursor there before typing in a command.
-jim-
<!-- window.document.KILLERROBOTS.TEXTBOXNAMEGOESHERE.focus(); //-->
</SCRIPT> Have not tested this on Spinneret yet.
It seems as though i saw something about this awhile back, but, when i run this code for a long period of time, it freezes. Any Ideas?
From my experience, lockups were due to bugs in my code. The best thing to do is log all HTTP requests so you can see what was going on at the time of the error.
Post your source!
AAP WEBSERVER - Archive [Date 2011.07.04 Time 13.08].zip
Your code was timely for a Perl application I was working on, thanks!
In some security sensitive applications it might be a good idea to include autocomplete='off' after the <FORM header. i.e. in your example change...
"<FORM METHOD=", QUOTE, "GET", QUOTE, ">"
...to ...
"<FORM autocomplete='off' METHOD='GET'>"
Notice above, you can replace...
"<FORM METHOD=", QUOTE, "GET", QUOTE, ">"
...with...
"<FORM METHOD='GET'>"
...just change the double quotes to single quotes within the main string quotes