On Tue, Mar 3, 2009 at 11:26 AM, Stu <[email protected]> wrote:
>
> Thanks for the reply Doctor,
>
> I'm not even sure why I was using both, I didn't know what JQuery was
> until last week, nor did prototype was until this morning, hehehe.

I think the best advice anyone can give you is to spend some time
fiddling with those in basic HTML pages. If you're not familiar with
either framework, trying to get anything to work consisitently in Cake
is going to be painful.

> anyways last week I implemented some JQuery U.I. features to my app:
> http://docs.jquery.com/UI/Accordion
>
> and today I wanted to fill up this feature with ajax links, reading on
> about it led me to use prototype.
>
> This required me to link to other JavaScripts to my layout and then
> that's where it blew up on me.
>
> "But the main question is why do you want to use them both? Any of
> them
> can solve any problem. "
>
> Is there a way to perform some kind of ajax->link using JQuery?

Cake's AjaxHelper is dependent upon Prototype. If you want to use the
helper, you're stuck with that framework. Prototype uses Scriptaculous
for the pretty stuff, while jQuery uses UI. Don't try to mix them.
While it can be done, it's not something I'd recommend, especially if
you're not at all familiar with either.

If you really want to use UI.accordion, stick with jQuery. That means
doing without AjaxHelper and writing a bit of JS yourself. But jQuery
is quite easy to use.

Start with the manual section on AJAX:
http://docs.jquery.com/Ajax

--~--~---------~--~----~------------~-------~--~----~
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