Link to home
Start Free TrialLog in
Avatar of loyaliser
loyaliserFlag for United States of America

asked on

auto refresh frame

i have this code in the html page for the top frame:

<script language="JavaScript">
<!--
function reloadFrame() {
     parent.frames[1].location.reload();
}
setTimeout("reloadFrame(1)", 10);
//-->
</script>

what it is supposed to do is refresh the bottom frame every 10 seconds.

i am running IE 6.0, and i keep getting a javascript error saying PERMISSION DENIED or ACCESS DENIED.

what's the deal? is it not possible to refresh a another frame every 10 seconds from another frame?

thanks...
Avatar of loyaliser
loyaliser
Flag of United States of America image

ASKER

oops, the code should be:

<script language="JavaScript">
<!--
function reloadFrame() {
     parent.frames[1].location.reload();
}
setTimeout("reloadFrame()", 10);
//-->
</script>
You must be trying to refresh cross-domain.  That creates a security problem.  You cannot script across domains.

Cd&
yes, i am actually... the pages i created with the script load up another web site's page in another frame.

so this is a problem? it cannot be done in javascript, vbscript at all?

thanks.
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry there was no real solution for you.  Thanks for the A. :^)

Cd&