Graham
You cannot put one xt:function inside another and the includes are parsed before any other xt:function
They have to be or you could not include pages with xt:functions on them
MHS_AN-99
Dkkm create menu "reload" on page content ur site to minimize xtscript an error timeout or 'crash'. if u want use xtscript so big or multi xtscript on a page, cz xtscript need times to executed server.
Dkkm
onedc Is there any other way without using XTS not.
Since I usually see: Timeout on XTS
onedc
Dkkm Try this code.
<!--parser:xtscript-->
var $dumpvar = <xt:get_device_template />
if $dumpvar == mobile
assign $dumpvar = <xt:include file="/mobile.js" />
elseif $dumpvar == touch
assign $dumpvar = <xt:include file="/touch.js" />
elseif $dumpvar == web
assign $dumpvar = <xt:include file="/web.js" />
endif
print $dumpvar
<!--/parser:xtscript-->
Copy code
Dkkm
Why can not I use this code
<xt:include file="/<xt:get_device_template>.js"/>
Copy code