Javascript problem.

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
vjandrei
Forum Members
Forum Members
Posts: 10
Joined: Mon Jul 04, 2011 11:23 am

Javascript problem.

Post 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-
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm

Re: Javascript problem.

Post 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
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: Javascript problem.

Post 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}
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm

Re: Javascript problem.

Post by Jos »

That's what the link I gave says ;)
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: Javascript problem.

Post by spcherub »

@Jos: You are right. I mistook the link and text at the bottom of your post for your sig!
Post Reply

Return to “The Lounge”