Re: [jQuery] jQuery and Prototype

2006-10-07 Thread Jörn Zaefferer
Jan Rosa schrieb:
> Hello,
> I think there i no need to replace $ in next release. You can employ 
> server search&replace
>
> Look at example:
> http://www.freshconcept.cz/uschovna/jQueryIsolate.phps
>
> then you use:
>
>  src="...pathto/jQueryIsolate.php?js=jquery-latest.js,pause.js,hovertip.js">
>   
Interesting. But I'd consider that only a workaround, not a solution.

-- Jörn

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-07 Thread Jan Rosa
Hello,
I think there i no need to replace $ in next release. You can employ 
server search&replace

Look at example:
http://www.freshconcept.cz/uschovna/jQueryIsolate.phps

then you use:




Jan Rosa



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Klaus Hartl


Klaus Hartl schrieb:
> 
> Mike Alsup schrieb:
>> I agree completely.  I'll update my plugins today.
>>
>> Mike
> 
> Me too! Ok, maybe not today, but then tomorrow :-)


Thank you Jörn! :-)


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Laurent Yaish
Awesome! Thanks guys.

Laurent

On 10/6/06, Rey Bango <[EMAIL PROTECTED]> wrote:
> Thanks Brandon. Thats what I wanted to understand.
>
> Rey...
>
> Brandon Aaron wrote:
> > Removing the alias throughout the core and the plugins will make it
> > easier for those who need to integrate with Atlas and prototype. Just
> > making it a one line fix to change the alias to something else. The
> > '$' would stay the default alias. This will have no impact on normal
> > development and provide a more flexible system for those who need it.
> >
> > --
> > Brandon Aaron
> >
> > On 10/6/06, Rey Bango <[EMAIL PROTECTED]> wrote:
> >
> >>Hi Laurent,
> >>
> >>I was actually replying to Brandon re: his suggestion. I wanted to get a
> >>better understanding from him on the change he suggested and how that
> >>would impact normal, non-plugin development.
> >>
> >>Rey...
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Rey Bango
Thanks Brandon. Thats what I wanted to understand.

Rey...

Brandon Aaron wrote:
> Removing the alias throughout the core and the plugins will make it
> easier for those who need to integrate with Atlas and prototype. Just
> making it a one line fix to change the alias to something else. The
> '$' would stay the default alias. This will have no impact on normal
> development and provide a more flexible system for those who need it.
> 
> --
> Brandon Aaron
> 
> On 10/6/06, Rey Bango <[EMAIL PROTECTED]> wrote:
> 
>>Hi Laurent,
>>
>>I was actually replying to Brandon re: his suggestion. I wanted to get a
>>better understanding from him on the change he suggested and how that
>>would impact normal, non-plugin development.
>>
>>Rey...

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Klaus Hartl


Mike Alsup schrieb:
> I agree completely.  I'll update my plugins today.
> 
> Mike

Me too! Ok, maybe not today, but then tomorrow :-)


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Brandon Aaron
Removing the alias throughout the core and the plugins will make it
easier for those who need to integrate with Atlas and prototype. Just
making it a one line fix to change the alias to something else. The
'$' would stay the default alias. This will have no impact on normal
development and provide a more flexible system for those who need it.

--
Brandon Aaron

