Hidden frame refresh without losing focus on current frame
Posted on 2004-04-19
I have a frameset with 2 frames: Frame1 and Frame2.
Frame1 is hidden. Frame2 is of 100% height.
Code in 0.asp:
<frameset rows="0,*" frameborder="0" border="0">
<frame src="1.asp" name=Frame1>
<frame src="2.asp" name=Frame2 >
I have code in Frame1 which makes it refresh every 5 secs to retrieve data from the database.
Code in 1.asp:
My asp stuff is here
Frame2 is where I have all the site Browsing going on.
On one particular page in Frame2, I have a form with text input fields.
Code in 2.asp:
input1: <input type="text" name="input1">
input2: <input type="text" name="input2">
input3: <input type="text" name="input3">
input4: <input type="text" name="input4">
input5: <input type="text" name="input5">
<input type=submit value="Submit">
The problem I am facing is that when the user is on 2.asp, filling the form, and 1.asp refreshes as it is supposed to, I lose focus on Frame2 and the next time I hit Tab to go the another form field, I end up in the address bar of the browser.
Is there a way that I can keep the hidden frame refreshing every 5 secs. And the not allowing to Frame2 to lose focus, so that filling the form fields is not a problem.
All Help will be appriciated.