473,378 Members | 1,539 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,378 software developers and data experts.

Firefox doesn`t load scripts after reconnect

Hi,

I`m using dynamic script tags to dynamically load scripts from a remote server and it works well.

I`m simulating a network issue by disconnecting from the network and reconnecting. Then I`m trying to load scripts again.

On FireBug I can see that the browser gets the correct response from the server but the scripts aren`t being excuted.
On IE7 it works fine.

Is this a know issue with firefox?
Is there a workaround?

Thanks
Dec 17 '07 #1
3 1660
acoder
16,027 Expert Mod 8TB
Post your code which loads the scripts.
Dec 18 '07 #2
steps to reproduce:
- disconnect from the network.
- reconnect
- create a dynamic script tag and request YAHOO services for example - it works!!

now try this:
- disconnect from the network
- create a dynamic script tag. Obviously it wouldn`t work.
- reconnect.
- create another dynamic script tag. It works in IE7 but FF doesn`t execute the script although on firebug I can see the request and response

Expand|Select|Wrap|Line Numbers
  1. var script = document.createElement("script");
  2. script.setAttribute("src", url);
  3. script.setAttribute("type", "text/javascript");
  4. script.setAttribute("id", "someID");
  5. document.getElementsByTagName("head")[0].appendChild(script);
Dec 19 '07 #3
acoder
16,027 Expert Mod 8TB
It may be a caching issue. Try using a unique URL, e.g. with the time appended: url + new Date().getTime()
Dec 20 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: ekimnosnews | last post by:
I'm programming a JS tile map editor for my friend's game. The map editor has different "sections" that contain different tiles. The way that it works is when you select a section it calls a JS...
2
by: Van der Weij | last post by:
Hi, I want to preload some images for a webpage _and_ determing their width and height. The problem is that the scripts continue while the images are loaded in the background, while I need the...
45
by: Pat | last post by:
its seems asp.net validation doesn't fire when using FireFox? Tested a page and it doesn't fire. It seems the javascript doesn't fire Any ideas?
7
by: chris | last post by:
Firefox seems to be restricting JavaScript image loading. The following code works fine in all browsers except Firefox: function loadImage() { var objIcon = document.createElement( 'IMG' );...
4
by: petermichaux | last post by:
Hi, I'm hoping for a reason I'm wrong or an alternate solution... I'd like to be able to dynamically include some javascript files. This is like scriptaculous.js library but their solution is...
2
by: stroumf | last post by:
Hey, My problem is the following: I need to use functions from different javascripts and I don't want to load all the javascripts initially. So I need to load the scripts on demand. Now I know...
12
by: tim | last post by:
I am using foldoutmenu 3 and am having problems with viewing my menus in firefox. On my sub3 menus i have more than one line of text in some places. firefox does not recognise that there is more...
8
by: grpramodkumar | last post by:
HI, function change(value,sub) { subcat = document.getElementById(sub); subcat.options.value = value; }
11
by: GarryJones | last post by:
I needed to hide and show som DIV sections, There are many scripts on the net for this. I downloaded that allows me to open a hidden DIV from inside a DIV than is itself hidden. This...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.