![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. |
#3
| |||
| |||
|
|
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. |
#4
| |||
| |||
|
|
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. |
#5
| |||
| |||
|
|
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. |
#6
| |||
| |||
|
|
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. |
#7
| |||
| |||
|
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |