HighDots Forums  

Removed iframe still loads

jQuery jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.


Discuss Removed iframe still loads in the jQuery forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Subtle
 
Posts: n/a

Default Removed iframe still loads - 11-04-2009 , 06:52 PM






When trying to remove an iframe from the dom (i.e. $('iframe').remove
()) while the iframe is still loading, the iframe is removed, however
the main browsers progress bar indicates that the iframe is still
loading. Is there a way to stop it from loading and remove it?

Thanks.

Reply With Quote
  #2  
Old   
Subtle
 
Posts: n/a

Default Re: Removed iframe still loads - 11-18-2009 , 09:45 AM






Anyone?

On Nov 4, 4:52*pm, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:
Quote:
When trying to remove aniframefrom the dom (i.e. $('iframe').remove
()) while theiframeis still loading, theiframeisremoved, however
the main browsers progress bar indicates that theiframeis still
loading. *Is there a way to stop it from loading and remove it?

Thanks.

Reply With Quote
  #3  
Old   
Subtle
 
Posts: n/a

Default Re: Removed iframe still loads - 11-18-2009 , 09:54 AM



Figured it out. I was removing the iframes container (div), and not
the iframe specifically. To fix the problem I had to target the
iframe specifically and remove it, and then it's container.

On Nov 18, 7:45*am, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:
Quote:
Anyone?

On Nov 4, 4:52*pm, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:

When trying to remove aniframefrom the dom (i.e. $('iframe').remove
()) while theiframeis still loading, theiframeisremoved, however
the main browsers progress bar indicates that theiframeis still
loading. *Is there a way to stop it from loading and remove it?

Thanks.


Reply With Quote
  #4  
Old   
Subtle
 
Posts: n/a

Default Re: Removed iframe still loads - 11-18-2009 , 10:01 AM



Actually that still didn't work...

On Nov 18, 7:54*am, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:
Quote:
Figured it out. *I was removing the iframes container (div), and not
the iframe specifically. *To fix the problem I had to target the
iframe specifically and remove it, and then it's container.

On Nov 18, 7:45*am, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:

Anyone?

On Nov 4, 4:52*pm, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:

When trying to remove aniframefrom the dom (i.e. $('iframe').remove
()) while theiframeis still loading, theiframeisremoved, however
the main browsers progress bar indicates that theiframeis still
loading. *Is there a way to stop it from loading and remove it?

Thanks.


Reply With Quote
  #5  
Old   
StephenJacob
 
Posts: n/a

Default Re: Removed iframe still loads - 11-18-2009 , 10:08 AM



Hi Subtle, I'm a little confused to exactly what's going on. Do you
have a link/example I can check out?

On Nov 18, 10:01*am, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:
Quote:
Actually that still didn't work...

On Nov 18, 7:54*am, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:

Figured it out. *I was removing the iframes container (div), and not
the iframe specifically. *To fix the problem I had to target the
iframe specifically and remove it, and then it's container.

On Nov 18, 7:45*am, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:

Anyone?

On Nov 4, 4:52*pm, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:

When trying to remove aniframefrom the dom (i.e. $('iframe').remove
()) while theiframeis still loading, theiframeisremoved, however
the main browsers progress bar indicates that theiframeis still
loading. *Is there a way to stop it from loading and remove it?

Thanks.

Reply With Quote
  #6  
Old   
Subtle
 
Posts: n/a

Default Re: Removed iframe still loads - 11-18-2009 , 10:14 AM



Hi, actually I currently don't. Basically I have an iframe on a page
that loads a very large file. On the page there is a button that when
clicked, will remove the iframe's container (the div): $
('#iframeContainer').remove();

What I expected to happen was that after the iframeContainer was
removed, the browser would stop trying to finish the request made by
the iframe. Instead, even though the iframe was removed, the browser
was still trying to load the big file.

I think I figured it out though. If I set the src on the iframe to
something like src="#" and then remove it, then it appears to work and
the iframe stops loading.

Thanks

On Nov 18, 8:08 am, StephenJacob <turnstylecreat... (AT) gmail (DOT) com> wrote:
Quote:
Hi Subtle, I'm a little confused to exactly what's going on. Do you
have a link/example I can check out?

On Nov 18, 10:01 am, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:

Actually that still didn't work...

On Nov 18, 7:54 am, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:

Figured it out. I was removing the iframes container (div), and not
the iframe specifically. To fix the problem I had to target the
iframe specifically and remove it, and then it's container.

On Nov 18, 7:45 am, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:

Anyone?

On Nov 4, 4:52 pm, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:

When trying to remove aniframefrom the dom (i.e. $('iframe').remove
()) while theiframeis still loading, theiframeisremoved, however
the main browsers progress bar indicates that theiframeis still
loading. Is there a way to stop it from loading and remove it?

Thanks.


Reply With Quote
  #7  
Old   
StephenJacob
 
Posts: n/a

Default Re: Removed iframe still loads - 11-18-2009 , 10:20 AM



No, thank you for posting the solution!

Good job and good luck.

On Nov 18, 10:14*am, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:
Quote:
Hi, actually I currently don't. *Basically I have an iframe on a page
that loads a very large file. *On the page there is a button that when
clicked, will remove the iframe's container (the div): $
('#iframeContainer').remove();

What I expected to happen was that after the iframeContainer was
removed, the browser would stop trying to finish the request made by
the iframe. *Instead, even though the iframe was removed, the browser
was still trying to load the big file.

I think I figured it out though. *If I set the src on the iframe to
something like src="#" and then remove it, then it appears to work and
the iframe stops loading.

Thanks

On Nov 18, 8:08 am, StephenJacob <turnstylecreat... (AT) gmail (DOT) com> wrote:

*Hi Subtle, I'm a little confused to exactly what's going on. Do you
have a link/example I can check out?

On Nov 18, 10:01 am, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:

Actually that still didn't work...

On Nov 18, 7:54 am, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:

Figured it out. *I was removing the iframes container (div), and not
the iframe specifically. *To fix the problem I had to target the
iframe specifically and remove it, and then it's container.

On Nov 18, 7:45 am, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:

Anyone?

On Nov 4, 4:52 pm, Subtle <subtlekil... (AT) gmail (DOT) com> wrote:

When trying to remove aniframefrom the dom (i.e. $('iframe').remove
()) while theiframeis still loading, theiframeisremoved, however
the main browsers progress bar indicates that theiframeis still
loading. *Is there a way to stop it from loading and remove it?

Thanks.

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.