Re: Cakephp Ajax helper or Jquery?

2013-05-27 Thread Leigh Mackay
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

Re: Cakephp Ajax helper or Jquery?

2013-05-27 Thread André Luis
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

Re: Cakephp Ajax helper or Jquery?

2013-05-26 Thread Leigh Mackay
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

Re: Cakephp Ajax helper or Jquery?

2013-05-26 Thread Chris
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

Re: Cakephp Ajax helper or Jquery?

2013-05-26 Thread Leigh Mackay
*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

RE: Cakephp Ajax helper or Jquery?

2013-05-26 Thread Advantage+
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

Re: Cakephp Ajax helper or Jquery?

2013-05-25 Thread Leigh Mackay
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(); $

RE: Cakephp Ajax helper or Jquery?

2013-05-24 Thread Advantage+
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

Re: Cakephp Ajax helper or Jquery?

2013-05-24 Thread André Luis
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

Re: Cakephp Ajax helper or Jquery?

2013-05-24 Thread mrenigma
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,

Cakephp Ajax helper or Jquery?

2013-05-24 Thread Sam
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