Click to See Complete Forum and Search --> : AJAX Help Needed


parvathi
08-25-2011, 02:51 AM
Hi All,

I have three dropdowns populated through AJAX in a jsp page... I'm getting the values into 3 dropdowns based on the other and able to store it in db... but unable to retain the values back to form after submitting the form...
How can I do that??
Please help me... Thanks in advance......

pavsid
08-25-2011, 04:24 AM
Usually you would use the same server-side code you are using to generate the options via AJAX, to generate the lists on page load once the form has been submitted. You have all the values you need (because they've been submitted) so you know which options to generate in the server code, and which ones you mark selected.

parvathi
08-26-2011, 06:13 AM
Hi pavsid,

Thanks for ur reply...

I'm doing the same thing.... I'm getting the values into dropdown after submission also... but unable to set it to the selected value... it's again showing "please select" only....

parvathi
08-26-2011, 06:16 AM
Hi,

Is there any chance to use html tab library(eg:"html:select") in response text of AJAX Code???