JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 30th, 2007, 10:23 AM
Caralynn Caralynn is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 3 Caralynn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 18 sec
Reputation Power: 0
Refresh iframe from nested popup

I am a first time poster, so I hope I can explain myself clearly.

I have a Page1.htm that contains an iframe with an id of iframe1. iframe1 loads page2.htm. Page2.htm opens a pop-up window Page3.htm. During the onunload event of Page3.htm I would like to refresh the contents of the iframe located on Page1.htm. I have tried the following code:

top.frames['iframe1'].location.reload(true) and different variation using parent and opener but I always receive the following error message:

top.iframe1.location is null or not an object. Any ideas on what I am doing wrong?

Thank you in advance.

Reply With Quote
  #2  
Old April 3rd, 2007, 05:58 AM
ravs ravs is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Location: gurgaon, haryana, india
Posts: 60 ravs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 44 m 29 sec
Reputation Power: 3
Send a message via Yahoo to ravs
Smile

hey do 1 thing


Window.opener.location.href="SOMEURL";

if u will do this then ....Popup will go and search it,s opener.. and the opener is IFRAM... it will be done autometically...


But if u u havedone submit on the pop in past then its current connection will be disconnected from POP UP..

Reply With Quote
  #3  
Old April 3rd, 2007, 07:25 AM
Caralynn Caralynn is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 3 Caralynn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 18 sec
Reputation Power: 0
Quote:
Originally Posted by ravs
hey do 1 thing


Window.opener.location.href="SOMEURL";

if u will do this then ....Popup will go and search it,s opener.. and the opener is IFRAM... it will be done autometically...


But if u u havedone submit on the pop in past then its current connection will be disconnected from POP UP..


Thank you for the reply. Yes that does reload the opener page, but what I would really like is only the iframe on that page to load. Any ideas?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Refresh iframe from nested popup


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT