8 Replies Latest reply on Jun 1, 2009 7:43 AM by Nick Belaevski

    Including JS file

    Shivaji Byrapaneni Newbie


      Hi all,

      I just want to make my validations on teh client side using java script so i thought of including my script file like this

      <script src="JS/NominationScripts.js" type="text/javascript"></script>
      


      i had included the above in my head part
      and my js file is there in the path as specified

      when i include that part im getting error where the javascript function need to be called saying object expected.

      im calling the function like this
      <h:inputText value="#{registerBean.userId}" id="userIdit"
       onkeyup="tester()">
      


      and my js file is not having any errors

      i even tried with empty js file without any contents. still the same problem. when page is loading it is showing me a script error.

      pls help