Re: Using JQuery and Prototype in same application

2008-11-04 Thread mark_story

si-mon:  I didn't mean to offend you, it was a honest question.  To me
its not worth the extra work.  However it can be done but there is a
lot of hoop jumping. You can do it if you load jQuery first. And force
it in to compatibility mode.

Samuel:  You can configure which javascript is used now! :)  There is
support for jQuery, Prototype, mootools, and CSS only.  And I think
joel perras is working on a YUI compatible toolbar script.

-Mark

On Nov 3, 11:10 pm, si-mon <[EMAIL PROTECTED]> wrote:
> Actually, we are a group working on a single project, and each one
> having expertise in different libraries. So this question...
> Anyhow, thanks for the very useful information. This will help us a
> lot...
> -- si-mon
>
> On Nov 3, 5:11 pm, monmonja <[EMAIL PROTECTED]> wrote:
>
> > If your using plugins, check if the plugin has the compatibility to
> > work with other library, if not remember to not use $ for  jquery
> > stuff, most of the time you would be mixing them up. I would also
> > suggest to just drop one of them. :)
>
> > On Nov 4, 3:13 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
>
> > > On Mon, Nov 3, 2008 at 11:48 AM, mark_story <[EMAIL PROTECTED]> wrote:
>
> > > > A better question is why?
>
> > > Maybe if you have an app that uses prototype but one wants to play
> > > with your amazing debug kit ;)
>
> > > > -Mark
>
> > > > On Nov 2, 11:55 pm, si-mon <[EMAIL PROTECTED]> wrote:
> > > >> Hi all,
> > > >> Is there any problem in using both JQuery and Prototype in the same
> > > >> application?
>
> > --
> > Monmonjahttp://monmonja.com/blog/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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: Using JQuery and Prototype in same application

2008-11-04 Thread Giaco

Since both frameworks use the $()-function, you either
 - have to jump through loops to make it working for both of them
 - use the jQuery alias function jQuery()
 - or, my favorite:

if you use the short form to wait till page load of DOM of jQuery:
"jQuery(function(){/* yourcodehere */})"
you can just input the $ as a function parameter: jQuery(function($){/
* yourcodehere */})

With that you can safely use the $-sign within the curled brackets.

On Nov 4, 5:10 am, si-mon <[EMAIL PROTECTED]> wrote:
> Actually, we are a group working on a single project, and each one
> having expertise in different libraries. So this question...
> Anyhow, thanks for the very useful information. This will help us a
> lot...
> -- si-mon
>
> On Nov 3, 5:11 pm, monmonja <[EMAIL PROTECTED]> wrote:
>
>
>
> > If your using plugins, check if the plugin has the compatibility to
> > work with other library, if not remember to not use $ for  jquery
> > stuff, most of the time you would be mixing them up. I would also
> > suggest to just drop one of them. :)
>
> > On Nov 4, 3:13 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
>
> > > On Mon, Nov 3, 2008 at 11:48 AM, mark_story <[EMAIL PROTECTED]> wrote:
>
> > > > A better question is why?
>
> > > Maybe if you have an app that uses prototype but one wants to play
> > > with your amazing debug kit ;)
>
> > > > -Mark
>
> > > > On Nov 2, 11:55 pm, si-mon <[EMAIL PROTECTED]> wrote:
> > > >> Hi all,
> > > >> Is there any problem in using both JQuery and Prototype in the same
> > > >> application?
>
> > --
> > Monmonjahttp://monmonja.com/blog/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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: Using JQuery and Prototype in same application

2008-11-03 Thread si-mon

Actually, we are a group working on a single project, and each one
having expertise in different libraries. So this question...
Anyhow, thanks for the very useful information. This will help us a
lot...
-- si-mon

On Nov 3, 5:11 pm, monmonja <[EMAIL PROTECTED]> wrote:
> If your using plugins, check if the plugin has the compatibility to
> work with other library, if not remember to not use $ for  jquery
> stuff, most of the time you would be mixing them up. I would also
> suggest to just drop one of them. :)
>
> On Nov 4, 3:13 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
>
> > On Mon, Nov 3, 2008 at 11:48 AM, mark_story <[EMAIL PROTECTED]> wrote:
>
> > > A better question is why?
>
> > Maybe if you have an app that uses prototype but one wants to play
> > with your amazing debug kit ;)
>
> > > -Mark
>
> > > On Nov 2, 11:55 pm, si-mon <[EMAIL PROTECTED]> wrote:
> > >> Hi all,
> > >> Is there any problem in using both JQuery and Prototype in the same
> > >> application?
>
> --
> Monmonjahttp://monmonja.com/blog/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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: Using JQuery and Prototype in same application

2008-11-03 Thread monmonja

If your using plugins, check if the plugin has the compatibility to
work with other library, if not remember to not use $ for  jquery
stuff, most of the time you would be mixing them up. I would also
suggest to just drop one of them. :)

On Nov 4, 3:13 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 3, 2008 at 11:48 AM, mark_story <[EMAIL PROTECTED]> wrote:
>
> > A better question is why?
>
> Maybe if you have an app that uses prototype but one wants to play
> with your amazing debug kit ;)
>
>
>
> > -Mark
>
> > On Nov 2, 11:55 pm, si-mon <[EMAIL PROTECTED]> wrote:
> >> Hi all,
> >> Is there any problem in using both JQuery and Prototype in the same
> >> application?

--
Monmonja
http://monmonja.com/blog/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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: Using JQuery and Prototype in same application

2008-11-03 Thread Samuel DeVore

On Mon, Nov 3, 2008 at 11:48 AM, mark_story <[EMAIL PROTECTED]> wrote:
>
> A better question is why?

Maybe if you have an app that uses prototype but one wants to play
with your amazing debug kit ;)

>
> -Mark
>
> On Nov 2, 11:55 pm, si-mon <[EMAIL PROTECTED]> wrote:
>> Hi all,
>> Is there any problem in using both JQuery and Prototype in the same
>> application?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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: Using JQuery and Prototype in same application

2008-11-03 Thread mark_story

A better question is why?

-Mark

On Nov 2, 11:55 pm, si-mon <[EMAIL PROTECTED]> wrote:
> Hi all,
> Is there any problem in using both JQuery and Prototype in the same
> application?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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: Using JQuery and Prototype in same application

2008-11-03 Thread monmonja

Nope, try to use both and insert  jQuery.noConflict()
documentation at http://docs.jquery.com/Core/jQuery.noConflict

Monmonja
http://monmonja.com/blog/

On Nov 3, 12:55 pm, si-mon <[EMAIL PROTECTED]> wrote:
> Hi all,
> Is there any problem in using both JQuery and Prototype in the same
> application?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~--~~~~--~~--~--~---



Using JQuery and Prototype in same application

2008-11-02 Thread si-mon

Hi all,
Is there any problem in using both JQuery and Prototype in the same
application?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~--~~~~--~~--~--~---