Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Closed Thread
parent.location.reload() not working in FireFox
Old 02-21-2008, 01:40 AM parent.location.reload() not working in FireFox
Novice Talker

Posts: 10
Name: Muhammad Abrar
Trades: 0
Help me please....
/////////////////////////////////////////////////////////
myFile.js
/////////////////////////////////////////////////////////
window.onbeforeunload=init;
function init()
{ parent.location.reload(); }
/////////////////////////////////////////////////////////
Above code is working fine on F5 in IE to refresh the IFrame with it's Container Page but failed for FireFox
AbrarNazeer is offline
View Public Profile
 
 
Register now for full access!
Old 02-23-2008, 11:05 AM Re: parent.location.reload() not working in FireFox
Skilled Talker

Posts: 52
Name: Bruce
Trades: 0
Can you use onunload instead of onbeforeunload?
SillyWilly is offline
View Public Profile
 
Old 02-23-2008, 06:01 PM Re: parent.location.reload() not working in FireFox
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Totally correct SillyWilly,
onBeforeUnload is a IE only event.
Look there for a list of the "standards" events and their support in different browsers:
http://www.quirksmode.org/js/events_compinfo.html
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
View Public Profile Visit tripy's homepage!
 
Old 02-26-2008, 03:16 AM Re: parent.location.reload() not working in FireFox
Novice Talker

Posts: 10
Name: Muhammad Abrar
Trades: 0
SillyWilly, Thanks for ur time. But "window.onunload" is not (working) Refreshing the IFrame with its container page on F5, in both of browsers IE and FireFox. Need ur more time please...
AbrarNazeer is offline
View Public Profile
 
Old 02-26-2008, 04:08 AM Re: parent.location.reload() not working in FireFox
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,528
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Pressing F5 shouldn't create an unload event in any browser, as it is reloading the same page.

Quote:
Refreshing the IFrame with its container page
I'm not quite getting what you mean by this.

Are you trying to refresh the iframe contents or trying to refresh the parent page?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 02-27-2008, 01:35 AM Re: parent.location.reload() not working in FireFox
Novice Talker

Posts: 10
Name: Muhammad Abrar
Trades: 0
chrishirst! In brief my requirement is ...

Background - Banner Images Pairs :
Actually , Iframe displays the Banner Image while Iframe Container Page display the Background Image. on F5 , this pair of images refresh perfectly in IE while in FireFox , Background Image become cached and IFrame refreshed , so the Pair of images become unmatched.
Please share ur good Ideas with me to solve my issue.
AbrarNazeer is offline
View Public Profile
 
Closed Thread     « Reply to parent.location.reload() not working in FireFox
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25158 seconds with 12 queries