On Sep 25, 3:48 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote:
> On Thu, Sep 25, 2008 at 2:36 PM, ericindc <[EMAIL PROTECTED]> wrote:
> > First, in the online Ajax.Autocompleter document's Server Return
> > section, it states that "the server must return an unordered list."
> > So, in my server side PHP code I literally return a string containing
> > the unordered list.
>
> Autocompleter expects the following:
>
> <ul>
> <li>some item</li>
> <li>some other item</li>
> ...
> </ul>
>
> It also expects a div to exist on the page with the ID that you pass
> as the second argument when you are instantiating the autocompleter.
I have the unordered list as well as the div. It works fine, actually
-- I get the results from my PHP code and the appropriate div is
updated correctly. The part I was confused on is that my PHP code
doesn't actually return the string containing the unordered list, but
rather prints it.
The autocompleter only works when the PHP code prints the string, but
based on the documentation, I assumed that the PHP code was expected
to return the string.
>
> > Second, I'm having trouble getting my autocomplete code to work
> > properly in Netscape 7, even though the exact same code works just
> > fine in IE 6. Are there any known bugs in Scriptaculous that could be
> > causing this to fail.
>
> Not sure about that. I know it works fine in IE6/7, Firefox 2/3,
> Safari, Opera, Camino, but have never tested nor used NN7.
>
> > Third, I've noticed in that typing in my input fast causes the
> > autocomplete to attempt running but fail. I see my indicator image
> > flash on and then off, but no results are returned.
>
> I've never seen behavior like that. I just tried and it had no
> problems returning results that matched what I typed, regardless of
> how fast I typed those two characters.
>
> Can you link to a demo page exhibiting these bugs and also let us know
> what browser/version you are experiencing the problems in?
>
> -justin
The site is again on an intranet. I can copy the code to pastie.org
again, but the database connection, etc. won't be available.
Thanks,
Eric
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---