Hi fredBH,

I find jquery much easier to use and code than prototype (actually I never
did make
any real progress with prototype)

Having said that the use of prototype is more widespread than jquery, and so
there are more tutorials for prototype.

heres some tutorials that I have found useful in the past
http://docs.jquery.com/Tutorials
http://15daysofjquery.com/category/tutorials/
http://dzone.com/rsslinks/the_10_minute_jquery_tutorial.html

AFAIK prototype require more code than jquery and is generally not
unobtrusive, I may be wrong about this

and now that jquery 1.1.1 is out its more compact than before and faster
than it was
also there is the interface lib for jquery which is I think fully featured.

It much easier to learn and code than prototype (IMHO) - and the jquery list
is very active.

For instance in cakePHP 1.2 I am finding some issues with using the
paginator helper since it has code for prototype built in. With jquery this
is not needed

as you attach events to elements via classname or ids foreinstance.  I have
a jLink class which I use to change the content of a page.  Below is the
jQuery code that attaches the binds the code to anchors with

// jLink - now add events$("a.jLink").click(function(event) {
   event.stopPropagation ();
   event.preventDefault();

   jLinkCall(this.href);
});

 // ### Begin jLink Events ###

function jLinkCall(jHref)
{

    // extract the id from this.href
    var htmlDoc = new String(jHref);

    // CODE TO PROCESS THE HREF {WHATEVER YOU NEED TO DO}
    ...

    // SLIDE UP THE MAIN DIV
    $("div#main").slideUp("fast").empty();

    // REQUEST JSON CONTENT
    $.getJSON("/articles/data/" + htmlDoc,params,function(json) {
        // debug in firebug
        console.debug(json);
    );
} // END jLinkCall()

in the time it has taken me to prepare this others have shed some light.

I will be looking in to this information which I will be looking into
myself.

bake on !!

On 08/02/07, fredBH <[EMAIL PROTECTED]> wrote:
>
>
> hi everyone!
>
> im going to start develop and im see some guys using jquery... others
> using normal ajax cake prototype... and i just wanna know what the
> diference of them...
> I had searched about jquery but i dont understand how can it change
> about ajax call from Prototype...
>
> Can someone help showing me what do some uses jquery e some uses
> Prototype ?
> Articles... Tutorials... anything helpfull...
>
> Thx a lot guys
> bye
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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