| | |
Dynamic drop down box, populated from MySQL Db
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2007
Posts: 30
Reputation:
Solved Threads: 0
Hey, i've got a problem, i'm trying to make a drop down box but so that the first value chosen automatically updates the fields that you can choose in the second drop down menu.
Yes this may seem easy, but the thing is that each values need to be populated from MySQL Db's.
The table is called PriceList, and the attributes are ID, Groupname, Itemname and Price.
The first drop down menu needs to be populated with Groupname, and then the second drop down menu with the Itemname.
Once the user has chosen the fields, a text box will be updated with the Price displayed.
I also need a button that adds another row of drop down menus, and a button that will delete a row.
If anyone could possibly show me a website or give me any pointers then that would be awesome, i'm just useless at JavaScript.
Cheers
Yes this may seem easy, but the thing is that each values need to be populated from MySQL Db's.
The table is called PriceList, and the attributes are ID, Groupname, Itemname and Price.
The first drop down menu needs to be populated with Groupname, and then the second drop down menu with the Itemname.
Once the user has chosen the fields, a text box will be updated with the Price displayed.
I also need a button that adds another row of drop down menus, and a button that will delete a row.
If anyone could possibly show me a website or give me any pointers then that would be awesome, i'm just useless at JavaScript.
Cheers
use ajax to do that.
-as user select Groupname it should send request to the server through ajax,
-server will return values in the form of array or simply form all whole sub menu at server.
-use this value to form submenu.
-as user select Groupname it should send request to the server through ajax,
-server will return values in the form of array or simply form all whole sub menu at server.
-use this value to form submenu.
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Indian Developer
http://falaque.wordpress.com/
![]() |
Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: help please ie based javascript problem
- Next Thread: Redesign an input type="file"
| Thread Tools | Search this Thread |
ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug calendar captchaformproblem checkbox child class close column createrange() css cursor debugger dependent disablefirebug dom download dropdown editor element embed engine error events explorer ext file form forms getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe images internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jump libcurl math media microsoft mimic object onmouseoutdivproblem onreadystatechange parent paypal pdf php player position post problem programming progressbar regex runtime scroll search security select session shopping size software sql text textarea unicode w3c web website window windowofwords windowsxp wysiwyg \n





