How to populate a text box based on a preceding hyperlink

Ask a Question related to ASP, Design and Development.

  1. #1

    Default How to populate a text box based on a preceding hyperlink

    I have an asp form that has a text box called "colorBox". Just before
    text box is the word "Color" that is hyperlinked and will run the
    color.asp if pressed to show all of the colors in a predetermined 3
    character code. Ex., BLU for Blue.

    Now, what I'd like to do is have the user enter all of the data in the
    main asp form, ex. Name, address, etc. When they come to the
    "colorBox", they will be allowed to enter "BLU" by hand or click on
    the "Color" hyperlink just before the "colorBox" and show the list.
    From the list the user will pick one and that color will populate in
    the "colorBox".

    I don't want to use dropdown boxes, etc. I'm just using color as an
    example and I want the user to hit the database since the data changes
    from time to time.

    Any links to where this is shown on a website would be great. TIA
    ziggs Guest

  2. Similar Questions and Discussions

    1. Populate Flash Based Form from a cfgrid.
      Hello, I have a flash based form in CFMX 8. It has a two cfinput fields (first name, last name), I also have a cfgrid which displays a list of...
    2. Hyperlink template column and change link text based on Condition
      How do I create a Hyperlink column in a Datagrid which launches a pop-up window, and have the text in the hyperlink change based on a condition? I'm...
    3. Populate XML data based on clicked link
      I think the summary may describe the problem but - I'm doing a page where a product diagram allows the visitor to select a product group. This...
    4. Populate form values based on previous same form fields
      This message is cross posted in alt.comp.lang.php & comp.lang.javascript I have a form for a user to input an establishment's hours and what time...
    5. Changing hyperlink template based on data contents
      I'm pretty new to all of this, so please forgive me if this is a question you've heard too many times. I'm using VS2003 and vb.net in the...
  3. #2

    Default Re: How to populate a text box based on a preceding hyperlink

    You can do this with client-side javascript.

    Use the hyperlink to open a new window that displays the options.

    When the user selects an option, use javascript to populate the text-box on
    the parent window with the appropriate value and (optionally) close the
    popup window.

    Cheers
    Ken

    "ziggs" <ziggs@hotmail.com> wrote in message
    news:bpk4gvc5u3f95dvgqtc3jbt846nftudubq@4ax.com...
    : I have an asp form that has a text box called "colorBox". Just before
    : text box is the word "Color" that is hyperlinked and will run the
    : color.asp if pressed to show all of the colors in a predetermined 3
    : character code. Ex., BLU for Blue.
    :
    : Now, what I'd like to do is have the user enter all of the data in the
    : main asp form, ex. Name, address, etc. When they come to the
    : "colorBox", they will be allowed to enter "BLU" by hand or click on
    : the "Color" hyperlink just before the "colorBox" and show the list.
    : From the list the user will pick one and that color will populate in
    : the "colorBox".
    :
    : I don't want to use dropdown boxes, etc. I'm just using color as an
    : example and I want the user to hit the database since the data changes
    : from time to time.
    :
    : Any links to where this is shown on a website would be great. TIA


    Ken Schaefer Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139