Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Hot to add a JavaScript to a new custom module? 
 
rahulc
Jr. Member
 
Total Posts:  2
Joined:  2008-11-06
 

Hi,

I am new to Magento. I would like to know that I want to create a vertical scrolling news field on the home page. For that I have created a module named News. Now I would like to know, how I can link the JavaScript part of such module with the View.phtml file?

Regards
Rahul ohh

 
Magento Community Magento Community
Magento Community
Magento Community
 
Discovery
Enthusiast
 
Total Posts:  767
Joined:  2007-12-29
 

See the wiki article on adding Lightbox - that describes how to add in a Javascript. You might also want to use Scriptaculous/Prototype rather than jQuery or Mootools as Magento already loads Scriptaculous/Prototype and there is no conflict as per jQuery.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top