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
-~----------~----~----~----~------~----~------~--~---

Reply via email to