| | |
Dynamic Drop Down
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2008
Posts: 1
Reputation:
Solved Threads: 0
Newbie to AJAX, I have recently used ajax for my validation handling, and I am planning to add a drop down menu for city and state. Both data are being pulled from two seperate tables in a mysql dbase. I have looked around for sample codes but havent found one that addresses this. Any help would be greatly appreciated.
You can always make two server trips and pull the required information one at a time. Another way would be to use JSON to pull in data in a single server trip by sending the data in the form:
All you need to know to successfully complete the above exercise is how to make an Ajax request which in itself is pretty simple; more so when using lightweight Ajax libraries like Ajax Toolbox.
{ city: ['C1', 'C2', 'C3'], state: ['S1', 'S2', 'S3'] } and interpreting it accordingly using Javascript.All you need to know to successfully complete the above exercise is how to make an Ajax request which in itself is pretty simple; more so when using lightweight Ajax libraries like Ajax Toolbox.
I don't accept change; I don't deserve to live.
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: connect to a port
- Next Thread: How do I identify what type and where my code is in the HTML DOM tree?
Views: 880 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxexample ajaxjspservlets api blackjack browser bug captchaformproblem checkbox child class close cookies createrange() cursor date debugger dependent developer disablefirebug dom dropdown editor element embed engine events explorer ext file flash form forms game gears getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images internet java javascript javascripthelp2020 jquery jsf jsfile jump libcurl maps margin math matrixcaptcha media mp3 mysql object onerror onmouseoutdivproblem onreadystatechange parent passing paypal pdf php player position post programming progressbar rated runtime safari scriptlets scroll search security session shopping size software solutions star stars stretch synchronous tweet unicode web webkit webservice window wysiwyg \n






