Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

is it possible to include external javascrip file into ear file using NetBean 5.5.1?  RSS feed

 
peter tong
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it possible to include external javascript file into filename.ear file using NetBean 5.5.1? if not, then where should I placed the external javascript file and how to write the src="xxx" element in javascript? (that is , how to write the path of scr="xxx" in javascript?)
I am using JBOSS 4.2.2 as server

thanks!!
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36396
453
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter,
By putting a copy of the js in the ear, it is no longer external. If you want to reference it as external, you can use the full htttp://mysite.com/myPath/external.js URL in the src attribute. However, this JavaScript file will be limited in what it can do. In particular, it can't communicate with your server.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!