In order to include external js files in specified pages ….
Add below line of code in required  xml file…
 <reference name="head">
 <block type="core/text" name="myjscode"><action method="setText"><text><![CDATA[<script language="javascript" type="text/javascript" src="http://www.mysite.com/jsfile.js"></script>]]></text></action></block>
 </reference> 

For eg: let we need this js in products list… then take catalog.xml from our layout theme and include above line of codes inside ‘<catalog_category_default translate=”label”>’ or ‘<catalog_category_layered translate=”label”>’

 Leave a Reply

(required)

(required)


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2014 Developers Corner Suffusion theme by Sayontan Sinha