onchange

Discussion in 'Javascript' started by rturner99, Jul 1, 2004.

  1. rturner99

    rturner99 Guest

    Hi all,
    Im fairly new to all this and was after a little bit of help. I
    apologise now as my Javascript is extremely limited. I currently have
    an ASP page which has a drop down menu which is dynamically populated
    from an MS SQL database. It has 4 options which can be chosen. These
    are, Complete, On schedule, Behind schedule and Archive. One of these
    will get written back to the database in a field called Status
    depending on what has been chosen. What I am after is if someone
    selects Archive I want it to write back a 1 to a hidden field which is
    called Archive which when the form submits it will also write back a 1
    to a field called Archive in the same table if you see what I mean!
    After having a look around on the net I assume an "onchange" event
    would be able to do this but being a bit dense when it comes to
    Javascript I don't know really where to start.
    Any help would be greatly appreciated and a little explanation on the
    code would be useful to help me understand.
    Thanks in advance
    Richard
     
    rturner99, Jul 1, 2004
    #1
    1. Advertising

  2. rturner99

    Randy Webb Guest

    rturner99 wrote:
    > Hi all,
    > Im fairly new to all this and was after a little bit of help. I
    > apologise now as my Javascript is extremely limited. I currently have
    > an ASP page which has a drop down menu which is dynamically populated
    > from an MS SQL database. It has 4 options which can be chosen. These
    > are, Complete, On schedule, Behind schedule and Archive. One of these
    > will get written back to the database in a field called Status
    > depending on what has been chosen. What I am after is if someone
    > selects Archive I want it to write back a 1 to a hidden field which is
    > called Archive which when the form submits it will also write back a 1
    > to a field called Archive in the same table if you see what I mean!
    > After having a look around on the net I assume an "onchange" event
    > would be able to do this but being a bit dense when it comes to
    > Javascript I don't know really where to start.
    > Any help would be greatly appreciated and a little explanation on the
    > code would be useful to help me understand.


    Use ASP to do it.

    Check the value of the Select list. If its Archive, then change two
    fields in the Database. No JS needed at all.


    --
    Randy
    Chance Favors The Prepared Mind
    comp.lang.javascript FAQ - http://jibbering.com/faq/
     
    Randy Webb, Jul 1, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Zeebra3
    Replies:
    5
    Views:
    5,126
    pelegk1
    Jul 15, 2007
  2. Brendan Vogt

    POSTING A FORM USING onchange

    Brendan Vogt, Aug 28, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    491
    Leon Jollans
    Aug 28, 2003
  3. Kathy Burke
    Replies:
    1
    Views:
    1,128
    Severin
    Nov 10, 2003
  4. MDBloemker
    Replies:
    2
    Views:
    2,860
  5. =?Utf-8?B?TW9ua2V5Qm95?=
    Replies:
    2
    Views:
    445
    =?Utf-8?B?TW9ua2V5Qm95?=
    Jun 6, 2004
Loading...

Share This Page