Jump to content
We've recently updated our Privacy Statement, available here ×

HTML with external .js references


janiesprenger

Recommended Posts

Using iReport 5.1 community edition of JasperSoft

I have an HTML component on an iReport.  The HTML renders a D3 sankey chart.  I have added the sankey.js, jquery.js, and raphael.js files to the decorator.jsp file and placed the files in the scripts folder on the web server.  I also have them on the local drive where I'm running iReport. 

When I run the iReport file locally, the html renders correctly - note that I hardcoded the directory where the files are on the local machine.

What I don't know how to do is to reference the src in the html so that when the file runs jasperserver, the code can find the function in the .js files.

Does anyone know?

Something like: src="raphael.js" type="text/javascript"But what would the path to the js file be?

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...