AJax requests do not work on XDR (Cross domain requests) .. you have to wrap 
it in a serverside function to get it to work.

I realise that 127.0.0.1 is same domain but you also specify a port.. Ajax 
style requests must use the same domain and port iirc

Its not a prototype issue, its a security issue with the browsers


HTH

Alex Mcauley
http://www.thevacancymarket.com

----- Original Message ----- 
From: "Philip Brocoum" <philip.broc...@gmail.com>
To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
Sent: Thursday, October 08, 2009 9:35 PM
Subject: [Proto-Scripty] Autocompleter across domains with absolute URL 
doesn't pass the value?


>
> When I use something like this it works:
>
> new Ajax.Autocompleter("autocomplete_geo_input",
> "autocomplete_geo_div", "/geographies/autocomplete", {minChars: 3});
>
> However, when I use something like this it doesn't work:
>
> new Ajax.Autocompleter("autocomplete_geo_input",
> "autocomplete_geo_div", "http://127.0.0.1:3000/geographies/
> autocomplete", {minChars: 3});
>
> In the second version it doesn't send the value in the text field! Why
> not?! It just pings the URL with zero parameters passed.
>
> To be clear, it actually sends a request to the server every time the
> text field changes with three or more characters, it just doesn't send
> the characters to the server. Why should it make any difference if I
> specify an absolute URL or not? Is it impossible to use the
> autocompleter across domains?
>
> Philip
>
> >
> 


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

Reply via email to