Closed Bug 430765 Opened 17 years ago Closed 17 years ago

Firefox not loading basic Ajax function, ajax called with try and catch, works with FF 2.xx and other browsers

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 425201

People

(Reporter: darolu, Unassigned)

Details

User-Agent: Opera/9.27 (X11; Linux i686; U; en) Build Identifier: Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.9b5) Gecko/2008041514 Firefox/3.0b5 I recently installed Ubuntu 8.04, comes with Firefox 3.0b5, I'm developing a website and it doesn't load any Ajax function, the one I was trying is a very basic one (open documents on a specified div) and it just doesn't load it. It is a simple getelementbyid.innerHTML function using Ajax. Here is part of the code, if it works to solve the bug, all the code has been validated (even using firebug in FF2), works perfectly with Firefox 2 and Opera: ... xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==1) { document.getElementById('contenido').innerHTML="Cargando..."; } if (xmlhttp.readyState==4) { document.getElementById('contenido').innerHTML=xmlhttp.responseText; } } ... Reproducible: Always Steps to Reproduce: 1.Write a website using Ajax 2.Open it in Firefox 3.0b5 3.Doesn't work Actual Results: Doesn't work, data is not displayed at all. Expected Results: Data displayed in the assigned <div> none
How do you access your site, using file:/// url? (may be bug 425201) Do you get an error message in the console?
Version: unspecified → Trunk
Yes, I'm accessing the site using file:///, I couldn't find the but you mentioned before, I followed some links on that bug report's replies and seems like this is the same bug. I can't install firebug so I can't see that console if that is the one you were talking about, in the firefox jsconsole I get "permission denied to call XMLHttpRequest.open method" (translated from Spanish) and refers to my .js file
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
I was talking about the Firefox Error Console. According to the message you saw there, I can confirm this is a duplicate. That should be fixed for you when Ubuntu updates Firefox 3 (if you access the file using XMLHttpRequest from a subdirectory). Thanks for your prompt response.
You need to log in before you can comment on or make changes to this bug.