Refresh Frame

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
asterinex
Forum Commoner
Posts: 52
Joined: Thu Nov 25, 2004 7:01 am
Location: Belgium

Refresh Frame

Post 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!
User avatar
GhostXL
Forum Newbie
Posts: 12
Joined: Sun Nov 28, 2004 10:58 am
Location: Netherlands

Post 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.
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post 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>
asterinex
Forum Commoner
Posts: 52
Joined: Thu Nov 25, 2004 7:01 am
Location: Belgium

Post by asterinex »

Thanks alot !
Post Reply