help with checking form

Results 1 to 3 of 3

Thread: help with checking form

  1. #1
    Join Date
    Dec 1969

    Default help with checking form

    i need to check if the form the user is completing valid..and i want to check only certain in VBScript i do the following..but it gives me the alert message but still sends the form without stoping..what do i need to include???<BR><BR>If Len(articlefrm.txtTitle.value) = 0 Then<BR> Alert "You Must Enter the Article Title"<BR> articlefrm.txtTitle.focus<BR> Exit Sub

  2. #2
    Join Date
    Dec 1969

    Default In Javascript...

    If you return a false value from the function, you can stop the form submission.<BR><BR>You must an obsubmit event into the &#060;form&#062; tag:<BR>onSubmit="return functionname()"<BR><BR>Don&#039;t know if that will help you or not when it comes to client-side VBScript.<BR><BR>-Doug

  3. #3
    Join Date
    Dec 1969

    Default RE: In Javascript...

    You can call a vbscript function from a javascript function, so it should work fine.

Posting Permissions

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