No options with Ajax cross-domain (for now). If you can change the service to wrap the XML in a function call or assign it to a variable you can use $.getScript().
predefine a function or method: my_function(xml){ //do something with the xml } call .getScript(): $.getScript("http://wcf.msts.com/WcfService.svc/GetSponsorSearch? keyword=tr&eventsessionid=2") which would return js: my_function('<your xml here>'); Alternately you can use a variable (ie return var='your xml') and use the .getScript() callback function. HTH :) On May 5, 5:39 pm, bittermonkey <brakes...@gmail.com> wrote: > I was wondering if I have another option without going this route? > > On May 5, 5:08 pm, James <james.gp....@gmail.com> wrote: > > > What about going through a proxy (e.g. a PHP script that fetches the > > XML content from wcf.mstsc.com domain) hosted on your current domain? > > > On May 5, 11:01 am, bittermonkey <brakes...@gmail.com> wrote: > > > > Hi, > > > > Here's my code: > > > > $.ajax({ > > > type: "GET", > > > url: "http://wcf.msts.com/WcfService.svc/ > > > GetSponsorSearch?keyword=tr&eventsessionid=2", > > > dataType: "xml", > > > success: function(xml) { > > > alert(xml); > > > } > > > }); //end ajax call > > > > I know this is a cross-domain issue but I can't get away with our > > > current network setup. wcf.mstsc.com is where all our web services > > > reside. Is there a way I can make the ajax method work, using XML as > > > the return data type, if it's in a different domain? I'm open to a > > > different jquery method (as long as it returns XML) if there is one. > > > > Thanks in advance.