0 Replies Latest reply on Mar 12, 2007 12:18 PM by debolina

    Problem when including JS

    debolina

      I am trying to include a javascript to the jsp page and have a function call to javascript function. I am getting an SyntaxErro-Parse error on the js page.
      I have added :

      function thisistest(){

      alert('this is js include test');
      }

      in my javascript page.
      If i look at the javascript console, I have a lots of code included in the js page like:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


      JBoss Portal 2.6.0-SNAPSHOT
      <meta http-equiv="Content-Type" content="text/html;"/>
      <!-- to correct the unsightly Flash of Unstyled Content. -->

      <!-- inject the theme; default to the renaissance theme if nothing is selected for the portal or the page -->




      to start with.

      The error is on the first line .
      I am new to this portlet stuff. An example to how to include a javascript and call the javascript will help a lot.
      I am deploying on jboss-portal-2.6.0 DR12.
      Thanks in advance for any help