473,498 Members | 310 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Clearing IFrame SRC property works from Mozilla/FireFox but not IE

I have Javascript code that clears the SRC property of an IFRAME during the
onload event of a web page, if a certain flag is set. In Mozilla/FireFox
the clearing of the SRC property works fine and the browser does not attempt
to load the document. That document being the one that was specified in the
SRC property, before it was erased.

In Internet Explorer, the code appears to clear the SRC property properly.
If I trace the code, the MSDEV debugger does show the SRC property as empty
after the statement that clears it. However, the browser still tries to
load the document specified in the SRC property despite the fact it does
*not* display the contents of the document in the IFRAME.

I know it's still trying to load the document because the document is a PHP
document running in the Zend PHP debugger, with a breakpoint set in it.

How can I stop IE from trying to load the document?

Thanks.
Jul 28 '05 #1
2 6781
Robert Oschler wrote:
I have Javascript code that clears the SRC property of an IFRAME during the
onload event of a web page, if a certain flag is set. In Mozilla/FireFox
the clearing of the SRC property works fine and the browser does not attempt
to load the document. That document being the one that was specified in the
SRC property, before it was erased.

In Internet Explorer, the code appears to clear the SRC property properly.
If I trace the code, the MSDEV debugger does show the SRC property as empty
after the statement that clears it. However, the browser still tries to
load the document specified in the SRC property despite the fact it does
*not* display the contents of the document in the IFRAME.

I know it's still trying to load the document because the document is a PHP
document running in the Zend PHP debugger, with a breakpoint set in it.

How can I stop IE from trying to load the document?

Thanks.

It would help to have a URL or a snippet of script [URL = better]
Jul 29 '05 #2

"Robert Oschler" <no************@nospam.com> wrote in message
news:iu********************@adelphia.com...
I have Javascript code that clears the SRC property of an IFRAME during the onload event of a web page, if a certain flag is set. In Mozilla/FireFox
the clearing of the SRC property works fine and the browser does not attempt to load the document. That document being the one that was specified in the SRC property, before it was erased.

In Internet Explorer, the code appears to clear the SRC property properly.
If I trace the code, the MSDEV debugger does show the SRC property as empty after the statement that clears it. However, the browser still tries to
load the document specified in the SRC property despite the fact it does
*not* display the contents of the document in the IFRAME.

I know it's still trying to load the document because the document is a PHP document running in the Zend PHP debugger, with a breakpoint set in it.

How can I stop IE from trying to load the document?

Thanks.


make sure src is empty before the page loads?
Jul 29 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
5713
by: gsb | last post by:
Don't know if this is the right place to post this JavaScript issue. If not, could someone point me in the right direction please. I am trying to make a "cross browser compliant" floating...
6
18688
by: Phlip | last post by:
JavaScripties: On the HTML side, we load an IFRAME with a blank page: <iframe frameborder="0" marginwidth="0" marginheight="0" scrolling="off" src="about:blank" id="iframe_xml1!format_text"...
26
3194
by: shlomi.schwartz | last post by:
using this example: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Test Page</title> </head>
13
4110
by: Fernando Deutsch | last post by:
I have an html page with an iframe on it. Inside the iframe there is an img element. I am looking how to reference the iframe from the img element contained on it and cannot find a way to do it. I...
9
11139
by: aatcbbtccctc | last post by:
Hi folks I've googled for an answer to this, with no success. Can someone please jump in, and put me out of my misery! (I'm sure it's quite simple) I have an invisible IFRAME, and a visible...
14
18252
by: Aaron Gray | last post by:
Hi, I want to access the properties of an IFrame but seem unable to get access to the IFrames document body. <html> <body> <iframe src="test.html" id="IFrame"></iframe> </body>
1
10591
by: sam | last post by:
Hi all, Hope some expert can help me resolve this. I am using the following code to resize an iframe according to the content in it so that the iframe does not use its scroll bar and uses the...
6
11064
by: Bob | last post by:
Hi All, Is the following possible, and if so could someone show me some example code please :o) I have a web page with several iframes, and I want to be able to refresh them only not the...
10
3424
by: worldwideebm | last post by:
This is a problem that i have googled for hours and can't find an answer so i resort to asking on here because i found similar question on here. I have a page i use, It has an iframe on it but it...
0
7124
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6998
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7163
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6884
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7375
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5460
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4904
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1416
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.