Alert and disable

Discussion in 'ASP General' started by news, Apr 11, 2006.

  1. news

    news Guest

    Hello,
    How can I check if the file is an JPG within my form??
    If the file is JPG then the submit button should be enable, if not the
    submit button should be disable!!

    Can someone paste any samplecode!!

    //Nils
     
    news, Apr 11, 2006
    #1
    1. Advertising

  2. news

    Mike Brind Guest

    news wrote:
    > Hello,
    > How can I check if the file is an JPG within my form??
    > If the file is JPG then the submit button should be enable, if not the
    > submit button should be disable!!
    >
    > Can someone paste any samplecode!!
    >
    > //Nils


    You will have to use client side code for this. ASP can't be used to
    check anything until AFTER the submit button has been clicked.

    Try comp.lang.javascript

    --
    Mike Brind
     
    Mike Brind, Apr 11, 2006
    #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. Mersh
    Replies:
    0
    Views:
    509
    Mersh
    Mar 13, 2007
  2. Ganesh
    Replies:
    0
    Views:
    565
    Ganesh
    Jun 29, 2007
  3. Ian Shere
    Replies:
    1
    Views:
    140
    Lasse Reichstein Nielsen
    Dec 15, 2003
  4. Sound
    Replies:
    2
    Views:
    465
    Randy Webb
    Sep 28, 2006
  5. John
    Replies:
    3
    Views:
    174
    Darko
    Jul 13, 2007
Loading...

Share This Page