• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AJAX - web services calls

 
sanker san
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I make web service calls from javascript?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right now you can only make Web Service calls with the XMLHttpRequest object if it is sitting on the same domain. The basic example I created real quick today takes an xml document: http://pascarello.brinkster.net/basicAjaxExample/

You can easily change this to call a web service that returns this document.

If you want to talk to an outside domain, make the request on the server and cache it there. Use that data and pass it to the client.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic