Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

Tabbing through the page / iframe problem

Experts,

I have reloading iframe inside the page.
Each time it reloads (every 30 sec) it puts the focus on address string of the browser (IE 6).
If you filling out the web form in that moment, it jumps to the address string next time you click TAB key.

How can I avoid those tab jumpings?

Thanks.
0
ditkis
Asked:
ditkis
  • 2
  • 2
1 Solution
 
superm401Commented:
Please post your code.
0
 
ditkisAuthor Commented:
That's my Iframe's html peice:

   <html>
   <head>
   <script type="text/javascript">
   function pageReLoad() {
     window.location.reload();
   }
   </script>
   </head>
   <body onload="setTimeout('pageReLoad()',30000);">
   ..... SOME CODE .....  
   </body>
   </html>

Iframe inclusion into parent html is standard.
0
 
dakydCommented:
How about doing this?  The idea is to have the "parent page" do the refreshing rather than the document within the iframe.  You can tab around normally within the inputs in this page, even after the iframe has been refreshed.  Hope that helps.

<html>
<head>
<script type="text/javascript">
window.onload = setReload;

function setReload()
{
  theFrame = document.getElementById("ifrm");
  setInterval("theFrame.src = theFrame.src;", 30000);
}
</script>
</head>

<body>
<form>
  <input type="text" />
  <input type="text" />
  <input type="text" />
</form>

<iframe id="ifrm" name="ifrm" src="test.html"></iframe>
</body>
</html>
0
 
ditkisAuthor Commented:
It is works, but now I have "pop-up" sound click every 30 secs, is there a way to rid of it?
0
 
dakydCommented:
Sorry, didn't notice your comment until now.  The "pop up" sound is system generated, there's no way to turn it off that I know of.  
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now