Hi,

> I know it works if I use a relative path... but the file exists on another
> website within our network.
> I figured I code just use a URL. Can't I?
> How can I use a remote file?

The link I gave you answers this.  That's kind of why I included
it. ;-)
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available

On May 7, 6:24 pm, Gene Aiello <programmer...@gmail.com> wrote:
> I know it works if I use a relative path... but the file exists on another
> website within our network.
> I figured I code just use a URL. Can't I?
> How can I use a remote file?
>
> On Thu, May 7, 2009 at 12:18 PM, T.J. Crowder <t...@crowdersoftware.com>wrote:
>
>
>
> > Hi,
>
> > I see you're using an absolute URL with the autocompleter, rather than
> > a relative one.  Usually that's a red flag -- maybe you're running
> > into SOP[1] issues?
>
> > [1]http://en.wikipedia.org/wiki/Same_origin_policy
>
> > HTH,
> > --
> > T.J. Crowder
> > tj / crowder software / com
> > Independent Software Engineer, consulting services available
>
> > On May 7, 6:10 pm, Neo <programmer...@gmail.com> wrote:
> > > I am trying to use Ajax.Autocompleter with a ColdFusion CFC as a
> > > webservice.
> > > The problem is the Ajax call is not firing. Any ideas why ???
>
> > > var searchAutocompleter = new Ajax.Autocompleter("autocomplete",
> > > "SuggestionListDiv", "http://local.ws.mysite.com/cf/myfile_lite.cfc?
> > > method=lookAheadSearch", {
>
> >       paramName: "lookaheadSearchTerms",
>
> >       minChars: 2,
>
> >       parameters:
>
> > "enePort=9000&sid=1201047B9E5A&eneHost=192.168.76.47&N=0&maxResults=5&wildcard=true",
>
> >       onSuccess: function(r){
>
> >                       if (r.unescapeHTML != undefined) {
>
> >                               $('err').innerHTML=r.unescapeHTML;      //in
> > case there is an
> > > error display it
>
> >                       }
>
> >               }
>
> > });
>
> --
>
> Thanks,
>
> Gene Aiello
--~--~---------~--~----~------------~-------~--~----~
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