Method list:

Comments

  1. alejandro(Bolivia) wrote:

    ¡que bueno que se cuente con Jquery es este frame work! Se que a muchos les agradara. saludos

  2. Tobias wrote:

    Hi,

    Just by fast checking the source code it seams like this class requires PHP 5 and won't be working as expected with PHP 4 (due to the constructors), isn't that a bit weird since CakePHP only have stable versions for PHP 4+ ?

    Regards
    Tobias

  3. Alexey wrote:

    I've checked your helper and found that $this->RequestHandler->isAjax() in controller returns false, if use default contentType. I don't see any reason why this happens...

  4. Alexey wrote:

    Oops, sorry. It was Security component that was the cause. Don't look at my previous post.

  5. kvas wrote:

    Tobias: this constructor is used in cakePHP core. So I think that it'll work with PHP 4+

  6. timothy wrote:

    Thank you very much for your efforts. I appreciate it. Will test it soon. Again , thx. Greetings from Germany

  7. MaxN wrote:

    Pretty nice! Just what I wanted.
    maybe this helper becomes standard in a year.

  8. Raza wrote:

    I have seen this helper methods and documentation, but still didnt use........ I am sure from its docs that will be great helper for Ajax lovers in cakephp

  9. rasta wrote:

    thx, really nice work

  10. David wrote:

    Nice Work.Pls i am having an issue. when using the link, its generating Event.observe which is a prototype event. Pls how do handle this issue. I am using the latest stable version of cakephp.Thanks

  11. David U wrote:

    Pls i sincerely apologize for the multiple submissions, my internet speed was very slow and i kept refreshing not knowing that it was submitting to your site. Pls i accept my apologies....still expecting your reply. Thanks

  12. rahat wrote:

    nice work

  13. kvas wrote:

    David U:
    You should place javascript.php in your helpers directory.

  14. David U wrote:

    kvas thanks a million. It worked! Great Job...Do have a great day

  15. Abdul wrote:

    Hi I am trying to upload file using ajax form but it is not working.

  16. kvas wrote:

    Abdul: You need other helper for ajax file uploading.
    This helper, like base Ajax Helper, is not including this feature.

  17. Benny L.E.P wrote:

    Thank you for your great effort and i will test it :)

  18. Jimmer wrote:

    Works great, many thanks ;]

  19. Manuel Andres Diaz wrote:

    Muchas Gracias por este helper, es maravilloso, hace rato estaba buscando algo asi.

    Eternamente agradecido

  20. Léo Haddad wrote:

    Very nice helper!
    Thanks!

  21. Hristo wrote:

    Finaly! That is , what i need! Thanks!

  22. regz wrote:

    Great helper...

  23. khan wrote:

    Hello,
    I am having a problem. i want to update/add row to table but my response contains <html tags. i only want <td elements i have tried setting layout=NULL but not working.
    any help

  24. khan wrote:

    well i have checked the response. it contains what i am looking for but while updating it is removing td elements :/ I am updating <tr> element on form submit

  25. kvas wrote:

    khan:

    You can try:
    $this->layout = 'ajax';

    ajax layout should placed in app/view/layouts/ (it is placed here at default).

  26. Geidivan J. wrote:

    Hi kvas,

    I'm using your helper (it's excelent).

    So, i am with problems to use it in Google Chrome. An error message appears on every ajax request:

    XML cannot be read [CORE/cake/libs/xml.php, line 883]

    But the ajax works. I read that the problem is solved setting the request header type (request.setRequestHeader( ‘Content-type’, ‘text/plain’);”;).

    How can I fix it in your helper?

  27. kvas wrote:

    Hi Geidivan J.!
    You can try additional option named 'contentType'...

    Example:

    <?php echo $ajax->link(
    'View Post',
    array( 'controller' => 'ajax', 'action' => 'view', 1 ),
    array( 'update' => 'post', 'contentType' => 'text/plain')
    );
    ?>

    I'll glad if you write if this helped. BTW. I'm not getting this error in my chrome :/

  28. Geidivan J. wrote:

    Thanks kvas, it worked perfectly (your answers are fast).

  29. Eric wrote:

    Hi there,

    What is the proper call to check if ajax is being used in my controller? I tried isAjax() as well as $this->requestHanlder->isAjax() and neither seem to work.

    Thanks!

  30. kvas wrote:

    Hi Eric!

    I'm using
    $this->params['isAjax']

    and it's working for me :)

  31. Eric wrote:

    That worked! Thanks!

  32. Miguel wrote:

    Gracias por el aporte

  33. Giuliano wrote:

    Hi. I have a button when the user click on the button, the ajax call a method. This method, return a array and each elements must be set in differents text fields. How can i do it?
    thanks.

  34. Risto wrote:

    Thanks a lot, kvas!

    I did not believe my eyes when I saw this actually working. I have had too much pain getting Prototype, Script.aculo.us & jQuery working nicely together, but this is a real solution. And a fast one too (much faster auto complete!). All my auto complete fields, ajax forms and such worked straight away!

  35. vinay wrote:

    i m new to cakephp ......... i have problem with image uploading ... i used ajax helper, in comments i read about ajax file uploading helper , can you please give me link for ajax file uploading helper or little bit description about ajax file uploading helper...thanks .

  36. kvas wrote:

    vinay, you can try with http://www.davidgolding.net/cakephp/ajax-file-uploading-with-cake-and-jquery.html

  37. vinay wrote:

    hi...

    Thanks a Lot ....

    i update my jquery with jquery 1.2.2 as instruction given in link , it works but i got error in js file
    f.offset is undefined
    jquery-ui-1.8rc3.custom.min.js


  38. kvas wrote:

    vinay , you should use more actual version than 1.2.2 (like 1.4.2)...

    I didn't ever get this error, so I can't help you at this moment...

  39. Geidivan wrote:

    Hi,

    How can I change the charset of the ajax requests? I'm using de remoteTimer with 'contentType' => 'text/plain' but I would like to change the charset.

    thanks.

  40. Louie Miranda wrote:

    Hi Kvas, I was wondering if you can still use Prototype and script.aculo.us even after adding the jquery helper?

    Thanks!

  41. kvas wrote:

    Geidivan, I think that jQuery doesn't provide this feature. You can build callback method that will converse from one charset to the other.

    Louie Miranda, no at this moment jQuery is not installed in compatibile mode...

  42. Eric wrote:

    Hi Kvas,

    I've been using your helper, fantastic stuff. Thank you!

    Quick question, is there any way at all to support file upload? I notice you only allow "post" or "get" as form types currently.

    Thanks! And any way I can help out with this project, let me know.

    Eric

  43. kvas wrote:

    Hi Eric,

    I didn't try try to upload files by this helper yet, so at this moment I think it's not posibble :)

    Maybe in future I'll add support for those features...

  44. Eric Anderson wrote:

    Kvas,


    I'm interested in helping you develop this functionality. Let me know when you are available to discuss. I've sent you my email via your contact form.

    Thanks!

    Eric

  45. JaRo wrote:

    Dobra robota, dzięki wielkie!

Post a comment

 

Why should we use jQuery rather than Prototype?

  • It's much faster (as you can see on benchmark)
  • It's light weight
  • CSS3 Compiliant
  • Cross-browser
 

jQuery Ajax Helper

CakePHP is distributed under flexible licence - MIT Licence. I decided to publish my code on the same licence, so you can freely use IT!

If I made you interested go and download it now!