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. 2 6802
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]
"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? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.
|
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:
|
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>
|
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
|
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>
| |
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>
|
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)
|
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)
|
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...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |