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


Groups > comp.lang.javascript > #18073

Re: $(document) and jQuery(document)

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post2.news.xs4all.nl!newszilla.xs4all.nl!not-for-mail
From Eric Bednarz <bednarz@fahr-zur-hoelle.org>
Newsgroups comp.lang.javascript
Subject Re: $(document) and jQuery(document)
Organization Eric Conspiracy Secret Labs
References <1kwj3yx.lhvkrz1vz23l5N%real-not-anti-spam-address@apple-juice.co.uk> <15ec4992-4cff-4bef-a3d0-ca039ce3e172@u19g2000yqj.googlegroups.com>
Reply-To ebednarz@gmx.net
X-Eric-Conspiracy There is no conspiracy
Date Fri, 11 Jan 2013 20:43:48 +0100
Message-ID <m2d2xbqzd7.fsf@nntp.bednarz.nl> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (darwin)
Cancel-Lock sha1:K8/S+F+rqI/2H//oG+6o9wxhbBk=
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Lines 18
NNTP-Posting-Host 83.163.169.80
X-Trace 1357933429 dreader34.news.xs4all.nl 600 83.163.169.80:50974
Xref csiph.com comp.lang.javascript:18073

Show key headers only | View raw


Scott Sauyet <scott.sauyet@gmail.com> writes:

> D.M. Procida wrote:
>> [ ... ]
>>     $(document).ready(function(){
>> [ ... ]
>>     jQuery(document).ready(function($){
>>
>> Changing it to the latter form made it work.

> [...]  So if you're not
> including other libraries, and not redefining `$` yourself, I have no
> idea why one would work and not the other.

http://api.jquery.com/jQuery.noConflict/

(might be called in included third party code, copy and pasted by the OP
himself, or whatnot)

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


Thread

$(document) and jQuery(document) real-not-anti-spam-address@apple-juice.co.uk (D.M. Procida) - 2013-01-11 10:35 +0000
  Re: $(document) and jQuery(document) Scott Sauyet <scott.sauyet@gmail.com> - 2013-01-11 04:12 -0800
    Re: $(document) and jQuery(document) Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-01-11 20:43 +0100

csiph-web