You might want to take a step back and see if it wouldn't be easier to  
write your own custom version, rather than trying to swim upstream to  
this degree. Autocompleter is meant to deal with an indeterminate  
number of possible responses, and to continuously filter the results  
as you type, until only a few matches remain. It sounds to me more  
like your requirement is a different animal entirely.

In looking at the documentation page, I see a couple of things you  
could cobble together to try to get what you're after, though. Perhaps  
a mixture of a custom callback function, updateElement function, and a  
judicious use of the span.informal method (to create your previous /  
next links without influencing the actual results of the  
Autocompleter) could do the trick. But it looks to be nearly as much  
work as making a simpler Ajax search panel that auto-updates and pages  
result sets.

Walter

On Feb 20, 2009, at 9:40 AM, rrd wrote:

>
> I use Ajax.autocompleter for getting 5 members of a long list. I would
> like to add a previous link to the top of the list and a next link to
> the end of the list. So the first <li> of the server's answer is the
> previous link, the next 5 <li>-s are the responses and the last <li>
> is the next link.

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