Results 1 to 6 of 6

Thread: HTML

  1. #1
    Owly
    Guest

    HTML

    I run seminars and have an on-line registration page. The page contains a form, with a select box and various options representing the events we offer. When a user selects an event, I want the event date to appear in a second text box and the price to appear in a third box. (Data for dates and prices of course would be somehow associated with the event names). I expect it's elementary, but I know everyone will be patient with a novice. <img src=/S/doh.gif border=0 alt=doh width=15 height=15>

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: HTML

    Something like this from <A target="_blank" HREF=http://javascript.internet.com/forms/auto-drop-down.html>The JavaScript Source</A>?

  3. #3
    Owly
    Guest

    Re: HTML

    Thank you Leif. If I can get my head around the Javascript, I think I might get a version of that to work.

  4. #4
    Owly
    Guest

    Re: HTML

    Lief, the auto drop-down script you recommended is really quite a bit too involved for the job I want to do, or for me to understand sufficiently to modify. For one thing, it fills in a list of team players in a second drop-down box, whereas I just want to fill in a couple of text fields according to the initial selection. If I change the arrays to single values, and the second select box to a text input box, the thing doesn't work.

    Any other ideas?

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: HTML

    Maybe these examples will be more helpful - they certainly are simpler:

    <A target="_blank" HREF=http://javascript.internet.com/forms/controlled-boxes.html>Controlled Boxes</A> - shows how to pass information about which checkbox was checked to a procedure

    <A target="_blank" HREF=http://javascript.internet.com/forms/copy-fields.html>Copy Fields</A> - simple (if lengthy) example of how to copy and set text boxes

    (<A target="_blank" HREF=http://javascript.internet.com/forms/limit-textarea.html>This one</A> has nothing to do with your question, but I could use it to help people not overrun the 100 character limit of SMS messages they send to my cell phone. Cool.)

  6. #6
    Owly
    Guest

    Re: HTML

    Thank you for the other suggestions. I had looked at all of those, but have finally got a stripped-down version of Lief's suggestion working. It still puts the subsidiary data into a select box rather than a text box, but if I give the select box a size of 1, I can live with that.

Posting Permissions

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