Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 27th, 2007, 03:45 AM
Registered User
 
Join Date: Jun 2007
Location: Chennai, Tamilnadu, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default window.opener.document.parentWindow in Mozilla

Hi,

 After submitting the page,used this script
document.forms['Form1'].submit();
window.opener.document.parentWindow.history.go(0);
window.close();

window.opener.document.parentWindow.history.go(0) its working fine in IE, but we got script error in Mozilla . In opera we dont get any javascript error but the page is not refresh...

Anyone help me ....

Mohammed Ali
__________________
Mohammed Ali
Reply With Quote
  #2 (permalink)  
Old June 27th, 2007, 01:24 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: High Wycombe, UK, United Kingdom.
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

parentWindow is not valid JS, try using parent.window instead
Reply With Quote
  #3 (permalink)  
Old June 28th, 2007, 01:20 AM
Registered User
 
Join Date: Jun 2007
Location: Chennai, Tamilnadu, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I wrote this line in end of the code behind, its working fine all the browsers..
Response.Write("<script language=JavaScript>window.close();</script>");
                Response.Write("<script language=JavaScript>window.opener.location.reload( );</script>");

Thanks for ur help....:)

Mohammed Ali
Reply With Quote
Reply


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 Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
window.opener for mozilla jun99 Javascript 3 September 1st, 2009 08:57 AM
opener.document davidph Javascript 2 May 26th, 2007 01:36 AM
'window.opener.document' error in IE Colleen Javascript How-To 1 July 25th, 2006 07:57 PM
Problem accessing the window.opener.opener maryuob Javascript 3 January 18th, 2006 04:25 AM
window.opener help fs22 Javascript How-To 6 May 9th, 2004 10:50 PM



All times are GMT -4. The time now is 12:58 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.