"same origin" is probably the better term. Basically Ajax can only call the
same server that the page was served from. There are some workarounds.
http://en.wikipedia.org/wiki/Same_origin_policy
I'm still guessing that that's the issue. That's what it sounds like, at
least.
Wouldn't this only be a problem if I was actually making a cross-domain
call? The remote machines are on the same local area network as the server.
It also might be a problem that the browser is disallowing a cross-domain
Ajax call (usually the case for security reasons).
Does the machine you're making the request from have access to
http://Harshad-PC.local/ in general (what happens if you enter that in the
browser address bar)? If not, an Ajax call wouldn't work either.
On Tuesday, October 18, 2011 5:37:26 PM UTC-4, Harshad wrote:
>
> $.ajax({
> type
$.ajax({
type: "GET",
url:
'http://Harshad-PC.local/devicemanager/default/get_response.json/192.168.1.24/107',
success: function(data,textStatus,jqXHR) {alert("Success! Data:
"+data)},
error: function(data,textStatus,jqXHR) {alert("Error: Failed to load
data."
You're using a relative URL.
On Tuesday, October 18, 2011 5:20:54 PM UTC-4, Harshad wrote:
>
> Following is the code that makes the ajax call:
>
> $.ajax({
> type: "GET",
> url: '/devicemanager/default/get_response.json/192.168.1.24/107',
> success: display_received,
>
6 matches
Mail list logo