On Fri, Feb 27, 2009 at 2:40 PM, BrendonKoz <[email protected]> wrote:
>
> Is it possible to be even a bit more specific?  Is jQuery being
> successfully loaded in to your CakePHP page?  Is the jQuery UI script
> successfully loaded?  Are you having problems loading the two scripts
> in to your layout, or afterward?  You can check the source of your
> rendered page to see if the path to your scripts are being loaded
> properly.  Do you have a web-accessible version of this page to see
> what may be the problem?
>
> jQuery is meant to be unobtrusive, meaning you don't have to do
> anything special with CakePHP to get it to work (once all the scripts
> are included).  So, it's hard to say what the problem is.  You do not
> need scriptaculous or prototype to work with jQuery.  Think of
> scriptaculous as the effects (UI) library for the Prototype JS
> library.

I think the Cake devs have unintentionally muddied the waters a bit
too much by including AjaxHelper in core. While it may be quite useful
(to some--it's Prototype-only) it seems to have confused a lot of
people about the difference between server-side & client-side
technologies.

I mean, there ALWAYSare going to be people mixing up PHP (or ASP) and
JS code. It's just that there now seems to be this idea, for some,
that Cake is a JS framework, as well.

@Stu: You need to understand how $javascript->link() and
$scripts_for_layout work. To get accordion working, you'll need to
include the appropriate jquery and jquery.ui.* files, then include
some code of your own to initialise your page elements.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to