Jim Nayzium
08-07-2007, 02:19 PM
I am new to AJAX, but my hunch is with javascript and ajax I can accomplish what I want to do ...
I have a form that users fill out to write reviews of audio gear. When they select the manufacturer, these are pulled from the database through a drop down list.
Next to that drop down currently I have 'add a manufacturer' link that takes them to the page that adds the manufacturer to the drop down if its not there...bad news is, this refreshes their current page so it will load the new drop down...which makes them lose the information they have entered...
So the straight forward solution is to force them to add the manufacturer first and have a two page submission...
But I thought there would be a sexier way to do this via AJAX or javascript....
So to recap, I would like to update the contents of a drop down list pulled from the database without refreshing the entire page?
Is this possible?
Thanks.
I have a form that users fill out to write reviews of audio gear. When they select the manufacturer, these are pulled from the database through a drop down list.
Next to that drop down currently I have 'add a manufacturer' link that takes them to the page that adds the manufacturer to the drop down if its not there...bad news is, this refreshes their current page so it will load the new drop down...which makes them lose the information they have entered...
So the straight forward solution is to force them to add the manufacturer first and have a two page submission...
But I thought there would be a sexier way to do this via AJAX or javascript....
So to recap, I would like to update the contents of a drop down list pulled from the database without refreshing the entire page?
Is this possible?
Thanks.