JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 19th, 2002, 02:07 PM
Malted_Monkey Malted_Monkey is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 18 Malted_Monkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry IFrame and Javascript

hey,

I am in desperate need of a mechanism through which i can tell if a page in an IFRAME has redirected to another page. Specifically i want to run a javascript function AFTER the page in the iframe has changed (been redirected to another page).

i have no problem attaching a function to the onunload event of the page. the problem is that onunload is obviously not the same a onload of the new page. so i get stuck in a situation where i know the page has just unloaded but the new page hasn;t loaded.

so there are 2 things that would help me:

1) a way in javascript written on the page containing the iframe to tell the browser to let the iframe continue loading after i recognize the onunload event. that way i can call that function and when it is done i know that the new ifram page has loaded.

2) a way to make an event happen in the iframe AFTER a new page has loaded in the frame. this event needs to be viewable by the page containing the iframe tag.

thanks for any help

-me

Reply With Quote
  #2  
Old February 19th, 2002, 02:59 PM
Malted_Monkey Malted_Monkey is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 18 Malted_Monkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Found answer

well,

searched around for a couple of hours and i finally found my own answer

basically it was the easiest, just put in an onload="functionName" into the iframe tag. (i'm guaranteed to be using IE 5 b/c of the app i'm working on).

anyway, for a more complete answer, including a possibly functional solution for NS check out:

http://www.faqts.com/knowledge_base/view.phtml/aid/7418

-me

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > IFrame and Javascript

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap