eramgarden Posted April 14, 2004 Posted April 14, 2004 Dont know how to do this: I have a page with 2 panels on it. If I login with Mode1, Panel1 is displayed. If I login with Mode2, Panel2 is displayed. I want to set foucs on a textbox that is displayed in EACH panel For example, I have a textbox in Panel1 named txtIncid and one in panel2, named txtIncid8. This is what I did but It doesnt work because I always pass it the same value: <script LANGUAGE="JavaScript"> function setFocus(x) { if (x=="txtIncid"){ document.Form1.elements[x].focus(); } else{ document.Form1.elements['txtIncid8'].focus(); } } </script> and then In the Body, I have this: <body MS_POSITIONING="GridLayout" OnLoad="setfocus('txtIncid')"> any ideas? Quote
Moderators Robby Posted April 14, 2004 Moderators Posted April 14, 2004 you can AddAtributes to the Body from your server code. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.