Ajax And REST: Can I send an ajax request to a REST service and recieve response?
Posted
by Morteza M.
on Stack Overflow
See other posts from Stack Overflow
or by Morteza M.
Published on 2010-03-23T11:39:10Z
Indexed on
2010/03/23
11:43 UTC
Read the original article
Hit count: 331
Hi everybody here, I want to use mootools and SqueezBox class to handle a request to a RESTful service. I don't want to use any server-side script. I am using AJAX. I send a request to the following url using GET method. http://www.idevcenter.com/api/v1/links/links-upcoming.json but I receive a 404 error. Is it because cross-site scripting? here is my code:
SqueezeBox.initialize({handler:'url',ajaxOptions:{method:'GET'}}); $('a.modal').addEvent('click',function(e){ new Event(e).stop(); SqueezeBox.fromElement($('a.modal')); });
In Firebug console, sometimes 'aborted' is shown and sometimes '404'.what is wrong with that?
© Stack Overflow or respective owner