On 10/6/06, Rey Bango <[EMAIL PROTECTED]> wrote:
> Hi Laurent,
>
> I was actually replying to Brandon re: his suggestion. I wanted to get a
> better understanding from him on the change he suggested and how that
> would impact normal, non-plugin development.
>
> Rey...
>
> Laurent Yaish wrote:
> > What I'm trying to say is that using the $ alias by default is fine.
> > And just having to change the '$ = jQuery' line to use another alias
> > is okay with me, except that the $ alias was being used in the jQuery
> > code itself, so I had to search and replace it everywhere. The jQuery
> > code (and plugins) should not be using the alias. If you want to use a
> > shorter alias internally maybe you could use something more unique
> > like $jq.
> >
> >
> >
> > On 10/6/06, Rey Bango <[EMAIL PROTECTED]> wrote:
> >
> >>So you think JQuery should change the $ to another identifier or you
> >>feel JQuery should implement namespaces? If its the latter, I'm not keen
> >>on that. I like the shorter code approach the JQuery and Prototype use
> >>but if there's a way to keep that (eg: JQ()), then I'd go for something
> >>like that.
> >>
> >>Rey...
> >>
> >>Brandon Aaron wrote:
> >>
> >>>I think it would be worth it to change all internals of jQuery to not
> >>>use $. Essentially it is just a find and replace ... the issue is
> >>>getting plugins to do it. I think the next release should force the
> >>>issue.
> >>
> >>___
> >>jQuery mailing list
> >>discuss@jquery.com
> >>http://jquery.com/discuss/
> >>
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-06 Thread John Resig
> I think 'jQuery(...)' should still be used internally and by plugin
> authors for the foreseeable future. If file size is an issue, the code
> could always be compressed/packed.

Yep, totally agree - the internal uses of $() instead of jQuery() are
definitely a mistake - just me lapsing back into that way of writing.
Sorry about that.

--John

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Mike Alsup
I agree completely.  I'll update my plugins today.

Mike

>
> I think 'jQuery(...)' should still be used internally and by plugin
> authors for the foreseeable future. If file size is an issue, the code
> could always be compressed/packed.
>
> I would say keep $ as the alias. If there are conflicts, you could
> always set up an alias for your own site. i.e.
> $jq = jQuery

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Sam Collett
On 06/10/06, Laurent Yaish <[EMAIL PROTECTED]> wrote:
> What I'm trying to say is that using the $ alias by default is fine.
> And just having to change the '$ = jQuery' line to use another alias
> is okay with me, except that the $ alias was being used in the jQuery
> code itself, so I had to search and replace it everywhere. The jQuery
> code (and plugins) should not be using the alias. If you want to use a
> shorter alias internally maybe you could use something more unique
> like $jq.

I think 'jQuery(...)' should still be used internally and by plugin
authors for the foreseeable future. If file size is an issue, the code
could always be compressed/packed.

I would say keep $ as the alias. If there are conflicts, you could
always set up an alias for your own site. i.e.
$jq = jQuery

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Rey Bango
Hi Laurent,

I was actually replying to Brandon re: his suggestion. I wanted to get a 
better understanding from him on the change he suggested and how that 
would impact normal, non-plugin development.

Rey...

Laurent Yaish wrote:
> What I'm trying to say is that using the $ alias by default is fine.
> And just having to change the '$ = jQuery' line to use another alias
> is okay with me, except that the $ alias was being used in the jQuery
> code itself, so I had to search and replace it everywhere. The jQuery
> code (and plugins) should not be using the alias. If you want to use a
> shorter alias internally maybe you could use something more unique
> like $jq.
> 
> 
> 
> On 10/6/06, Rey Bango <[EMAIL PROTECTED]> wrote:
> 
>>So you think JQuery should change the $ to another identifier or you
>>feel JQuery should implement namespaces? If its the latter, I'm not keen
>>on that. I like the shorter code approach the JQuery and Prototype use
>>but if there's a way to keep that (eg: JQ()), then I'd go for something
>>like that.
>>
>>Rey...
>>
>>Brandon Aaron wrote:
>>
>>>I think it would be worth it to change all internals of jQuery to not
>>>use $. Essentially it is just a find and replace ... the issue is
>>>getting plugins to do it. I think the next release should force the
>>>issue.
>>
>>___
>>jQuery mailing list
>>discuss@jquery.com
>>http://jquery.com/discuss/
>>
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Laurent Yaish
What I'm trying to say is that using the $ alias by default is fine.
And just having to change the '$ = jQuery' line to use another alias
is okay with me, except that the $ alias was being used in the jQuery
code itself, so I had to search and replace it everywhere. The jQuery
code (and plugins) should not be using the alias. If you want to use a
shorter alias internally maybe you could use something more unique
like $jq.



