Page 1 of 1

Refresh Frame

Posted: Fri Dec 10, 2004 6:42 am
by asterinex
Hello,

It might be not the right forum, but most likely you no the problem

I have 2 frames. 1 main frame where the user loggs in.

The second frame refreshe iteself every 30 seconds and display if you are online or not. But if you log in in it possible that it takes 30 sec. to see that you are online. Is there a way to refresh the seconde frame with code.?

Thanks!

Posted: Fri Dec 10, 2004 9:43 am
by GhostXL

Code: Select all

<script language='JavaScript' type='text/JavaScript'>
           parent.frames&#1111;'FrameName'].location.reload()
</script>
or

Code: Select all

<a href="javascript: parent.frames&#1111;'FrameName'].location.reload()">Reload Window</a>
or

Code: Select all

onClick="parent.frames&#1111;'FrameName'].location.reload()"

Replace FrameName with the name of ur frame.

Posted: Fri Dec 10, 2004 10:01 am
by dull1554
if you use a form so send the users name and pass to login, you could use onSubmit instead of on click like this

Code: Select all

<form name="blah" action="blah.php" method="post" onSubmit="parent.frames&#1111;'FrameName'].location.reload()"></form>

Posted: Fri Dec 10, 2004 2:06 pm
by asterinex
Thanks alot !