Page 1 of 1

Javascript problem.

Posted: Mon Oct 17, 2011 10:23 am
by vjandrei
Hi.
I have CMS Made Simple 1.6.6 "Bonde" version in use.
Now i like to have slider to the site but there is some problem whit java when i add this

Code: Select all

<__script__>
      $(document).ready(function() {
        
        $('#banner').slidey({
          'animation' : 'fade',
          'width' : 990,
          'height' : 294
        });
        
      });
    </__script>
safari error console say

Code: Select all

TypeError: 'undefined' is not a function (evaluating '$('#banner').slidey({ 
'animation' : 'fade', 
'width' : 700, 
'height' : 300 
})')
what is the problem?
Thanx-

Re: Javascript problem.

Posted: Mon Oct 17, 2011 11:17 am
by Jos
vjandrei wrote:I have CMS Made Simple 1.6.6 "Bonde" version in use.
You should upgrade immediately!

Regarding your question:
http://wiki.cmsmadesimple.org/index.php ... your_pages

Re: Javascript problem.

Posted: Tue Oct 18, 2011 3:20 am
by spcherub
Also try and put your JS code between {literal} and {/literal} tags. So your code should read:

Code: Select all

{literal}
<__script__>
      $(document).ready(function() {
        
        $('#banner').slidey({
          'animation' : 'fade',
          'width' : 990,
          'height' : 294
        });
        
      });
    </__script>
{/literal}

Re: Javascript problem.

Posted: Tue Oct 18, 2011 1:11 pm
by Jos
That's what the link I gave says ;)

Re: Javascript problem.

Posted: Tue Oct 18, 2011 1:49 pm
by spcherub
@Jos: You are right. I mistook the link and text at the bottom of your post for your sig!