Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 Search this Thread Display Modes
  #1 (permalink)  
Old January 9th, 2006, 07:08 AM
Registered User
 
Join Date: Jan 2006
Location: , , .
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!

Reply With Quote
  #2 (permalink)  
Old January 9th, 2006, 07:23 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
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)
Reply With Quote
  #3 (permalink)  
Old January 9th, 2006, 08:17 AM
Registered User
 
Join Date: Jan 2006
Location: , , .
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.



Reply With Quote
  #4 (permalink)  
Old January 9th, 2006, 08:18 AM
Registered User
 
Join Date: Jan 2006
Location: , , .
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.



Reply With Quote
  #5 (permalink)  
Old January 9th, 2006, 08:23 AM
Registered User
 
Join Date: Jan 2006
Location: , , .
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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 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



All times are GMT -4. The time now is 10:01 PM.


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