Page 1 of 1

Using jQuery with CMS Made Simple...

Posted: Sat Feb 07, 2009 4:28 pm
by kcorey
Hi All,

I need some clarification about using jQuery with CMS.  All the examples I've found are single page examples meant to make a single point clear.  So far so good.

However, the header (where jsquery stuff is normally defined) is completely formed in the template, and is therefore loaded for every page.

How does $.ready(function() ...); work then?  Do I need to have a big switch statement that handles particular pages?  Can this be defined in the tag?  (specifically, in the primary content section)?

Thanks for your help!

-Ken    ???

Re: Using jQuery with CMS Made Simple...

Posted: Sat Feb 07, 2009 4:32 pm
by calguy1000
a) check out the blog at calguy1000.com.... I just added an article about the jquery stuff I've been doing
b) you can put as many ready functions as you need into the page body or the header
c) you can use the page-specific metadata field to insert page specific javascript if needed.

Re: Using jQuery with CMS Made Simple...

Posted: Sat Feb 07, 2009 7:13 pm
by kcorey
Oh cool beans!

I had just discovered that I could execute jquery queries inside the tag, but that metatag trick is very sweet.

Thanks for the quick answer!

-Ken