Mobile-Menu iFuturz Infoweb Inc. Contact Portfolio

03

Aug

How to use internal and external JavaScript in xcart.

How to use internal and external JavaScript in xcart.

Posted On : August 3, 2013

| No Comment

In XCART  we can’t include JavaScript in same as standard XHTML pages. XCART using Smarty template engine framework . We must be follow smarty framework rules when you include external  javascript  or In page javascript.

In short Xcart  is a smarty base template engine so we can include JavaScript using below steps.

For example :

/skin/common_files/top_banner.tpl

In this file top_banner.tpl,You need to write the below code

External JavaScript

View Code JAVASCRIPT
{literal}
 
<script src="js/jquery.jscrollpane.js" type="text/javascript"></script> 
 
{/literal}

Internal JavaScript

View Code JAVASCRIPT
{literal}
 
function  call_details{
 
var  id  = document.getElementById("user_id").value;
 
}
{/literal}
  • Tags:

Comment