you cannot use ajax to send or recieve data from a URL it has to be a script on the SAME domain as the script is on....
If you want to use a remote domain then you will have to wrap it in a proxy with a server side language or perhaps the web service offers a script on thier domain .. by setting this as the path of your javascript you can talk to that domain (Only) - a bit like remote google services and mashups ----- Original Message ----- From: "Russell Keith" <russell.ke...@aacreditunion.org> To: <prototype-scriptaculous@googlegroups.com> Sent: Wednesday, May 06, 2009 1:12 AM Subject: [Proto-Scripty] Re: help with ajax. > But terrain is the name of the server. I am sending xml data to a > webservice on this server. > > J. Russell Keith, MCDST > Branch Suite Administrator > American Airlines Federal Credit Union > 817.931.4459 Direct > 817.931.9541 Fax > russell.ke...@aacreditunion.org > > ----- Original Message ----- > From: prototype-scriptaculous@googlegroups.com > <prototype-scriptaculous@googlegroups.com> > To: prototype-scriptaculous@googlegroups.com > <prototype-scriptaculous@googlegroups.com> > Sent: Tue May 05 17:16:48 2009 > Subject: [Proto-Scripty] Re: help with ajax. > > > Drop the http:// part from the URL. Just use a relative URL. > > Walter > > On May 5, 2009, at 5:26 PM, Russell Keith wrote: > >> <script type="text/javascript"> >> document.observe('dom:loaded', function() { >> var url = "http://terrain/cm/servlet/cmwebservice"; >> new Ajax.Request(url, { > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---