Page 1 of 1

SOLVED - js not working

Posted: Fri Nov 26, 2010 1:28 pm
by per
Hi.
I have this simple script but I cant make it work. Get messajes like syntax error: unrecognized tag.
Works fine outside cmsms.

Its a very nice script.
anyone can help me?

thanks

/***************************************************************/








var account = {admin: false }, v = {
ver: "3.2.2",
core: "/swf/flowplayer-3.2.2.swf",

controls: "flowplayer.controls-3.2.1.swf",
air:  "flowplayer.controls-air-3.2.1.swf",
tube:  "flowplayer.controls-tube-3.2.1.swf",

content: "flowplayer.content-3.2.0.swf",
rtmp: "flowplayer.rtmp-3.2.1.swf",
slowmotion: "flowplayer.slowmotion-3.2.0.swf",
pseudostreaming: "flowplayer.pseudostreaming-3.2.2.swf"
};

   









#actionButtons {
text-align:center;
margin-top:30px;
}






 
 
 
     
       
     
     
       
     
     
       
     
     
 
 









// What is $(document).ready ? See: http://flowplayer.org/tools/documentati ... ment_ready
$(document).ready(function() {

// initialize scrollable together with the autoscroll plugin
var root = $("#scroller").scrollable({circular: true}).autoscroll({ autoplay: true });

// provide scrollable API for the action buttons
window.api = root.data("scrollable");


});



 


Re: js not working

Posted: Fri Nov 26, 2010 1:53 pm
by maranc
My dear, content of js script must be in literal tag like this:
{literal}
         
      var account = {admin: false }, v = {
        ver: "3.2.2",
        core: "/swf/flowplayer-3.2.2.swf",
       
        controls: "flowplayer.controls-3.2.1.swf",
        air:  "flowplayer.controls-air-3.2.1.swf",
        tube:  "flowplayer.controls-tube-3.2.1.swf",
       
        content: "flowplayer.content-3.2.0.swf",
        rtmp: "flowplayer.rtmp-3.2.1.swf",
        slowmotion: "flowplayer.slowmotion-3.2.0.swf",
        pseudostreaming: "flowplayer.pseudostreaming-3.2.2.swf"
      };
 
{/literal}

Marek A.

Re: js not working

Posted: Fri Nov 26, 2010 2:05 pm
by per
Thanks a lot!
The script work now.
You know!

Re: SOLVED - js not working

Posted: Sat Nov 27, 2010 3:44 am
by Dr.CSS
Reading a default template will tell you this...

{* the literal below and the /literal at the end are needed whenever there are {"curly brackets"} as smarty will think it's something to process and will throw an error *}

Re: SOLVED - js not working

Posted: Tue Nov 30, 2010 5:08 am
by per
thanks maranc!