-
Firefox - Ajax problem
Site uses ajax to replace contents of a <div> container on reset or refresh. It works fine in IE and Safari, but not in Firefox. Can anyone explain what this error message means? Thanks.
Error: uncaught exception: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXMLHttpRequest.send]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: javascript: eval(__firebugTemp__); :: anonymous :: line 1" data: no]
-
Firefox' cross-domain checks are more strict than Internet Explorer's. Could that be the problem?
-
I think you mean calling from one domain to another. I don't think so, as it is a relative address. Should I use the full url? I've since been able to get it to work on every other reset (not refresh) by calling the below function using setTimeout("loadIt('"+scr+"')", 0). Not sure why that would make a difference but it does.
http://www.thegreatmartinicompany.co...-decimals.html
Code:
function loadIt(scra){
var myurl="sets/decimal" + scra.toString() +".php";
myRand = parseInt(Math.random()*999999999999999);
var modurl = myurl+"?rand="+myRand;
modurl = modurl+"&level="+level;
http.open("GET", modurl, true);
http.onreadystatechange = useHttpResponse;
http.send(null);
}
Last edited by Hack; 11-15-2008 at 06:37 AM.
Reason: Added Code Tags
-
Are you using the full URL on the ones you got working?
Similar Threads
-
Replies: 0
Last Post: 07-24-2008, 08:28 PM
-
By blckspder in forum AJAX
Replies: 1
Last Post: 11-22-2006, 04:19 PM
-
By dbrook007 in forum ASP.NET
Replies: 0
Last Post: 11-06-2006, 05:54 AM
-
By Hariharan in forum Java
Replies: 0
Last Post: 07-05-2006, 07:08 AM
-
Replies: 0
Last Post: 12-13-2001, 01:06 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|