Re: Scriptaculous - Autocomplete with external URL?

Developer
Thu, 03 May 2007 15:56:17 -0000

Hi AMA3,

yes, great Tip! I implement it with a Apache-Mod-Rewrite Rule, but
other clients don`t use Apache.

So i must write proxy code.

Kind regards.

On 3 Mai, 16:58, "AMA3" <a...-ySNssrZK0L0@public.gmane.org>
wrote:
> If your server is Apache, you can also use the mod_proxy module to allow
> Apache to act as a pass-thru for the foreign URLs.  Saves you the trouble
of
> writing proxy code yourself.
>
> Peace,
> AMA3
>
> ----- Original Message -----
> From: "Developer"
<c...-gyMb1R/nBgNpEKysQ+xqfCXEfswBiFidx090KOjTKBU@public.gmane.org>
> To: "Ruby on Rails: Spinoffs"
<rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> Sent: Thursday, May 03, 2007 08:19
> Subject: [Rails-spinoffs] Re: Scriptaculous - Autocomplete with external
>
> URL?
>
> Hi Christophe,
>
> thank you for your answer.
>
> I will try to write an "proxy-method" on the
root-server:http://www.rootserver.com/proxyconsumer.php
>
> This proxy-consumer can include the
url:http://www.autocompleter.com/GetKeyWords.php
>
> Hope, that this will solve my problem, but it seems not to be a high
> performance solution.
>
> Kind regards
>
> Christian
>
> On 3 Mai, 14:02, Christophe Porteneuve
<t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote:
> > Hey,
>
> > Developer a écrit :
>
> > > is it possible to use "Ajax.Autocompleter" from
Scriptaculous with an
> > > external URL?
>
> > You''re bound to the usual AJAX security constraints, which
means you''re
> > subject to the SOP (Same Origin Policy): same host, same port.
>
> > Depending on your browser, YMMV, but except on MSIE (AFAIK),
it''s
> > generally pretty strict, and non-customizable (at least not in any
easy
> > way) by your users.
>
> > --
> > Christophe Porteneuve aka TDD
> > t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org