On 10/6/06, Rey Bango <[EMAIL PROTECTED]> wrote:
> So you think JQuery should change the $ to another identifier or you
> feel JQuery should implement namespaces? If its the latter, I'm not keen
> on that. I like the shorter code approach the JQuery and Prototype use
> but if there's a way to keep that (eg: JQ()), then I'd go for something
> like that.
>
> Rey...
>
> Brandon Aaron wrote:
> > I think it would be worth it to change all internals of jQuery to not
> > use $. Essentially it is just a find and replace ... the issue is
> > getting plugins to do it. I think the next release should force the
> > issue.
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Rey Bango
So you think JQuery should change the $ to another identifier or you 
feel JQuery should implement namespaces? If its the latter, I'm not keen 
on that. I like the shorter code approach the JQuery and Prototype use 
but if there's a way to keep that (eg: JQ()), then I'd go for something 
like that.

Rey...

Brandon Aaron wrote:
> I think it would be worth it to change all internals of jQuery to not
> use $. Essentially it is just a find and replace ... the issue is
> getting plugins to do it. I think the next release should force the
> issue.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Laurent Yaish
Yes it is a simple search and replace, that's what I just did to get
prototype and jQuery to work together. Even for plugin authors this
should be a very simple change. When is the next release due?

On 10/6/06, Brandon Aaron <[EMAIL PROTECTED]> wrote:
> I think it would be worth it to change all internals of jQuery to not
> use $. Essentially it is just a find and replace ... the issue is
> getting plugins to do it. I think the next release should force the
> issue.
>
> --
> Brandon Aaron
>
> On 10/6/06, Laurent Yaish <[EMAIL PROTECTED]> wrote:
> > The jQuery code itself uses $
> >
> > toggle: function(){
> > $(this)[ $(this).is(":hidden") ? "show" :
> > "hide" ].apply( $(this),
> > arguments );
> > },
> >
> > The $ is great for the end user, but it is a very generic alias. I
> > don't think it is a good idea for jQuery or plugins to use it
> > internally. But it might already be too late to change this...
> >
> > Thanks
> >
> > Laurent
> >
> > On 10/6/06, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote:
> > >
> > >  Original-Nachricht 
> > > Datum: Fri, 6 Oct 2006 08:12:51 -0700
> > > Von: "Laurent Yaish" <[EMAIL PROTECTED]>
> > > An: discuss@jquery.com
> > > Betreff: [jQuery] jQuery and Prototype
> > >
> > > > Hi Folks,
> > > >
> > > > First of all thank you John for writing jQuery. I've read the wiki page
> > > > regarding using jQuery and prototype together and couldn't get it to 
> > > > work
> > > > reliably. I did load prototype first but ended up going through the
> > > > jQuery source code
> > > > and renamed $() to JQ().
> > > > It would be kind of cool if the $ function could be renamed via a
> > > > configuration setting
> > >
> > > It should be enough to change this line: var $ = jQuery; to something 
> > > else, like var JQ = jQuery.
> > >
> > > But this won't solve the problem that most plugins use the $ alias 
> > > instead of jQuery.
> > >
> > > -- Jörn
> > >
> > > PS: http://jquery.com/dev/bugs/bug/253/
> > > --
> > > GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
> > > NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl
> > >
> > > ___
> > > jQuery mailing list
> > > discuss@jquery.com
> > > http://jquery.com/discuss/
> > >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Brandon Aaron
I think it would be worth it to change all internals of jQuery to not
use $. Essentially it is just a find and replace ... the issue is
getting plugins to do it. I think the next release should force the
issue.

--
Brandon Aaron

