Hi there, On 3/13/07, Bob Ippolito <[EMAIL PROTECTED]> wrote: > On 3/13/07, lance10ca <[EMAIL PROTECTED]> wrote: > > If anyone has a suggestion, I'm all ears. > > XMLHttpRequest doesn't work across domains...
But <scripts src="xxx"></script> tags do. I run similar web-services. I have the server where they are located serve up a .js file which defines a JS api to my webservice. The api has functions that abstracts the calls loadJSONDoc (in my case, can use any XHR stuff), handles parameter conversions etc. I then include that .js file in whatever webapp I need and just call the methods defined there. Since the XHR is done to the same domain as the js file that's doing it - the browser is happy. This is how, for example, the Google Maps and Flickr APIs (to name some) do it. Arnar --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
