473,396 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Dynamic load of js script failure in IE 6

rh
Executing the script given below Opera, Netscape and Mozilla
successfully load the js file in both the "main" and "test" window.
However, while IE 6 manages to load OK in "main", it produces the
"Load failed in test" alert.

IE behaviour is the same if a local file is used for the js source, so
the problem doesn't appear to be zone security related.

Any ideas of what's wrong here, or what needs to be done to get it to
work in IE?

Thanks,

../rh

<html>
<head>
<script type="text/javascript"
src="http://www3.telus.net/rhall/testLoad.js"></script>
<script>
self.name = "main";
if (typeof myFunc != "undefined") alert("Loaded OK in "+self.name);
else alert("Load failed in "+self.name);

var win = window.open("","test");
win.document.open();
win.document.write(
'<html>\n'
+ '<body>\n'
+ '<script type="text/javascript"
src="http://www3.telus.net/rhall/testLoad.js"> <\/script>\n'
+ '<script>\n'
+ ' if (typeof myFunc != "undefined") alert("Loaded OK in
"+self.name);\n'
+ ' else alert("Load failed in "+self.name);\n'
+ '<\/script>\n'
+ '</body>\n'
+ '</html>\n'
);
win.document.close();
</script>
</head>
<body>
</body>
</html>
Jul 20 '05 #1
1 4298
rh
co********@yahoo.ca (rh) wrote in message news:<29**************************@posting.google. com>...
Any ideas of what's wrong here, or what needs to be done to get it to
work in IE?


It turns out on further testing, the load of the js file actually
occurs in the "test" window in IE 6. But the loading is being done
asynchronously, and is not completed at the time the test for the
function presence is carried out. That's not supposed to happen
(unless there's a defer), right?
Jul 20 '05 #2

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

Similar topics

13
by: mr_burns | last post by:
hi, is it possible to change the contents of a combo box when the contents of another are changed. for example, if i had a combo box called garments containing shirts, trousers and hats, when...
4
by: Daniel Keller | last post by:
Hello! I'm trying to set up a page system using "dynamic" SSI. That means that I normally use the following on my website: <!--#include virtual="file.inc" --> Now I want to make this...
1
by: Jason Chan | last post by:
I have a paging datalist which show a list of thumbnail. Above the datalist there is a dropdown to jump to different paging. On Page_load, I bind the datalist according to the current page. On...
19
by: natG | last post by:
On a warehouse app, our Java clients constantly load/insert rows into the db. I would like to throttle these inserts (1.5 million rows per hr) from the Java app, based on current 'busy state' of...
2
by: Lanky | last post by:
I am using the Dynamic Ajax Content script from Dynamic Drive (http://dynamicdrive.com/dynamicindex17/ajaxcontent.htm) and trying to load the Ultimate Fade-In Slide Show also from Dynamic Drive...
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
0
by: liz0001 | last post by:
I have seen many examples on how to use the .load() function to load in static elements, but I am trying to load a dynamic element, specifically a scrollable. I have gotten it to the point where:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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,...
0
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...

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.