I am using this code to load the content of a text file:
function go(){
//var myFile = "c:/BMCclient.log";
var myFile = "abc.html";
$.get( myFile, function(data) {
alert ( data );
$('#_content').html(data);
alert('Load was performed.');
});
}
When myFile = "abc.html";
this method executes successfully, but when I use
myFile = "c:/BMCclient.log";
then it throws an exception:
uncaught exception: [Exception... "Component returned failure code: 0x805e000a [nsIXMLHttpRequest.open]" nsresult: "0x805e000a (<unknown>)" location: "JS frame :: file:///C:/PIC/batch/personal/web/js/jquery/jquery-1.4.2.js :: anonymous :: line 5113" data: no]
Why it is happening?