normaal Javascript / Ajax not working in Firefox 3.0.1

Firefox version: 3.0.1 Operating system: Windows XP
Auteur
Bericht

I just installed firefox 3 and had firefox 2. The sites w/ ajax were working fine in firefox 2. Now in firefox 3 they do not work at all.

('Enable Javascript' is CHECKED under the CONTENT tab in the OPTIONS).

Extensions installed:

Firebug

Plugins installed:


[+]


When going to pages with AJAX, i get the following error:

uncaught exception: [Exception... "Component does not have requested interface nsIXMLHttpRequest.open" nsresult: "0x80004002 (NS_NOINTERFACE)"



I am facing the same problem .
I am sending a synchronous Ajax request so that further processing by browser does not happen until data gets fetched.
Everything works fine in versions till firefox 2, but does not work in Firefox 3.

I.e synchronous requests dont work.

Asynchronous requests work but i dont need them



I am not able to remove the address bar present in Mozilla 's pop-up window which is created by Java Script.I have used the following code to create a new window:
function popupPollwin()
{

newwindow=window.open(PollResult.aspx','PollResult','width=300,height=200,location=no,resizable=no,status=no,dialog=yes');
newwindow.moveTo(0,0);
return;
}

You can see in the above code that I have added "location=no" but still I am not able to remive the address bar.



jscher2000

Hi Bobby, try disabling Firebug to see whether its debugging features are interfering.

If that doesn't help, as a "three minute" diagnostic, you could try creating a new "clean" Firefox profile: Creating a new Firefox profile on Windows @ MozillaZine Knowledge Base. It will look "factory fresh" except that it will pick up the plugins installed on your machine.

If that works, then you might have had a bad conversion from Firefox 2, or one of your extensions may be at fault, or a bad setting, or a corrupted file. If the cure isn't obvious, you can move your bookmarks and (selectively) your other settings to the new profile: Transferring data to a new profile - Firefox @ MozillaZine Knowledge Base.

Any luck?



jscher2000

Hi Kusum Saini and Hi suriya, this forum focuses on end-user support. You can find more web development help on the mozillaZine Web Development board. Separate forum, separate registration.



I had Cooliris installed as an extension which gave me the "Component does not have requested interface..." message. Once I removed it all went back to normal.



Hi, I am having exactly the same issue. I am a programmer and have just bought a new machine. So now I have 2. Both are running XP, machine 1 has firefox 2 whilst the other machine has firefox 3.0.1

None of my websites work now and this is a huge worry to me as Im feeling that lots of users out there are not going to be able any of my websites.

I have firebug installed, I went through the create new profile, that didnt help.

Its not the new machine as that also has ie 7 which handles my sites perfectly.

Is this a known bug? Is it going to be fixed?

Please please help!



I am also having the same problem. I installed 3.0.1 last night and now none of my javascript on my websites is working. Whereas, it was working on the old version.



I am also having the same problem.
After Installing Firefox 3.0.1 my websites don't work (for Ajax :: synchronous mode).
I've tried with my PC (XP) and other machine, but with the same response.

The same website work perfectly in IE7, Opera and Safari!!



After installing Firefox 3.0.1, it doesn't run and nor does version 2. The following message comes:

"Firefox had a problem and crashed. We'll try to restore your tabs and windows when it restarts"

But subsequent to reloading, restarting the machine, it keeps on displying the same message.

Please help ASAP.

Regards



The problem has been fixed in the currently available nightly build 3.1b1 available here: http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/



But... it's true?!? I've tested my website with this release (3.1b1) and - apparentley - I've the same problems!! :(



absolutely.. the problem was not solved with this release!!



I am also having the same problem. Damn!! How to rollback to FF2 version?????? :((((



I have a site that uses Ajax and creates a table with columns that can be resized. On regular reload, JS does not work properly. I did not have this problem with FF3 until recently. Works in FF2 and IE



I've worked around this problem for all browsers that users need to access my web application with (FF 2.0.x, FF 3.x including 3.0.x, IE 6, IE 7, Safari 3.x on Mac and Windows).

This was the code BEFORE the changes, the code did not work as it did either not do a synchronous call correctly (FF 3.01), or it did not call the onreadystatechange handler function (FF 2.0.0.15 to .17):

function determineAdm() {
var xhr = getXmlHttpRequest();
var postParams = "isAdm=1";
xhr.open("POST", "../someBackend.do", false);
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
if (xhr.status == 200 || xhr.status == 304) {
alert(xhr.responseText);
}
}
}
xhr.send(postParams);
}

I changed it like can be seen below, and now it wors in all the browsers mentioned at the top of this posting (even in FireFox 3.01):

function determineAdm() {
var xhr = getXmlHttpRequest();
var postParams = "isAdm=1";
xhr.open("POST", "../someBackend.do", false);
xhr.send(postParams);
// the above send command blocks as this is a synchronous call,
// so we do not need the onreadystatechange listener to wait
// for the answer but can just pick up the reply from xhr using
// xhr.responseText after the above call:
alert(xhr.responseText);
}

What now puzzles me is that when I enable FireBug in FF 2.0.0.15 to .17, the behaviour with the old code version is ok, i.e. the onreadystatechange function is called correctly. As soon as I disable FireBug, the onreadystatechange function is not called.



For those of you who prefer reading german texts, I've made a summary on this topic in a blog: http://m2w2tech.blogspot.com/2008/09/firefox-301-kann-keine-synchronen-ajax.html



Hello,
My Ajax Code works in IE6,IE7,FF2.x. But When I updated to FF3 code stopped working. The problem is xmlhttp.onreadystatechange function is not getting called. Can some one tell me what could be the problem



Hi All,
After trying lots of options I have come to conclusion. POST method does not work in FF3.0. So I changed my statement to
xmlhttp.open('get', formProcessor,true);
Hope this helps lot of people



Hi All

I also had the problem of sychronous Ajax requests not working in FF3.

However, I've just tried the workaround suggested by MarkusW (Wed 24 Sep) - and it's fixed the problem.

In summary, for synchronous AJAX requests:

1) Move all code from the state change handler function, into the main Ajax calling function, AFTER the send command.
2) Remove the state change handler function body
3) Remove the line that defines the state change handler function

(I initially forgot Stage 3 - it won't work unless you do this!).

Hope this helps.



Post a reply

Have a different problem? Ask a new question.

Select a post subject:

Typ uw bericht

Adding links:

Koppeling naar een externe website:
[http://www...|Beschrijving]

Koppeling naar een kennisbankartikel:
((Naam van artikel))

HTML is niet toegestaan.

Acties
Enter this number: Willekeurige afbeelding 
Bijdragen tonen