AJAX call unable to access localhost
Hello there. I'm pulling data from a database using a RESTlet server, and using Flot to produce a graph.
My problem is that whenever I make the following AJAX call, I get an "Access to restricted URI denied" error on Firefox. On Internet Explorer I have other problems, but I can tell by my server logs that at least the AJAX call happens, which is more than I can say for Firefox.
$.ajax(
{
url: 'http://localhost:8182/',
dataType: 'json',
success: function(series)
{
data = [series];
plot = $.plot(placeholder, data, options);
}
});
The url is correct, and the server is hosted on this machine, but Firefox thinks it's trying access another domain. The html file containing this code is located on my hard drive.
How can I get Firefox to allow this AJAX call?