On 10/6/06, Laurent Yaish <[EMAIL PROTECTED]> wrote:
> The jQuery code itself uses $
>
> toggle: function(){
> $(this)[ $(this).is(":hidden") ? "show" :
> "hide" ].apply( $(this),
> arguments );
> },
>
> The $ is great for the end user, but it is a very generic alias. I
> don't think it is a good idea for jQuery or plugins to use it
> internally. But it might already be too late to change this...
>
> Thanks
>
> Laurent
>
> On 10/6/06, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote:
> >
> >  Original-Nachricht 
> > Datum: Fri, 6 Oct 2006 08:12:51 -0700
> > Von: "Laurent Yaish" <[EMAIL PROTECTED]>
> > An: discuss@jquery.com
> > Betreff: [jQuery] jQuery and Prototype
> >
> > > Hi Folks,
> > >
> > > First of all thank you John for writing jQuery. I've read the wiki page
> > > regarding using jQuery and prototype together and couldn't get it to work
> > > reliably. I did load prototype first but ended up going through the
> > > jQuery source code
> > > and renamed $() to JQ().
> > > It would be kind of cool if the $ function could be renamed via a
> > > configuration setting
> >
> > It should be enough to change this line: var $ = jQuery; to something else, 
> > like var JQ = jQuery.
> >
> > But this won't solve the problem that most plugins use the $ alias instead 
> > of jQuery.
> >
> > -- Jörn
> >
> > PS: http://jquery.com/dev/bugs/bug/253/
> > --
> > GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
> > NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Laurent Yaish
The jQuery code itself uses $

toggle: function(){
$(this)[ $(this).is(":hidden") ? "show" :
"hide" ].apply( $(this),
arguments );
},

The $ is great for the end user, but it is a very generic alias. I
don't think it is a good idea for jQuery or plugins to use it
internally. But it might already be too late to change this...

Thanks

Laurent

On 10/6/06, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote:
>
>  Original-Nachricht 
> Datum: Fri, 6 Oct 2006 08:12:51 -0700
> Von: "Laurent Yaish" <[EMAIL PROTECTED]>
> An: discuss@jquery.com
> Betreff: [jQuery] jQuery and Prototype
>
> > Hi Folks,
> >
> > First of all thank you John for writing jQuery. I've read the wiki page
> > regarding using jQuery and prototype together and couldn't get it to work
> > reliably. I did load prototype first but ended up going through the
> > jQuery source code
> > and renamed $() to JQ().
> > It would be kind of cool if the $ function could be renamed via a
> > configuration setting
>
> It should be enough to change this line: var $ = jQuery; to something else, 
> like var JQ = jQuery.
>
> But this won't solve the problem that most plugins use the $ alias instead of 
> jQuery.
>
> -- Jörn
>
> PS: http://jquery.com/dev/bugs/bug/253/
> --
> GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
> NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery and Prototype

2006-10-06 Thread Jörn Zaefferer

 Original-Nachricht 
Datum: Fri, 6 Oct 2006 08:12:51 -0700
Von: "Laurent Yaish" <[EMAIL PROTECTED]>
An: discuss@jquery.com
Betreff: [jQuery] jQuery and Prototype

> Hi Folks,
> 
> First of all thank you John for writing jQuery. I've read the wiki page
> regarding using jQuery and prototype together and couldn't get it to work
> reliably. I did load prototype first but ended up going through the
> jQuery source code
> and renamed $() to JQ().
> It would be kind of cool if the $ function could be renamed via a
> configuration setting

It should be enough to change this line: var $ = jQuery; to something else, 
like var JQ = jQuery.

But this won't solve the problem that most plugins use the $ alias instead of 
jQuery.

-- Jörn

PS: http://jquery.com/dev/bugs/bug/253/
-- 
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] jQuery and Prototype

2006-10-06 Thread Laurent Yaish
Hi Folks,

First of all thank you John for writing jQuery. I've read the wiki page
regarding using jQuery and prototype together and couldn't get it to work
reliably. I did load prototype first but ended up going through the
jQuery source code
and renamed $() to JQ().
It would be kind of cool if the $ function could be renamed via a
configuration setting

Thanks,

Laurent

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/