Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
1.4 Live issue with multiple event types
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
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:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jquery.redsquare@googlema il.com  
View profile  
 More options Jan 15 2010, 9:23 am
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
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 case http://pastebin.me/2796fa93b74138794e94d2f7d75ea29c


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jerome  
View profile  
 More options Jan 15 2010, 10:19 am
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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jquery.redsquare@googlema il.com  
View profile  
 More options Jan 15 2010, 10:30 am
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Methvin  
View profile  
 More options Jan 15 2010, 12:39 pm
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jquery.redsquare@googlema il.com  
View profile  
 More options Jan 15 2010, 3:29 pm
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leeoniya  
View profile  
 More options Jan 15 2010, 3:54 pm
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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
matiasnu  
View profile  
 More options Jan 18 2010, 5:43 am
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Karl Swedberg  
View profile  
 More options Jan 18 2010, 9:29 am
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »