473,848 Members | 1,665 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 6806
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******** ************@ad elphia.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
5748
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 iFrame. Not real fancy, just load, resize and move. But, I do not have the browsers, OSs and different machines (like Mac) to test the code on. So I need some help to see where this basic example of works and does not work.
6
18720
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" name="iframe_xml1!format_text" width="90%" height=" 180 ">Your browser is inferior and doesn't support IFRAMEs.</iframe> Later, a button click populates this frame:
26
3287
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
4153
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 am using FireFox 1.5.0.1 I am looking for something like myImg.container. Can someone help me ? Thanks in advance
9
11203
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 DIV: <IFRAME id=myframe style="display:none" src="..." onload="ShowNews(this)"></IFRAME>
14
18314
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
10639
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 parent window scroll bar. This code works perfectly fine in IE but not in Firefox.. The iframe does not resize according to the content. function resizeIframe(id)
6
11100
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 entire web page but also to refresh them at different time intervals. I've tried a few ways but it ends up refreshing the entire page, doh. I've tried with DIV's and objects aswell but no joy, I'm sure it must be possible and I'm been a thicket ;o)
10
3459
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 is not regular iframe, The iframe has a resizing script that resizes the height of the iframe to the height of the page being viewed. Using this script it eliminates scrolling! This has all been working out great but then i realise for it to...
0
9893
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11001
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10664
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10722
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10348
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7894
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5735
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4137
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3175
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.