Jump to content

How to include a javascript file in a widget?


LaCollision

Recommended Posts

Hi there,

I'm creating a widget that needs to load a javascript file.

I've added a .js file in:

/applications/myapp/dev/js/front/controllers/myjsfile.js

 

… and I've compiled my app, so I have a /applications/myapp/data/javascript.xml file that contains the javascript:

<javascript app="myapp">
 <file javascript_app="myapp" javascript_location="front" javascript_path="controllers" javascript_name="myjsfile.js" javascript_type="controller" javascript_version="100000" javascript_position="1000050">the javascript code</file>
</javascript>

 

… but now, how do I include this javascript resource in my widget .phtml file?

 

Thanks a lot! :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...