Javascript problem

Sorry i had to ask this simple question, can 2 javascripts run in the same page.

because i had this javascript calendar function but i also need to check for the textbox to make sure it had no empty spaces. but all i could find for the required function is in javascript language.

i have tried using them but the 2nd script; the checking for required entry (textbox) is not working. i wanted to make sure that the textbox is not empty so as to allow user to click and goto next page.

Thanks for your help.

Comments

  • Hello,

    Running multiple java scripts should not cause a problem. As for the form field checker, I use an "onSubmit=return _code_(this)" command in the tag itself to explicitly call the script that checks for empty fields when "Submit" is pressed. Upon a return of "true", the form submits as usual.

    I can provide some code if need be.

    -gilmorelee

    : Sorry i had to ask this simple question, can 2 javascripts run in the same page.
    :
    : because i had this javascript calendar function but i also need to check for the textbox to make sure it had no empty spaces. but all i could find for the required function is in javascript language.
    :
    : i have tried using them but the 2nd script; the checking for required entry (textbox) is not working. i wanted to make sure that the textbox is not empty so as to allow user to click and goto next page.
    :
    : Thanks for your help.
    :
    :

  • Thanks for your help. I have managed to solve my 2 scripts already. If i have any problems i will ask for help again.

    : Hello,
    :
    : Running multiple java scripts should not cause a problem. As for the form field checker, I use an "onSubmit=return _code_(this)" command in the tag itself to explicitly call the script that checks for empty fields when "Submit" is pressed. Upon a return of "true", the form submits as usual.
    :
    : I can provide some code if need be.
    :
    : -gilmorelee
    :
    : : Sorry i had to ask this simple question, can 2 javascripts run in the same page.
    : :
    : : because i had this javascript calendar function but i also need to check for the textbox to make sure it had no empty spaces. but all i could find for the required function is in javascript language.
    : :
    : : i have tried using them but the 2nd script; the checking for required entry (textbox) is not working. i wanted to make sure that the textbox is not empty so as to allow user to click and goto next page.
    : :
    : : Thanks for your help.
    : :
    : :
    :
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories