The people who create jQuery say progressive enhancement is the best way to
use jQuery. It's simple and maintainable, you build your app without any
jQuery from the start. Then once your app works with pure html you sprinkle
on jQuery. One of the best frontend resources I've been reading lately
what ever.
>
>
>
> *From:* cake...@googlegroups.com [mailto:
> cake...@googlegroups.com ] *On Behalf Of *André Luis
> *Sent:* Friday, May 24, 2013 2:09 PM
> *To:* cake...@googlegroups.com
> *Subject:* Re: Cakephp Ajax helper or Jquery?
>
>
>
> I usually u
Using the Cake Ajax/JavaScript helpers means Cake will write your
JavaScript. Using jQuery means you write it.
Writing your own jQuery means you have more separation and you can keep
your javascript out of your views and place it in it's own file. Reading as
much as you can about progressive en
download and add jquery ajax helper
http://www.cakephp.4uk.pl/
and use jquery libs
On Friday, May 24, 2013 2:21:45 AM UTC-7, Sam wrote:
>
> Hi Cakephp experts,
>
> I would like to try out Ajax. May I know what are the pros and cons of
> Cakephp Ajax helper and Jquery? I have never touched aj
*return false*;
>
>*})*;
>
> *}*;
>
>
>
> And I have cake create the array of info $response = array('message' =>
> Good stuff it saved, 'html' => grab my view / element whatever…., 'status'
> => true, anything else y
f it saved, 'html' => grab my view / element whatever.., 'status' =>
true, anything else you want to add.)
And just server it up as a json response and presto!
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Leigh Mackay
Sent: Su
Hi Sam,
Progressive enhancement is a very elegant solution for Ajax and UI.
Build your app without any Ajax/JavaScript. Use the app controllers before
filter to change the layout on ajax requests.
public function beforeFilter() {
if ($this->request->is('ajax')) {
$this->disableCache();
$
Why prefix it?
If $this->request->is('ajax') then do what ever.
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of André Luis
Sent: Friday, May 24, 2013 2:09 PM
To: cake-php@googlegroups.com
Subject: Re: Cakephp Ajax helper or Jquery?
I usua
I usually use the same controller for ajax, but use prefixes for ajax
requests
ajax_index, ajax_edit, ajax_delete...
Em sexta-feira, 24 de maio de 2013 06h21min45s UTC-3, Sam escreveu:
>
> Hi Cakephp experts,
>
> I would like to try out Ajax. May I know what are the pros and cons of
> Cakephp A
Hi Sam,
I would suggest using jQuery and creating your own ajax controller.
The reason I recommend this is because you can optimise the code in a lot
more detail and if you've never dealt with AJAX learning how to do it
without Cake's magic is a good place to begin.
Cheers
mrenigma
On Friday,
Hi Cakephp experts,
I would like to try out Ajax. May I know what are the pros and cons of
Cakephp Ajax helper and Jquery? I have never touched ajax and would like to
know which is a better choice as a start. Thank you very much.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us
11 matches
Mail list logo