|
Hi, Right now I am using CakePHP and Prototype and my development is going great. But I would like to swtich to JQuery but at the same time don't want to give up Prototype as CakePHP AjaxHelper is based on Prototype. Initially I thought, that it should not matter if I include both prototype and jquery. But later I realized that including both of them causes some name conflict and ajax functionality fails to work. .I tried to option mentioned on JQuery but nothing is working.. http://jquery.com/docs/PrototypeAndJQuery/ So I have following questions 1. Is there any ajaxhelper based on JQuery 2. Did anyone got prototype and Jquery working together Regards, bingo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bingo, I attempted to use jQuery and Prototype together, and ran into the same issue that's noted in the URL your mentioned. I was unable to resolve the conflicts, and decided that I didn't really like Prototype that much, and realized that coding equivalent functionality to that for which I had using Prototype was not very difficult at all using jQuery, and was actually quite enjoyable. There currently is no AJAX helper based on jQuery, but there has been talk of creating an AJAX/JavaScript helper, with pluggable architecture, that would support the use of Prototype or jQuery (and perhaps others). I think it's release is quite far out though. Darian bingo wrote: > Hi, > > Right now I am using CakePHP and Prototype and my development is going > great. But I would like to swtich to JQuery but at the same time don't > want to give up Prototype as CakePHP AjaxHelper is based on Prototype. > > Initially I thought, that it should not matter if I include both > prototype and jquery. But later I realized that including both of them > causes some name conflict and ajax functionality fails to work. .I > tried to option mentioned on JQuery but nothing is working.. > > http://jquery.com/docs/PrototypeAndJQuery/ > > So I have following questions > 1. Is there any ajaxhelper based on JQuery > 2. Did anyone got prototype and Jquery working together > > Regards, > bingo > > > > - -- Darian Anthony Patrick <[hidden email]> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFThjuKpzEXPWA4IcRAtlRAJ9y9EtVvoSqejThMwWey0h4QI3NAwCfcSXF 038ByLXczYSfycm3YpBJuPo= =i7AC -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
Hi Darian, Can you provide some example on how did you get JQuery working...I am actually interested in knowing how you can replace ajax->link with JQuery code...and what changes will I have to make in the controller and in the RequestHandler component, if I have to, to get jquery working Regards, bingo On Nov 5, 12:01 pm, Darian Anthony Patrick <[hidden email]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Bingo, > > I attempted to use jQuery and Prototype together, and ran into the same > issue that's noted in the URL your mentioned. > > I was unable to resolve the conflicts, and decided that I didn't really > like Prototype that much, and realized that coding equivalent > functionality to that for which I had using Prototype was not very > difficult at all using jQuery, and was actually quite enjoyable. > > There currently is no AJAX helper based on jQuery, but there has been > talk of creating an AJAX/JavaScript helper, with pluggable architecture, > that would support the use of Prototype or jQuery (and perhaps others). > I think it's release is quite far out though. > > Darian > > > > bingo wrote: > > Hi, > > > Right now I am using CakePHP and Prototype and my development is going > > great. But I would like to swtich to JQuery but at the same time don't > > want to give up Prototype as CakePHP AjaxHelper is based on Prototype. > > > Initially I thought, that it should not matter if I include both > > prototype and jquery. But later I realized that including both of them > > causes some name conflict and ajax functionality fails to work. .I > > tried to option mentioned on JQuery but nothing is working.. > > >http://jquery.com/docs/PrototypeAndJQuery/ > > > So I have following questions > > 1. Is there any ajaxhelper based on JQuery > > 2. Did anyone got prototype and Jquery working together > > > Regards, > > bingo- -- > Darian Anthony Patrick <[hidden email]> > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2.2 (GNU/Linux) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org > > iD8DBQFFThjuKpzEXPWA4IcRAtlRAJ9y9EtVvoSqejThMwWey0h4QI3NAwCfcSXF > 038ByLXczYSfycm3YpBJuPo= > =i7AC > -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
In reply to this post by Darian Anthony Patrick
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 See Nate's comments in this thread: http://groups.google.com/group/cake-php/browse_thread/thread/3fc2b9de62bbb89f/98bb9dce44c27127?lnk=gst&q=jquery+Users&rnum=1#98bb9dce44c27127 Darian Anthony Patrick wrote: > Bingo, > > I attempted to use jQuery and Prototype together, and ran into the same > issue that's noted in the URL your mentioned. > > I was unable to resolve the conflicts, and decided that I didn't really > like Prototype that much, and realized that coding equivalent > functionality to that for which I had using Prototype was not very > difficult at all using jQuery, and was actually quite enjoyable. > > There currently is no AJAX helper based on jQuery, but there has been > talk of creating an AJAX/JavaScript helper, with pluggable architecture, > that would support the use of Prototype or jQuery (and perhaps others). > I think it's release is quite far out though. > > Darian > > bingo wrote: >>> Hi, >>> >>> Right now I am using CakePHP and Prototype and my development is going >>> great. But I would like to swtich to JQuery but at the same time don't >>> want to give up Prototype as CakePHP AjaxHelper is based on Prototype. >>> >>> Initially I thought, that it should not matter if I include both >>> prototype and jquery. But later I realized that including both of them >>> causes some name conflict and ajax functionality fails to work. .I >>> tried to option mentioned on JQuery but nothing is working.. >>> >>> http://jquery.com/docs/PrototypeAndJQuery/ >>> >>> So I have following questions >>> 1. Is there any ajaxhelper based on JQuery >>> 2. Did anyone got prototype and Jquery working together >>> >>> Regards, >>> bingo >>> >>> > > -- > Darian Anthony Patrick <[hidden email]> - - -- Darian Anthony Patrick <[hidden email]> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFTh70KpzEXPWA4IcRApGIAJ9G2JkXAUlQCzORhbC9TOcRT7SFwgCeOriO KHVUiaD7ObkVteCDefu8mXc= =ke/W -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
Hi Darian, I saw that post before...but I am not sure what's the current status of Ajax/Javascript helper in terms of supporting JQuery... Regards, bingo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
In reply to this post by bingo-2
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bingo, I don't believe you have to make changes to RequestHandler -- $this->RequestHandler->isAjax() will still work, as it checks that he request was made via an XMLHttpRequest. As for the existing $this->ajax-link(), I believe something like the following might work (placed in your view): <?php echo $javascript->codeBlock(" $('#anClickMe') .click( function() { $('#dvReplaceMe').load( '/your/request/url/1', null, null ); } ); "); ?> This example assumes a link with an id of 'anClickMe' and a div with an id 'dvReplaceMe'. Someone please correct me if I'm wrong, or suggest a more streamlined approach -- I'm rather new to jQuery. Darian bingo wrote: > Hi Darian, > > Can you provide some example on how did you get JQuery working...I am > actually interested in knowing how you can replace ajax->link with > JQuery code...and what changes will I have to make in the controller > and in the RequestHandler component, if I have to, to get jquery > working > > Regards, > bingo > > On Nov 5, 12:01 pm, Darian Anthony Patrick > <[hidden email]> wrote: > Bingo, > > I attempted to use jQuery and Prototype together, and ran into the same > issue that's noted in the URL your mentioned. > > I was unable to resolve the conflicts, and decided that I didn't really > like Prototype that much, and realized that coding equivalent > functionality to that for which I had using Prototype was not very > difficult at all using jQuery, and was actually quite enjoyable. > > There currently is no AJAX helper based on jQuery, but there has been > talk of creating an AJAX/JavaScript helper, with pluggable architecture, > that would support the use of Prototype or jQuery (and perhaps others). > I think it's release is quite far out though. > > Darian > > > > bingo wrote: >>>> Hi, >>>> Right now I am using CakePHP and Prototype and my development is going >>>> great. But I would like to swtich to JQuery but at the same time don't >>>> want to give up Prototype as CakePHP AjaxHelper is based on Prototype. >>>> Initially I thought, that it should not matter if I include both >>>> prototype and jquery. But later I realized that including both of them >>>> causes some name conflict and ajax functionality fails to work. .I >>>> tried to option mentioned on JQuery but nothing is working.. >>>> http://jquery.com/docs/PrototypeAndJQuery/ >>>> So I have following questions >>>> 1. Is there any ajaxhelper based on JQuery >>>> 2. Did anyone got prototype and Jquery working together >>>> Regards, >>>> bingo- -- > Darian Anthony Patrick <[hidden email]> > - -- Darian Anthony Patrick <[hidden email]> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFTiVtKpzEXPWA4IcRAsIbAJwOXJPZ9y/qbDgJDppHJZ/se4HpqwCfRR/Q 3yl8TTYq4CKluhc4Xl2/zCw= =iIxQ -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Powered by Nabble | Edit this page |
