Results 1 to 6 of 6

Thread: Multiple select forms on the same page

  1. #1
    Join Date
    Aug 2007
    Posts
    45
    Thanks
    27
    Thanked 0 Times in 0 Posts

    Default Multiple select forms on the same page

    I would appreciate if someone could advise on how to modify the following codes so that I could have multiple select forms on the same page?

    I have tried using selectform1 for the first and selectform2 for the 2nd..etc but it didn't work.

    Code:
    <form name=selectform action="" method=post><SELECT 
         style="COLOR: white; BACKGROUND-COLOR: blue" 
         onchange=setasxfile1(document.selectform.channel.options[document.selectform.channel.selectedIndex].value); 
         align=center name=channel> <OPTION selected> M T V</OPTION>
    Many thanks in advance.

  2. #2
    Join Date
    Jul 2008
    Posts
    128
    Thanks
    0
    Thanked 17 Times in 16 Posts

    Default

    Code:
    <form name=selectform action="" method=post><SELECT 
         style="COLOR: white; BACKGROUND-COLOR: blue" 
         onchange="setasxfile1(this.value);" 
         align=center name=channel> <OPTION selected> M T V</OPTION>
    You're welcome in advance.

  3. The Following User Says Thank You to clueful For This Useful Post:

    amyy (05-07-2010)

  4. #3
    Join Date
    Aug 2007
    Posts
    45
    Thanks
    27
    Thanked 0 Times in 0 Posts

    Default

    Many thanks to Clueful for your kind response.

    The code that you provided is for the 1st form, right?
    Would appreciate if you could also provide the code for the 2nd, 3rd...etc forms on the same webpage.
    I could not figure out which is the variable value.
    Thank you very much.

  5. #4
    Join Date
    Jul 2008
    Posts
    128
    Thanks
    0
    Thanked 17 Times in 16 Posts

    Default

    Quote Originally Posted by amyy View Post
    Many thanks to Clueful for your kind response.

    The code that you provided is for the 1st form, right?
    Would appreciate if you could also provide the code for the 2nd, 3rd...etc forms on the same webpage.
    I could not figure out which is the variable value.
    Thank you very much.
    The code applies to any <select> element calling that function.

  6. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    "this" is a special keyword that refers to the current item. So in general it doesn't need any special code. (of course in some scripts it's possible that it may need both 'this' and a specific reference)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #6
    Join Date
    Aug 2007
    Posts
    45
    Thanks
    27
    Thanked 0 Times in 0 Posts

    Default

    Many thanks to Clueful and Djr33 for your kind inputs.

    I have tried and noticed that the video clips will not play and an exclamation mark appeared on the status bar (bottom left hand corner)if the 2 codes appended below are used for the same webpage.
    It works fine if only one code is used.

    Edited on 9 May 2010:
    Since no response todate, it's ok. I have decided not to use this method.

    Thanks to all for your kind attention.
    Last edited by amyy; 05-09-2010 at 08:22 AM.

Bookmarks

Posting Permissions

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