Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Stop request in an IFrame

Posted on 2006-04-13
3
Medium Priority
?
579 Views
Last Modified: 2008-03-10
In IE, when you have a hanging page in an IFrame, there seems to be no way to stop the request. The stop button only functions for the root page. How could you stop a page running in an iframe. Is there a way to do this programmically. Refreshing the browser is not an option for this application.
0
Comment
Question by:elmoredaniel
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
ysre earned 2000 total points
ID: 16458135
Ever tried stopping your <iframe> request via .stop() ?

Eg.
var myiframe = document.getElementById("iframeid");
myiframe.stop();

IIRC IFrames are actually considered as a window, not a frame, which is why using window.stop() makes sense (IMO anyways).

Ys
0
 

Author Comment

by:elmoredaniel
ID: 16458274
Wow, I've been doing JS for years, don't know how I missed that one. Thanks!
0
 
LVL 4

Expert Comment

by:ysre
ID: 16458292
LOL no prob.
Sometimes you just have to think in a wider scape (which is kinda difficult while struggling with a problem).

IFRAMEs always _behaved_ like windows which is why I thought of this :)

Ys
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question