Loading ...
Sorry, an error occurred while loading the content.
 

VBScript

Expand Messages
  • Echo
    can VBScript files be imported like JS can? the VBS
    Message 1 of 3 , Aug 30 12:29 PM
      can VBScript files be imported like JS can?

      <script src="js.js" language="Javascript"></script>
      <script src="vbs.vbs" language="VBScript"></script>

      the VBS file doesn't seem to load...

      -E
    • Erik Khan
      How to i call validateForm() function in val1() as i use validateForm() to check inside the body of the form but some reasons i want to call that function into
      Message 2 of 3 , Aug 30 9:46 PM
        How to i call validateForm() function in val1() as i use validateForm() to check inside the body of the form but some reasons i want to call that function into val1()

        <HTML>
        <script>
        function val1(vend1) {
        vend1.submit();
        }

        function validateForm(frm) {
        if(frm.vendr1.value == "") {
        alert("Vendor name required");
        frm.vendr1.focus();
        return false;
        }

        if(frm.smethod.value == "") {
        alert("Shipping Method required");
        frm.smethod.focus();
        return false;
        }


        return true;
        }
        </script>

        <BODY>
        <TITLE>VENDORS RATE FOR SINGLE ZIP CODE</TITLE>
        <form name="vend1" method="post" action="venrat20.asp" onsubmit="return validateForm(this);">
        <br>

        Name: <input type="text" name="vendr1">
        Shipping Method<input type="text" name="smethod">

        </form>

        __________________________________________________
        Do You Yahoo!?
        Tired of spam? Yahoo! Mail has the best spam protection around
        http://mail.yahoo.com

        [Non-text portions of this message have been removed]
      • Programming Help
        ... Check the .vbs path. It must work. -- http://www.programminghelp4u.com/ - Help on programming (C/C++, Java, C# or any other programming language) for
        Message 3 of 3 , Aug 31 6:33 PM
          On 8/31/05, Echo <voxecho@...> wrote:
          > can VBScript files be imported like JS can?
          >
          > <script src="js.js" language="Javascript"></script>
          > <script src="vbs.vbs" language="VBScript"></script>
          >
          > the VBS file doesn't seem to load...
          >
          > -E

          Check the .vbs path. It must work.
          --
          http://www.programminghelp4u.com/ - Help on programming (C/C++, Java, C# or
          any other programming language) for homework, assignments, course works and
          projects <http://www.programminghelp4u.com/>


          [Non-text portions of this message have been removed]
        Your message has been successfully submitted and would be delivered to recipients shortly.