Current location: Hot Scripts Forums » General Web Coding » JavaScript » Refreshing a frame, when another frame is loaded


Refreshing a frame, when another frame is loaded

Reply
  #1 (permalink)  
Old 11-12-04, 11:28 AM
Dion's Avatar
Dion Dion is offline
Newbie Coder
 
Join Date: Jun 2004
Location: NL
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Refreshing a frame, when another frame is loaded

Hi, I'm making a game in php, but the problem I'm dealing with now, can't be done in php...

The page has multiple frames, on the left side there is the frame with the buttons, like login, register and so on.
When you log in, a script will be run in the mainFrame to log you in with a cookie.
If the cookie is created, the left frame will show different buttons, like store, messages, and so on, but this only happens when the leftFrame is refreshed.

Is there a javascript for refreshing other frames?? So I can put it into the mainFrame.
__________________
just a n00b trying to learn php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-19-04, 03:18 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
You could try something like this:
Code:
function Refresh_Frame(){
 window.parent.leftFrame.document.location.reload()
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thumnail images opening up in other frame FinalFan JavaScript 2 10-08-04 02:38 PM
Multiple frame loading El Barto HTML/XHTML/XML 0 09-22-04 06:05 PM
get the url of a target frame elf JavaScript 1 11-27-03 03:30 PM
How to delay a frame load nachetex ASP 6 10-28-03 10:46 AM


All times are GMT -5. The time now is 01:46 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.