Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #23884

Re: jQuery hurrah

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: jQuery hurrah
Date 2014-04-18 00:41 +0200
Organization PointedEars Software (PES)
Message-ID <2259821.VOGhPFScDQ@PointedEars.de> (permalink)
References <BZadncg4uMf6uNPOnZ2dnUVZ_vKdnZ2d@westnet.com.au> <N8s3v.183$Lr5.138@fx12.fr7> <O92dnYJ9h5ucYdPOnZ2dnUVZ_r2dnZ2d@westnet.com.au> <AKP3v.9543$oV6.2232@fx05.fr7> <MJydncjxrNVlzs3OnZ2dnUVZ_qadnZ2d@westnet.com.au>

Show all headers | View raw


Andrew Poulos wrote:

> On 17/04/2014 10:25 PM, Chris Winter wrote:
>> Am 16.04.2014 23:52, schrieb Andrew Poulos:
>>> Sorry but why should I read the manual or lookup google to tell me that
>>> different versions of jq will work together when the site I was called
>>> in to fix was failing because of an incompatibility between different
>>> versions of jq?
>>
>> Because it is easy to lay blame in front of the wrong door. jQuery, with
>> all its points one could nitpick about, has a method "noConflict()" on
>> the jquery object itself that encapsulates it and makes different
>> versions usable on the same page, with correct usage that even includes
>> most plugins.
> 
> The code for the site was produced entirely by a commercial online
> "unified platform" so I shouldn't have to edit anything.

So far, so good.

> At any rate, the fix was easy enough

*Your* "fix" is unreliable at best; the old plugin may not work properly 
with the new jQuery version, neither may a new plugin with the old jQuery 
version.  You should use the form recommended in the manual (even though the 
implementation of it is as poor as the rest, but at least things cannot get 
worse this way).

> but to me highlights a non-trivial issue with multiple versions of jq.

I presume the issue would occur with any other versions of any other library 
as well.  There is only one global namespace per global execution context.

You owe me an (chocolate) Easter bunny for forcing me to defend jQuery, and 
for having to write it more than one time in a posting.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

jQuery hurrah Andrew Poulos <ap_prog@hotmail.com> - 2014-04-16 16:37 +1000
  Re: jQuery hurrah Denis McMahon <denismfmcmahon@gmail.com> - 2014-04-16 07:25 +0000
  Re: jQuery hurrah Chris Winter <thepoet@a-za-z0-9.de> - 2014-04-16 11:34 +0200
    Re: jQuery hurrah Andrew Poulos <ap_prog@hotmail.com> - 2014-04-17 07:52 +1000
      Re: jQuery hurrah Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-04-17 00:48 +0200
        Re: jQuery hurrah Andrew Poulos <ap_prog@hotmail.com> - 2014-04-17 09:03 +1000
      Re: jQuery hurrah Chris Winter <thepoet@a-za-z0-9.de> - 2014-04-17 14:25 +0200
        Re: jQuery hurrah Andrew Poulos <ap_prog@hotmail.com> - 2014-04-18 08:20 +1000
          Re: jQuery hurrah Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-04-18 00:41 +0200
            Re: jQuery hurrah Andrew Poulos <ap_prog@hotmail.com> - 2014-04-18 19:40 +1000
          Re: jQuery hurrah Denis McMahon <denismfmcmahon@gmail.com> - 2014-04-18 01:11 +0000
  Re: jQuery hurrah Christoph Michael Becker <cmbecker69@arcor.de> - 2014-04-17 02:30 +0200

csiph-web