[Solved] Javascript help please?!
Posted: Wed Apr 22, 2009 11:13 am
I am studying the basics of javascript and try to play around with cmsms and jcarousel (http://sorgalla.com/jcarousel/. I uploaded with ftp (also tried with file manager) the whole jcarousel folder in the root and then added to page options the Page Specific Metadata:
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel();
});
Then I added to Page Main Content with wysiwyg off:
jCarousel
Riding carousels with jQuery
Simple carousel
This is the most simple usage of the carousel with no configuration options.
I get to see the page but all the images are in the vertical row so it don't use any javascript to handle the images. Also I get this error: string(150) "Smarty error: [in metadata template line 25]: syntax error: unrecognized tag: jQuery('#mycarousel').jcarousel(); (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in metadata template line 25]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
However, when I create via ftp new html document to the root with same content than above, everything works just fine. Is there some difference in jacascript paths with static html page vs creating page with cmsms that I am missing?
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel();
});
Then I added to Page Main Content with wysiwyg off:
jCarousel
Riding carousels with jQuery
Simple carousel
This is the most simple usage of the carousel with no configuration options.
I get to see the page but all the images are in the vertical row so it don't use any javascript to handle the images. Also I get this error: string(150) "Smarty error: [in metadata template line 25]: syntax error: unrecognized tag: jQuery('#mycarousel').jcarousel(); (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in metadata template line 25]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
However, when I create via ftp new html document to the root with same content than above, everything works just fine. Is there some difference in jacascript paths with static html page vs creating page with cmsms that I am missing?