|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problem With Handling arrays/JavaScript
Hai Friends,
I have a table having 4(DropDownBoxes)columns that grows dynamically. In the first column I want a Combo Box to populate all National Regions from the database. Upon changing a National Region, I want to populate all States pertaining to the selected National Region in another Combo Box beside the first one from the database. Like wise, Upon changing a State, I want to populate all Counties pertaining to the selected State in another Combo Box beside the Second one from the database. The Last column will have a hyperlink to the same page with "Delete" as text display. I have a Command button (Add New Location) upon clicking should grow the table by adding a new row with another set of the elements (one combo box each for National Regions, States, Counties) and a Delete hyperlink. I want to delete a particular set (row) of elements by clicking the Delete hyperlink. The functionality should be such that only that particular set of elements (their values) should disappear and the total number of rows should get reduced by one and all the other elements should have their values intact. How can I achieve this functionality? Using Arrays and with JavaScript or ASP voding Anybody Pl. help me comeout of this problem |
|
#2
|
|||
|
|||
|
You know, I read your post three times (each time more slowly) and I still can't figure out what you want. However, I "extracted" some key concepts from your post and am providing URLs for you below, in case they might be of help:
How can I dynamically add/delete options from a select object using JavaScript?: <http://developer.irt.org/script/1504.htm> How can I link three drop down form fields together so that chaining options in one of the first two effects the contents of the second and/or third?: <http://developer.irt.org/script/1046.htm> Dynamic Dropdown Menus: <http://tech.irt.org/articles/js042/index.htm> what is insertAdjacentHTML() function in javascript: <http://www.faqts.com/knowledge_base...aid/7184/fid/53> How do I emulate insertAdjacentHTML() in Netscape 6/Mozilla?: <http://www.faqts.com/knowledge_base/view.phtml/aid/5756>
__________________
Michael
|
![]() |
| Viewing: Dev Shed Forums > Web Design > JavaScript Development > Problem With Handling arrays/JavaScript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|