1.4 Live issue with multiple event types
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
"jquery.redsqu... @googlemail.com" <jquery.redsqu... @googlemail.com>
Date: Fri, 15 Jan 2010 06:23:48 -0800 (PST)
Local: Fri, Jan 15 2010 9:23 am
Subject: 1.4 Live issue with multiple event types
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
jerome <jeromecoving... @gmail.com>
Date: Fri, 15 Jan 2010 07:19:18 -0800 (PST)
Local: Fri, Jan 15 2010 10:19 am
Subject: Re: 1.4 Live issue with multiple event types
Are you linking to jQuery 1.3.1 hosted by Google?
On Jan 15, 9:23 am, "jquery.redsqu... @googlemail.com"
<jquery.redsqu
... @googlemail.com> wrote:
> It appears adding trying to delegate multiple event types to live in
> one statement is not supported.
> With $('selector').live('keyup keydown', fn); the func is fired > outside of the selections.
> Test casehttp://pastebin.me/2796fa93b74138794e94d2f7d75ea29c
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"jquery.redsqu... @googlemail.com" <jquery.redsqu... @googlemail.com>
Date: Fri, 15 Jan 2010 07:30:42 -0800 (PST)
Local: Fri, Jan 15 2010 10:30 am
Subject: Re: 1.4 Live issue with multiple event types
No, The site was built with jquery 1.3.1.
The site uses an iframe that links to 1.4.
On Jan 15, 3:19 pm, jerome <jeromecoving... @gmail.com> wrote:
> Are you linking to jQuery 1.3.1 hosted by Google?
> On Jan 15, 9:23 am, "jquery.redsqu... @googlemail.com"
> <jquery.redsqu... @googlemail.com> wrote: > > It appears adding trying to delegate multiple event types to live in > > one statement is not supported.
> > With $('selector').live('keyup keydown', fn); the func is fired > > outside of the selections.
> > Test casehttp://pastebin.me/2796fa93b74138794e94d2f7d75ea29c
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Dave Methvin <dave.meth... @gmail.com>
Date: Fri, 15 Jan 2010 09:39:44 -0800 (PST)
Local: Fri, Jan 15 2010 12:39 pm
Subject: Re: 1.4 Live issue with multiple event types
> > > With $('selector').live('keyup keydown', fn); the func is fired > > > outside of the selections.
In 1.3.2 only one event name could be passed to live (unlike bind). I
don't see that changed in 1.4, did you see it documented somewhere?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"jquery.redsqu... @googlemail.com" <jquery.redsqu... @googlemail.com>
Date: Fri, 15 Jan 2010 12:29:24 -0800 (PST)
Local: Fri, Jan 15 2010 3:29 pm
Subject: Re: 1.4 Live issue with multiple event types
Yup - in the API docs here -
http://api.jquery.com/live/ eventType - A string containing one or more JavaScript event types, such as "click" or "keydown"
On Jan 15, 5:39 pm, Dave Methvin <dave.meth... @gmail.com> wrote:
> > > > With $('selector').live('keyup keydown', fn); the func is fired
> > > > outside of the selections.
> In 1.3.2 only one event name could be passed to live (unlike bind). I > don't see that changed in 1.4, did you see it documented somewhere?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Leeoniya <leeon... @gmail.com>
Date: Fri, 15 Jan 2010 12:54:08 -0800 (PST)
Local: Fri, Jan 15 2010 3:54 pm
Subject: Re: 1.4 Live issue with multiple event types
that seems like a mistake. wonder if it has been documented like this
since 1.3, cause it looks like it was just copied and pasted over. as
far as i know 1.3.2 never supported multiple events.
looking at the source http://github.com/jquery/jquery/blob/master/src/event.js#L843
the type variable is not split or looped in any way like in bind: http://github.com/jquery/jquery/blob/master/src/event.js#L73
this is a API doc error.
On Jan 15, 2:29 pm, "jquery.redsqu... @googlemail.com"
<jquery.redsqu
... @googlemail.com> wrote:
> Yup - in the API docs here -
http://api.jquery.com/live/ > eventType - A string containing one or more JavaScript event types, > such as "click" or "keydown"
> On Jan 15, 5:39 pm, Dave Methvin <dave.meth... @gmail.com> wrote:
> > > > > With $('selector').live('keyup keydown', fn); the func is fired > > > > > outside of the selections.
> > In 1.3.2 only one event name could be passed to live (unlike bind). I > > don't see that changed in 1.4, did you see it documented somewhere?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
matiasnu <matia... @gmail.com>
Date: Mon, 18 Jan 2010 02:43:00 -0800 (PST)
Subject: Re: 1.4 Live issue with multiple event types
On Jan 15, 9:54 pm, Leeoniya <leeon
... @gmail.com> wrote:
> that seems like a mistake. wonder if it has been documented like this > since 1.3, cause it looks like it was just copied and pasted over. as > far as i know 1.3.2 never supported multiple events.
Yes, it doesn't work in 1.4. I still have to chain multiple live
events. Someone should change the docs.
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Karl Swedberg <k... @englishrules.com>
Date: Mon, 18 Jan 2010 09:29:57 -0500
Local: Mon, Jan 18 2010 9:29 am
Subject: Re: [jquery-dev] Re: 1.4 Live issue with multiple event types
On Jan 18, 2010, at 5:43 AM, matiasnu wrote:
> On Jan 15, 9:54 pm, Leeoniya <leeon
... @gmail.com> wrote:
>> that seems like a mistake. wonder if it has been documented like this
>> since 1.3, cause it looks like it was just copied and pasted over. as
>> far as i know 1.3.2 never supported multiple events.
> Yes, it doesn't work in 1.4. I still have to chain multiple live > events. Someone should change the docs.
The docs are now updated.
http://api.jquery.com/live/ --Karl
____________ Karl Swedberg www.englishrules.com www.learningjquery.com
You must
Sign in before you can post messages.
You do not have the permission required to post.