Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Form Method

Form Method

Scheduled Pinned Locked Moved Web Development
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amol Ravatale
    wrote on last edited by
    #1

    How can can write following code in Vbscript, as I tried this one in ASP, but not working, do not know why. function Validate(frm) { if (frm.id.value.length==0) { alert('Invalid Id'); frm.id.focus(); return false; } if (frm.password.value.length==0) { alert('Invalid Password'); frm.password.focus(); return false; } return true; }

    ID:
    Password:

    Every thing will come to you if you have faith. -- modified at 22:00 Tuesday 9th May, 2006

    G N 2 Replies Last reply
    0
    • A Amol Ravatale

      How can can write following code in Vbscript, as I tried this one in ASP, but not working, do not know why. function Validate(frm) { if (frm.id.value.length==0) { alert('Invalid Id'); frm.id.focus(); return false; } if (frm.password.value.length==0) { alert('Invalid Password'); frm.password.focus(); return false; } return true; }

      ID:
      Password:

      Every thing will come to you if you have faith. -- modified at 22:00 Tuesday 9th May, 2006

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Standard question #1: What do you mean by "not working"? --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • A Amol Ravatale

        How can can write following code in Vbscript, as I tried this one in ASP, but not working, do not know why. function Validate(frm) { if (frm.id.value.length==0) { alert('Invalid Id'); frm.id.focus(); return false; } if (frm.password.value.length==0) { alert('Invalid Password'); frm.password.focus(); return false; } return true; }

        ID:
        Password:

        Every thing will come to you if you have faith. -- modified at 22:00 Tuesday 9th May, 2006

        N Offline
        N Offline
        NeverHeardOfMe
        wrote on last edited by
        #3

        There is no such form property as "removed"... try replacing that with "onSubmit"... cheers Phil

        A 1 Reply Last reply
        0
        • N NeverHeardOfMe

          There is no such form property as "removed"... try replacing that with "onSubmit"... cheers Phil

          A Offline
          A Offline
          alexey N
          wrote on last edited by
          #4

          Phil Uribe wrote:

          There is no such form property as "removed"...

          Yes, this forum replaces "onclick" near "=" to "removed=" :cool: try post this: onclick= Best regards, Alexey.

          G 1 Reply Last reply
          0
          • A alexey N

            Phil Uribe wrote:

            There is no such form property as "removed"...

            Yes, this forum replaces "onclick" near "=" to "removed=" :cool: try post this: onclick= Best regards, Alexey.

            G Offline
            G Offline
            Guffa
            wrote on last edited by
            #5

            Use onsubmit instead of onclick. --- b { font-weight: normal; }

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups