PDA

View Full Version : Suggest - AJAX for 2 input text fields


pacmanny1
09-22-2009, 11:33 AM
hi guys, i have seen this demo and sample code:

http://www.dhtmlgoodies.com/index.html?whichScript=ajax-dynamic-list

i want to have 2 text input fields to get different data from different data source. this sample gets its data from same data source only.

to quote from the writeup:

"The ajax_showOptions function takes three arguments. The first one should always be "this", i.e. a reference to the text field. The second one is just a string that is sent to the file on the server. This is useful in case you are applying this feature to more than one text field. If you do, this string is something you could check on on the server(example: if "getCountriesByLetters" is set, find countries, if "getStatesByLetters" is set, get states etc.)."

how do i make that modification to make me get also data from "getStatesByLetters" for the 2nd text input field?

thanks a lot for any suggestion.

pacmanny1
09-24-2009, 03:05 PM
please share your ideas guys

87 views on this thread and no response. not even one!:(