[jQuery] Re: [autocomplete] Auto populate form input field based on another

2008-08-29 Thread Mattl
Hi, Finally got the first drop-down to appear, I'd put '\n' in the php rather than "\n" - Oooops!! Still not sure how to get the second field on my form to update based on the input to the first autocomplete, any suggestions? This is what I've tried: $(document).ready(function(){ $("#lotno1").

[jQuery] Re: [autocomplete] Auto populate form input field based on another

2008-08-26 Thread VirusMinus
Hi Jorn, Is there a way to call a function when no results are returned by the input the user has typed into the autocomplete? This would be ideal as an option or a method for the autocomplete object. I've seen a few people ask for this on your site and also here. You mentioned including such f

[jQuery] Re: [autocomplete] Auto populate form input field based on another

2008-08-26 Thread Jörn Zaefferer
The download includes demo PHP scripts that you can look at. Or check it online via http://dev.jquery.com/view/trunk/plugins/autocomplete/demo/search.phps (linked from http://jquery.bassistance.de/autocomplete/demo/) Jörn On Tue, Aug 26, 2008 at 10:11 PM, Mattl <[EMAIL PROTECTED]> wrote: > > Tha

[jQuery] Re: [autocomplete] Auto populate form input field based on another

2008-08-26 Thread Mattl
Thanks Jörn, Is there a tutorial or demo that shows what the php file that queries the db should look like, or in what format the results need to be returned in? ie what does 'my_autocomplete_backend.php' look like? I've not been able to find one. Thanks in advance, Matt On Aug 25, 11:32 pm, "

[jQuery] Re: [autocomplete] Auto populate form input field based on another

2008-08-25 Thread Jörn Zaefferer
The autocomplete plugin (http://plugins.jquery.com/project/autocompletex) can do that. Set the one up as usual, and configure the other one with a dynamic extra paramter: $("#second").autocomplete("url", { extraParams: { first: function() { return $(