Ajax.Autocompleter with dynamic parameters
I’ve often found the scriptaculous docs to be rather lacking (the jQuery docs tend to be much better for instance), and today I ran into another issue. While the docs for Ajax.Autocompleter do mention the callback method, it wasn’t really clear till I came across a great post by Nicholas Schlueter on dynamic parameters for Ajax.Autocompleter. Combined with a handy bit of javascript from my buddy Rex Chung for getting radio group values and I had a solution to my problem (of how to return parameters in my AJAX request with dynamic data from user input into a radio group)
Only one question remains: why the hell is the method named “callback”? When considering what callback normally means in the context of AJAX implementations, it’s an astoundingly poor choice.
Anyway, thanks Rex, thanks Nicholas.
Comments(0)