Skip to main content
added 20 characters in body
Source Link
Rajeev K Tomy
  • 17.3k
  • 6
  • 63
  • 103

To add the external js file there is no native function in magento. But you can add the js file through layout by following code

<reference name="head">
 
    <block type="core/text" name="unique-name">
 
        <action method="setText"><text><method="setText">
            <text><![CDATA[<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>]]></text><text>
        </action>
 
    </block>
 
</reference>

To add the external js file there is no native function in magento. But you can add the js file through layout by following code

<reference name="head">
 
    <block type="core/text" name="unique-name">
 
        <action method="setText"><text><![CDATA[<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>]]></text></action>
 
    </block>
 
</reference>

To add the external js file there is no native function in magento. But you can add the js file through layout by following code

<reference name="head">
    <block type="core/text" name="unique-name">
        <action method="setText">
            <text><![CDATA[<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>]]></text>
        </action>
    </block>
</reference>
Source Link

To add the external js file there is no native function in magento. But you can add the js file through layout by following code

<reference name="head">

    <block type="core/text" name="unique-name">

        <action method="setText"><text><![CDATA[<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>]]></text></action>

    </block>

</reference>