CakePHP Prototype JQuery
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 cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: CakePHP Prototype JQuery
-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 [EMAIL PROTECTED] -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 cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: CakePHP Prototype JQuery
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] -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 cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: CakePHP Prototype JQuery
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 cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: CakePHP Prototype JQuery
-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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] - -- Darian Anthony Patrick [EMAIL PROTECTED] -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 cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---