Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 20th, 2008, 09:15 AM
Authorized User
 
Join Date: Jun 2006
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default parent.location.reload() not working in FireFox

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
 
Old February 20th, 2008, 09:27 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

What does this have to do with C#?

Try using this instead of .reload():
parent.location = parent.location;

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
 
Old February 25th, 2008, 01:18 AM
Authorized User
 
Join Date: Jun 2006
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default


 Thanks for ur time dparsons !
           But
             parent.location = parent.location;
           did not work in FireFox.

 
Old February 25th, 2008, 05:35 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Again, this has nothing to do with C#.

If the offered solution doesn't answer your question then I'd recommend finding a forum related more to your problem.

/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
window.location.reload(false); crmpicco Javascript How-To 2 September 4th, 2008 04:21 AM
reload parent page from included page sbkumar Javascript 2 July 24th, 2008 03:56 PM
parent.location.reload() issue in FireFox AbrarNazeer Javascript 1 February 21st, 2008 09:07 AM
IE7 and parent.location not working? Camer Javascript How-To 2 April 24th, 2007 09:30 AM
Reload Parent form from Child form maulik33 ASP.NET 2.0 Basics 2 February 6th, 2007 12:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.