NS_ERROR_DOM_BAD_URI error in AJAX

by Ramya 2009-12-09 11:32:13

NS_ERROR_DOM_BAD_URI error in AJAX:

While using ajax code as request.open('..',url,true), you may face an issue like,
Error: uncaught exception: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "ajax.js Line: 60"] Embarassed

This error occurs if you have given different domain name in the code. It considers http://hscripts.com and http://www.hscripts.com as different domains and displays this type of errors.

Hence check the code whether you have given same domain or different domains like the above said....

Tagged in:

5603
like
0
dislike
0
mail
flag

You must LOGIN to add comments