I am sending the request from one internal server to another server. However one of the servers is a Linux box that wouldn't be part of the Microsoft domain. But the code I have from the vendor in this http://pastie.org/462963 works just fine and I would prefer to use prototype.
J. Russell Keith, MCDST Branch Suite Administrator American Airlines Federal Credit Union 817.931.4459 Direct 817.963.9541 Fax [email protected] -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Walter Lee Davis Sent: Tuesday, May 05, 2009 4:33 PM To: [email protected] Subject: [Proto-Scripty] Re: help with ajax. Are you, by any chance, trying to post an Ajax request to a domain other than the one your site is hosted on? That won't work, not now or ever, because of the Same Origin Policy imposed on JavaScript. Walter On May 5, 2009, at 5:26 PM, Russell Keith wrote: > > I have dumbed down this code even more and still can't get the ajax > request to fire. Any suggestions would be great. > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" /> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <title>Untitled Document</title> > <script src="js/prototype.js" type="text/javascript"></script> > <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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
