The following JQuery get
call:
var doc_root = document.location.hostname + ":8082";
var fw_script = doc_root + "/sites/MyScripts/fw2.php";
var langpref = "EN";
var ttype = "BEGIN";
var vvalue = $("#inp_begin").val();
$.get(fw_script, { type: ttype, value: vvalue, langpref: langpref })
.success(function(result) {
$(fw_result).text(result);
alert("Success");
})
.error(function(jqXHR, textStatus, errorThrown) {
$(fw_result).text("Error: " + textStatus + " " + errorThrown);
alert("Failure");
});
is generating the following error message (.error
is called):
Error: error [Exception... "Component returned failure code: 0x805e0006
[nsIXMLHttpRequest.open]" nsresult: "0x805e0006 (<unknown>)" location: "JS frame ::
http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
:: <TOP_LEVEL> :: line 4" data: no]
I have no idea what this message is and I can't find much explanation with my Googling. Can anyone clarify?
UPDATE
The called URL is constructed as following in Javascript:
var doc_root = document.location.hostname + ":8082";
var fw_script = doc_root + "/sites/MyScripts/fw2.php";
and fw_script
's value is:
fw.localhost:8082/sites/MyScripts/fw2.php
It is called from
fw.localhost:8082/en
When I try fw.localhost:8082/sites/MyScripts/fw2.php
in my browser, it is successful.