Can this be done?

Results 1 to 4 of 4

Thread: Can this be done?

  1. #1
    BigBadJock Guest

    Default Can this be done?

    I have two drop down boxes populated from databases, however I wish the selections in the second component to be limited by the selection of the first. ie: the items in the second list are the children of the items in the first.<BR><BR>Is it possible to do this?<BR><BR>Cheers

  2. #2
    MadCornish Guest

    Default RE: Can this be done?

    Yes you either need to use DHTML which can be a pain (IE and netscape) or use an onchange event to capture your selection from the first list box and submit it back to the server.<BR><BR>&#060;select name="scottishselection" onchange="document.formname.submit();"&#062;<BR><B R>make sure it&#039s within form tags and then use the Request.Form("scottishselection") in the query string.<BR><BR>I&#039ve done it before so it does work, this is just a theory sort of answer not a full version.<BR><BR>Hope this is of some use

  3. #3
    BigBadJock Guest

    Default RE: Can this be done?

    MadCornish<BR><BR>You couldn&#039t give me an example of this, could you?<BR>Don&#039t know what I&#039m doing wrong, but it ain&#039t refreshing the page.<BR><BR>Cheers<BR>BigBadJock

  4. #4
    Scott S Guest

    Default RE: Can this be done?

    Yes you have to refresh the page after the user selects an item from the first drop down list. i suspect Javascript is the way you&#039d want to do that. & then when the page refreshes just filter the second drop down list based upon what happens in the first. used to have something like this. Not sure if they still do. <BR><BR>hope that helps<BR>Scott S

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts