So how do you make Ajax requests outside your domain or in other words, how do you make cross-domain Ajax requests? jQuery allows me to do this using the $.getJSON() method, however, I have no way to tell if the method has failed (i.e., the server is not responding or something). zorg thanks, the jquery docs are abysmal on this aaa tttttt Dom After two days.. Attach files Desktop Zoho Docs Google Docs Each Attachment size should not exceed 1.0 MB. news
Does a survey require an ethical approval? In this article, we'll look at what causes this error and how we can get around it by using jQuery and JSONP to make a cross-domain Ajax call. DrLightman Ah okay I got it, thank you. If the value of the data parameter is a plain object, it is converted to a string and url-encoded before it is appended to the URL. other
Why must the speed of light be the universal speed limit for all the fundamental forces of nature? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed This handler is not called for cross-domain script and cross-domain JSONP requests. Jquery Jsonp See the discussion of the jsonp data type in $.ajax() for more details.
If the server doesn't respond in the specified amount of time then the error function will be called. Getjson Error Handling This means that we are able to create a script tag, set the src attribute to that of our JSON file and inject it into the page. Generate a 6 character string from a 15 character alphabet Why did Moody eat the school's sausages? http://stackoverflow.com/questions/1740218/error-handling-in-getjson-calls more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed
Here an example showing my issue: