At 11:41 AM 01/16/03 -0500, Lofback, Chris wrote:
>Use "formField.focus();"
I tried this. No soap. Interestingly enough, it works in NS 4.8, but not
in IE 6.0.2800.1106 (love that numbering scheme.)
And I just tried it on another machine with IE 5.5, and the same
thing. The alert displays, but when one clicks OK, it moves to the next
field. The code looks like this:
<SCRIPT language="Javascript">
function VerifyCode(formField)
{
if (formField.value != "A")
{
errorMsg="Data "+formField.value+" in
"+formField.name+" is invalid.";
window.alert(errorMsg);
formField.value="A";
formField.focus();
formField.select();
return false;
}
}
</SCRIPT>
And you can see the working code here:
http://www.stuffbythane.com/working/test2.cfm
Thanks for any advice.
T
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4