Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: JAVASCRIPT INCLUDE ISSUES

  1. #1

    Default JAVASCRIPT INCLUDE ISSUES

    I am trying to include a .js file
    into parameter-template.html
    it somehow doe not read the .js file
    Though a jsp I created works fine..
    Can pentaho not include a .js file. http://forums.pentaho.org/archived_a...newTestTry.zip

    Post edited by: 122234, at: 05/18/2006 21:51

  2. #2
    Join Date
    Nov 1999
    Posts
    579

    Default Re:JAVASCRIPT INCLUDE ISSUES

    Pri,

    First, please don't use all capitals in a subject. It's the same a shouting/yelling, and is generally considered rude.

    Secondly, your test.js include is as follows:

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

    There's a couple of problems with this statement:

    a- The script tag you've specified does not have a proper close of the tag. It should be />

    b- test.js doesn't provide any context for the http server to locate the javascript file. Instead, place the .js file in a subdirectory in the pentaho.war webapp (maybe a subdirectory called script) and then use:

    <script src="/pentaho/script/test.js" type="text/javascript"/>

    I hope this helps,

    Marc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.