Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To 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 January 9th, 2006, 07:08 AM
Registered User
 
Join Date: Jan 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Javascript Refresh targetted window

I have a window (lets call this 'one') which loads an iframe ('two'). In the 'one' I also have a button which brings up a popup ('three').

The 'three' contains a form and 'two' contains the existing data in the db that was submitted through the form.

What I am trying to do is once the form is submitted (in 'three') to have ONLY the iframe update.

Is this possible? window.opener.location.reload(true) reloads the main page ('one') and this is bad as it resets the data in there.

help me please!

 
Old January 9th, 2006, 07:23 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Code:
window.opener.top.frames["two"].location.reload(true);
--

Joe (Microsoft MVP - XML)
 
Old January 9th, 2006, 08:17 AM
Registered User
 
Join Date: Jan 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by joefawcett
 
Code:
window.opener.top.frames["two"].location.reload(true);


--

Joe (Microsoft MVP - XML)
<body onload="window.opener.top.frames["articleassets"].location.reload(true);">

doesn't work.



 
Old January 9th, 2006, 08:18 AM
Registered User
 
Join Date: Jan 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by joefawcett
 
Code:
window.opener.top.frames["two"].location.reload(true);


--

Joe (Microsoft MVP - XML)
<body onload=\"window.opener.top.frames[\"articleassets\"].location.reload(true);\">

doesn't work.



 
Old January 9th, 2006, 08:23 AM
Registered User
 
Join Date: Jan 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Works fine with single quotes. Thanks joefawcett!

PS for some strange reason my previous two posts got cut.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Window refresh and window pop up in Java Script Aleksandra Javascript How-To 2 March 2nd, 2007 06:47 PM
Unnecessary refresh of parent window swati_joshi ASP.NET 1.0 and 1.1 Professional 7 September 19th, 2006 08:13 AM
get popup window value without refresh qadeerahmad General .NET 6 August 4th, 2006 10:49 AM
refresh the parent window when closing the popup ram_siddinen VS.NET 2002/2003 1 January 30th, 2004 04:05 PM
window.opener.refresh matt.fields Javascript How-To 1 November 3rd, 2003 05:13 AM





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