23
Feb
07

Get Started With AJAX in CakePHP

This article has useful links for a CakePhp new comer to get started with using Ajax. As the manual mentions, using Ajax in your Cake application is very easy. Ajax is implemented in Cake through the Cake Ajax Helper, which is included with Cake by default. The Cake Ajax helper utilizes the ever-popular Prototype and script.aculo.us libraries for Ajax operations and client side effects.

Below are some useful resources that got me started with Ajax in CakePHP. I hope these will help you too:

1. Getting Started:

2. AutoComplete:

3. Ajax Redirect:

4. Ajax Validation:

5. Encoding:

6. Ajax Uploader:

7. Ajax Star Rating:

8. Ajax Chat:

9. TinyMCE with Ajax:

10. Dojo Helper

11. Updating Select Box using Ajax

12. CakePhp API

13. Search The Cake PHP Google Group

Feel free to leave comment. And, if you think I have left out some useful links, do let me know too.

About these ads

68 Responses to “Get Started With AJAX in CakePHP”


  1. 18 March, 2007 at 7:25 pm

    Wow, such a great compilation to start baking with CakePHP.

  2. 19 March, 2007 at 1:07 pm

    Thanks, this really will help me…

  3. 2 April, 2007 at 8:57 pm

    Great links collection!

    Also you could create another Cake links compilation for all-purpose tutorials, that should be great.

  4. 3 April, 2007 at 1:38 pm

    Nice collection of links. This will really help me get up to speed using the framework.

  5. 5 abhay jain
    9 April, 2007 at 11:24 pm

    Hi friends.

    I have one problem in Ajax. How can we call a javascript function with ajax in cake Php?. I dont exactly get the syntax. So Plz help me out. And the collection of links in this page is great.

  6. 20 April, 2007 at 12:05 pm

    @abhay jain:

    Im not sure what you are exactly trying to say, but if i got you correct, you want to have ajax call from your javascript. If thats so, here are some hints:

    What the cake ajax helper does is that it generates js that makes the ajax call. To be exact, it generates javascript that make use of the prototype library. So, if you have used the Ajax helper in a particular page, you will see that cake genarates javascript in that particular page. You can view this generated js, by looking at the source of the generated html.

    Instead of using cake to generate the ajax calls, you can write your own js, using the prototype library(or any other library for that matter). All you have to do is to learn the ajax functions of the prototype library. You can get to know more about prototype ajax function here: http://www.prototypejs.org/learn/introduction-to-ajax

    I hope i was helpful, and sorry for the late reply :)

  7. 7 Miko
    16 May, 2007 at 12:51 am

    Here is a new ajax powered free chat http://chantlive.com,
    that can be integrated to WordPress.
    I hope this help :)

  8. 25 May, 2007 at 1:31 pm

    Hi all,
    I have problem when check to match 2 field. My work is , I have 2 textbox I have to compare them and using ajax.Fox example : 1 field is password, another field is confirm password . I want to use onchange event when I finish fill out confirm password field.
    Help me pls.

  9. 9 Howard
    30 August, 2007 at 2:59 am

    Brilliant article, well done.

    I’ve been using 1.2 for 3 months with success and have a big app up and running, but there were links and techniques I hadn’t come across in here. This page is definitely in my bookmarks now!

  10. 10 Mo
    12 October, 2007 at 6:17 am

    Will this work in 1.2??? Thnx

  11. 12 October, 2007 at 10:53 am

    @Mo: Yeah, I do not see any major changes in the Ajax helper in 1.2, so most of the things should be working fine. I am glad that my posts have been helpful to you :)

  12. 13 Boris
    27 December, 2007 at 11:08 pm

    Thanks man. This is going to be a great help.

  13. 15 Patric
    12 February, 2008 at 4:25 pm

    Hi,

    Very useful thanks. I notice that the devmoz Updating Select Box using Ajax tutorial is no loner available on their site, does anybody know where I could find this, or just an example of something similar, as this is exactly what I am attempting to get right!

  14. 13 February, 2008 at 2:15 pm

    Thank you very much for the links that have helped me start to understand ajaxHelper, I am submitting form using ajax form, but I can not clear the form field values after, can any one help on this.

  15. 17 Vlad
    16 February, 2008 at 11:47 pm

    Hey man, thanx for the resources. It helped me a lot. Best of luck!

  16. 26 February, 2008 at 5:07 am

    Really a great list to learn about Cake’s AJAX capabilities. Thanks Ahsan!

  17. 3 July, 2008 at 2:49 pm

    cool!
    i’ll bookmark this url :)

  18. 25 August, 2008 at 1:27 pm

    Good one. Still need more details…

  19. 2 November, 2008 at 2:03 pm

    Hello Ahsanity,
    Last time I sent u a message about cakephp reporting tools. I hope u got it. And I am waiting for reply. Plz reply me ASAP. It will be helpful for me.

  20. 25 Marton
    11 November, 2008 at 11:54 pm

    The 1st link is pointing nowhere.
    The second link points to the 1.1 manual, but now we have 1.2.
    The third link points to a demo where the mysql backend is not available.

    Please update your links,
    Thank you.

  21. 2 February, 2009 at 7:29 pm

    Hi, a while ago I wrote a tutorial for ajax drag ‘n drop.

    See http://dieter.plaetinck.be/drag_n_drop_tutorial_with_cakephp_ajax_prototype_scriptaculous

    Maybe you want to add a drag and drop section ;-)

  22. 29 Dokuro
    17 April, 2009 at 10:24 am

    Tnx from Mongolia

  23. 30 rajib
    3 May, 2009 at 1:15 pm

    i can not understand your cakephp book chapter three in data validation and chapter10,chapter 11or ajax and javascript or pagination code.
    please vai send me your cakephp book code of all chapter in a fresh copy !!! please

  24. 32 amit
    29 June, 2009 at 7:04 pm

    Hello,

    I am looking for some one2one chat application which i can use with my system, developed in cakephp. Can any one suggest me any good script or application available ?

    Thanks
    Amit

  25. 18 July, 2009 at 3:10 am

    This article needs an update. A lot of the links are broken ;)

  26. 11 September, 2009 at 1:23 am

    Hi! I was surfing and found your blog post… nice! I love your blog. :) Cheers! Sandra. R.

  27. 35 Mahesh Palghadmal
    16 September, 2009 at 8:56 am

    yo.. its a very nice and will help me a lot.. thanks

  28. 22 November, 2009 at 3:26 am

    I wish more frameworks would support ajax through Jquery instead of prototype.

  29. 17 December, 2009 at 6:21 am

    Thank you for this post. It ranks high for ‘examples ajax cakephp’. Would be great if you could update this list when you have the time, as its 2 years old now. Thanks

  30. 38 jashmanthi
    23 January, 2010 at 1:05 pm

    how can i compare the password and confirmpassword while signup using ajax coding in php

  31. 27 January, 2010 at 1:47 am

    Another great way to use Ajax features is to use Dojo within cakePHP. There is a project called DojoCake that ties in and integrates the Dojo toolkit with Cake. You can check it out at http://dojocake.googlecode.com

  32. 17 March, 2010 at 10:08 pm

    Hi!
    On my site you can find AJAX Helper with jQuery.

    http://www.cakephpbee.pl/

    Many functions are implemented and I put some examples on this site.

  33. 2 April, 2010 at 11:53 am

    Зарубежные "запчасти" для суставов и позвоночника – эндопротезы – появились на приморском рынке еще в 1994 году благодаря представительству во Владивостоке швейцарской компании SULZER.

  34. 14 April, 2010 at 1:04 pm

    the 1st tutorial is not available anymore

  35. 43 gypessyprice
    23 October, 2010 at 2:59 am

    Интернет магазин прикольных футболок. Наши прикольные футболки купили более 1 млн. покупателей.
    В каталогах нашего сайта ежедневно появляются новые прикольные майки, который вы сможете купить по самой доступной цене.
    Заказать футболку можно в любую точку России. Чтобы купить футболку, нужно сделать всего пару кликов, оформить заказ и ждать прибытия товара.
    Все футболки проходят предварительный контроль качества, цена футболки формируется от вида нанесения и способа доставки.
    Посетите наш магазин – майка морская

  36. 30 January, 2011 at 1:54 am

    Unusual this publish is totaly unrelated to what I was searching google for, however it was listed on the initial page. I guess your doing something proper if Google likes you enough to place you around the 1st page of a non associated search.

  37. 4 January, 2012 at 6:38 am

    http://extube.net/content_preview/ero3/amateur/ricons.jpg
    нажать и смотреть

    скачать прно на мобильный
    скaчaть прно нa мобильный
    прно скачать на мобильный телефон
    скачать прно видео на мобильный
    скачать прно ролики для мобильного
    мобильные прно фильмы скачать
    прно 3gp на мобильный скачать
    прно для мобильного скачать торрент
    скачать прно снятое на мобильный
    скачать прно mp4 на мобильный
    скачать прно в мобильном формате
    скачать прно игры на мобильный
    прно фото для мобильного скачать
    скачать прно на мобильный русское
    скачать прно картинки на мобильный
    скачать частное мобильное прно
    скачать прно на мобильный азиатки
    короткое прно скачать на мобильный
    прно скачать на мобильный онлайн
    скачать гей прно на мобильный
    скачать прно клипы для мобильного
    скaчaть прно нa мобильный
    скaчaть прно нa мобильный
    скaчaть прно нa мобильный
    прно скачать на мобильный телефон
    скачать прно видео на мобильный
    скачать прно ролики для мобильного
    мобильные прно фильмы скачать
    прно для мобильного скачать торрент
    скачать прно снятое на мобильный

  38. 25 January, 2012 at 6:26 pm

    nice concept.. thanks for sharing…

  39. 21 May, 2012 at 9:08 pm

    most links are dead :(

  40. 10 July, 2012 at 1:19 am

    Thanks for the auspicious writeup. It actually
    used to be a entertainment account it. Look complex to more delivered agreeable from you!
    However, how can we communicate?

  41. 11 July, 2012 at 3:53 pm

    Some links Do Not Working I hope you will responce soon

  42. 30 September, 2012 at 12:38 pm

    Hello Everyone,

    At http://www.2lessons.info you can find AJAX tutorials with jQuery and PHP

    Many commonly required functionality can be found there with examples and a link to download the script.

  43. 21 November, 2012 at 5:46 am

    Онланй магазин для взрослых высокого качества с анонимной доставкой по России. Новогодние скидки.

    сексигрушки мужские купить

  44. 14 April, 2013 at 10:18 am

    hey there and thank you for your information – I’ve certainly picked up anything new from right here. I did however expertise several technical issues using this web site, as I experienced to reload the web site many times previous to I could get it to load correctly. I had been wondering if your web hosting is OK? Not that I am complaining, but slow loading instances times will sometimes affect your placement in google and could damage your quality score if ads and marketing with Adwords. Anyway I’m adding this RSS to my e-mail and can look out for much more of
    your respective interesting content. Make sure you update this again very soon.

  45. 11 July, 2013 at 2:07 pm

    Should you have any well thought out game plan, you’ll not only become successful, however you will be able setting your self upward for your retirement likewise. Whether or not you need to invest with Apple or The search engines, Nasdaq or perhaps essential oil, you could find the actual property you would like to deal about in trading at night with binary options. With the more common alternative, any call up selection can be an trading at night with binary options that the investor feels will certainly climb within worth within a a number of stretch of time. Thus as an alternative to exchanging in the us marketplaces, you may want to have a look at Cookware marketplaces for example the NIKKEI which usually will small business other the usa, making night time exchanging an absolute possibility.

  46. 16 July, 2013 at 7:54 am

    Costs: A full T1 obviously will cost more than a Fractional
    T1. VPN Worldwide service is compatible with
    either Windows or Mac. It is the technology that allows the private
    transmission of data via a public network such as the internet.

  47. 4 August, 2013 at 10:09 pm

    My brother recommended I might like this web site.

    He was totally right. This post truly made my
    day. You can not imagine just how much time I had spent for this info!
    Thanks!

  48. 2 May, 2014 at 8:54 pm

    Get Started With AJAX in CakePHP | Ahsan’s Laboratory – хороший пост, спасибо

  49. 21 September, 2014 at 1:24 pm

    Hey there are using WordPress for your site platform?

    I’m new to the blog world but I’m trying to get started and create my own. Do
    you require any html coding expertise to make your own blog?
    Any help would be really appreciated!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


NOTICE:

I no longer maintain this blog. Please visit my new blog at http://ahsanity.com

My Book on CakePHP

If you are looking for a book to get started with CakePHP, then this book is definitely what you need :)
10% off at the publisher's site.

Blog Stats

  • 159,368 hits

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: