#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2001
    Location
    Hyd
    Posts
    1
    Rep Power
    0

    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. #2
  3. No Profile Picture
    Seņor Member
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2000
    Posts
    1,157
    Rep Power
    37
    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/...id/7184/fid/53>

    How do I emulate insertAdjacentHTML() in Netscape
    6/Mozilla?: <http://www.faqts.com/knowledge_base/view.phtml/aid/5756>
    Michael

IMN logo majestic logo threadwatch logo seochat tools logo