[jquery-dev] Re: live() don't trigger first assigned event on multiple event binding

2009-01-15 Thread John Resig
Good catch, fixed! --John On Thu, Jan 15, 2009 at 10:23 PM, Nano. wrote: > Hi Guys, > > I think there is a typo in the documentation. > > http://docs.jquery.com/Events/live#typefn at the Arguments section for the > type it says "One or more event types separated by a space" (maybe copied > fr

[jquery-dev] Re: live() don't trigger first assigned event on multiple event binding

2009-01-15 Thread Nano.
Hi Guys, I think there is a typo in the documentation. http://docs.jquery.com/Events/live#typefn at the Arguments section for the type it says "One or more event types separated by a space" (maybe copied from bind?). At the top is clear that binds only to one "Binds a handler to an event (like cl

[jquery-dev] Re: live() don't trigger first assigned event on multiple event binding

2009-01-15 Thread alx
Just started the new ticket while getting your answer. :D Thanks again for your fast responses. with regards alx On Jan 16, 4:15 am, John Resig wrote: > > thx for your fast answer. Thought live is working exactly like bind > > except the cases you can find in the documentation. > > > I've al

[jquery-dev] Re: live() don't trigger first assigned event on multiple event binding

2009-01-15 Thread John Resig
> thx for your fast answer. Thought live is working exactly like bind > except the cases you can find in the documentation. > > I've already made a ticket: http://dev.jquery.com/ticket/3885 can you > plz delete or make it invalid. I will open a new enhancement request > at: http://dev.jquery.com

[jquery-dev] Re: live() don't trigger first assigned event on multiple event binding

2009-01-15 Thread alx
Hi John, thx for your fast answer. Thought live is working exactly like bind except the cases you can find in the documentation. I've already made a ticket: http://dev.jquery.com/ticket/3885 can you plz delete or make it invalid. I will open a new enhancement request at: http://dev.jquery.com

[jquery-dev] Re: Bugs of Is( ) in jquery 1.3 , it can't work well,always return True

2009-01-15 Thread Ricardo Tomasi
Damn. I'm always outdated! Sorry for the confusion, and thanks for coming in :] On Jan 15, 6:29 pm, John Resig wrote: > > It's not a bug, is() always returns true for unsupported selectors. > > Complex selectors like you're using are not supported. > > That's no longer the case - in jQuery 1.3 .

[jquery-dev] Re: live() don't trigger first assigned event on multiple event binding

2009-01-15 Thread John Resig
I don't think it was ever stated that multiple live events worked (I explicitly didn't mention them in the documentation since they weren't implemented). I'm kind of surprised that anything worked in your test case! I may look to implement them for a future release. Would you be interested in fil

[jquery-dev] live() don't trigger first assigned event on multiple event binding

2009-01-15 Thread alx
While palying around with the latest svn build of jquery I noticed that .live is don't triggering the first assigned event, if you pass a list of events to the first argument like you can do so with bind. Every event is triggered except the first assigned even if you pass all the supported events

[jquery-dev] Re: Regression jQuery UI 1.6rc4 + jQuery 1.3 : triggerHandler problems

2009-01-15 Thread ajpiano
UI 1.5.3 will never work with jQuery 1.3. That's the whole point. On Jan 15, 3:44 pm, SwimDrewid wrote: > I am finding this to be true with 1.5.3 as well -- I am unable to > trigger the 'receive' handler in a sort method > > On Jan 15, 8:10 am, lrbabe wrote: > > > I'm not very certain about th

[jquery-dev] Re: Selector attribute filter bug in 1.3?

2009-01-15 Thread Nano.
Yes, David is right. Sorry for the confusion. Nano. On Jan 15, 4:44 pm, John Resig wrote: > Uhh, yeah - you're right. It's been a long week :-P > > --John > > On Thu, Jan 15, 2009 at 7:38 PM, David Zhou wrote: > > Why is that a bug? > > > If 1.3 matches only elements that have the specified a

[jquery-dev] Re: Selector attribute filter bug in 1.3?

2009-01-15 Thread John Resig
Uhh, yeah - you're right. It's been a long week :-P --John On Thu, Jan 15, 2009 at 7:38 PM, David Zhou wrote: > Why is that a bug? > > If 1.3 matches only elements that have the specified attribute, > shouldn't the second radio remain as "name?" due to its lack of name? > > On Thu, Jan 15, 20

[jquery-dev] Re: Selector attribute filter bug in 1.3?

2009-01-15 Thread David Zhou
Why is that a bug? If 1.3 matches only elements that have the specified attribute, shouldn't the second radio remain as "name?" due to its lack of name? On Thu, Jan 15, 2009 at 7:30 PM, John Resig wrote: > > Bug filed here: http://dev.jquery.com/ticket/3884 > > --John > > > > On Thu, Jan 15, 200

[jquery-dev] Re: Selector attribute filter bug in 1.3?

2009-01-15 Thread John Resig
Bug filed here: http://dev.jquery.com/ticket/3884 --John On Thu, Jan 15, 2009 at 7:29 PM, John Resig wrote: > Erm. Good point. Time to fix it! > > --John > > > > On Thu, Jan 15, 2009 at 5:40 PM, Nano. wrote: >> >> Hi, >> >> If v1.3 has changed, why the demo on >> http://docs.jquery.com/Sele

[jquery-dev] Re: Selector attribute filter bug in 1.3?

2009-01-15 Thread John Resig
Erm. Good point. Time to fix it! --John On Thu, Jan 15, 2009 at 5:40 PM, Nano. wrote: > > Hi, > > If v1.3 has changed, why the demo on > http://docs.jquery.com/Selectors/attributeNotEqual > has the 2nd input not changed to " is not newsletter " (2nd input has > no name attribute). > > Output

[jquery-dev] Re: Selector attribute filter bug in 1.3?

2009-01-15 Thread Nano.
Hi, If v1.3 has changed, why the demo on http://docs.jquery.com/Selectors/attributeNotEqual has the 2nd input not changed to " is not newsletter " (2nd input has no name attribute). Output: name? name? is not newsletter Source code: = http://www.w3.org/TR/html4/loose.dtd";> http://

[jquery-dev] Re: Selector attribute filter bug in 1.3?

2009-01-15 Thread John Resig
Good call - just updated the docs: http://docs.jquery.com/Selectors/attributeNotEqual --John On Thu, Jan 15, 2009 at 4:49 PM, prefect wrote: > > Ah, I see. That seems like a good decision. Then my only minor point > would be to update the documentation of the [attr!=value] filter. As I > said

[jquery-dev] Re: Selector attribute filter bug in 1.3?

2009-01-15 Thread prefect
Ah, I see. That seems like a good decision. Then my only minor point would be to update the documentation of the [attr!=value] filter. As I said I just recently started experimenting with jQuery and thus use the documentation a lot to find my way around jQuery. But I'd bet you're probably busy rev

[jquery-dev] Re: Regression jQuery UI 1.6rc4 + jQuery 1.3 : triggerHandler problems

2009-01-15 Thread SwimDrewid
I am finding this to be true with 1.5.3 as well -- I am unable to trigger the 'receive' handler in a sort method On Jan 15, 8:10 am, lrbabe wrote: > I'm not very certain about the origin of this problem, but it appears > that when using the last release candidate of jQuery-UI with the last > off

[jquery-dev] Re: $.each return value

2009-01-15 Thread John Resig
Where do we use the return value from $.each() (not to be confused with $.fn.each)? I've never seen it used in that context (have for $.map, naturally). --John On Thu, Jan 15, 2009 at 3:44 PM, Ariel Flesler wrote: > > I agree with Dave, $.each already returns data so changing it would > break

[jquery-dev] Re: $.each return value

2009-01-15 Thread Elijah Insua
Perhaps tacking on a 'returnValue' on to the object that is returned.. that is however quite smelly. On Thu, Jan 15, 2009 at 3:44 PM, Ariel Flesler wrote: > > I agree with Dave, $.each already returns data so changing it would > break old code (even our own). > Also.. I think we should not mess

[jquery-dev] Re: $.each return value

2009-01-15 Thread Ariel Flesler
I agree with Dave, $.each already returns data so changing it would break old code (even our own). Also.. I think we should not mess with $.each, as it's the most frequently called function all over the framework. On Thu, Jan 15, 2009 at 6:14 PM, John Resig wrote: > > I think there was a slight

[jquery-dev] Re: Bugs of Is( ) in jquery 1.3 , it can't work well,always return True

2009-01-15 Thread John Resig
> It's not a bug, is() always returns true for unsupported selectors. > Complex selectors like you're using are not supported. That's no longer the case - in jQuery 1.3 .is() now supports complex selectors (it was in the release notes, yesterday). I'll need to review this test case but it's poss

[jquery-dev] Re: Unbind'ing events declared in tag.

2009-01-15 Thread John Resig
> Removal of inline events via unbind() could be added to the core, it's > very useful. I guess a check for .attr('on'+event) wouldn't be much > overhead. Where do we file enhancement proposals? We could probably do it for .unbind("click"). Just file it in the bug tracker: http://dev.jquery.com/

[jquery-dev] Re: Unbind'ing events declared in tag.

2009-01-15 Thread Ricardo Tomasi
Removal of inline events via unbind() could be added to the core, it's very useful. I guess a check for .attr('on'+event) wouldn't be much overhead. Where do we file enhancement proposals? On Jan 15, 5:46 pm, John Resig wrote: > > If an event is defined in a tag, say , > > then $(img).unbind() h

[jquery-dev] Re: Bugs of Is( ) in jquery 1.3 , it can't work well,always return True

2009-01-15 Thread Ricardo Tomasi
It's not a bug, is() always returns true for unsupported selectors. Complex selectors like you're using are not supported. And you can't do that with the :even or :odd pseudo-selectors, as $ (this) gives you a single element which is always "even". $(".stripe tr").click( function(){ if($(this

[jquery-dev] Re: jQuery 1.3 Released

2009-01-15 Thread Balazs Endresz
Let me put it here because this was opened a month ago, moreover it's unassigned: http://dev.jquery.com/ticket/3729 Now attributes seem to have some surplus of backslashes. On Jan 15, 8:41 pm, John Resig wrote: > > afaik: safari has are issues with case sensitivity and selectors when in > > quir

[jquery-dev] Re: $.each return value

2009-01-15 Thread John Resig
I think there was a slight mis-communication, I'll open it back up. --John On Thu, Jan 15, 2009 at 3:11 PM, ajpiano wrote: > > http://dev.jquery.com/ticket/3877 > > The response ths ticket got isn't what I would have expected it to get > based on the reactions in this thread? Wha happen? > >

[jquery-dev] Re: $.each return value

2009-01-15 Thread ajpiano
http://dev.jquery.com/ticket/3877 The response ths ticket got isn't what I would have expected it to get based on the reactions in this thread? Wha happen? --adam On Dec 18 2008, 8:11 pm, oliver wrote: > I suppose this is only changing thereturnvalue of $.each, not $ > ([elem]).each(), correc

[jquery-dev] Re: jQuery 1.3 Released

2009-01-15 Thread Jeffrey Kretz
I have had a few projects where the HTML was not 100% under my own control and couldn't run in standards mode. However, in those situations, I did NOT promise the client full compatibility across all major browsers. If this was an issue with the client, I demanded either control over the HTML or

[jquery-dev] Re: Unbind'ing events declared in tag.

2009-01-15 Thread Diogo Baeder
Suggestion: to create a plugin or new method to support native event handlers (I don't know if the new Event class supports them, though), for the sake of performance. Diogo On Thu, Jan 15, 2009 at 5:46 PM, John Resig wrote: > > > If an event is defined in a tag, say , > > then $(img).unbind()

[jquery-dev] Re: Selecting JUST visible elements (without getting the elements that are inside INvisible elements)

2009-01-15 Thread John Resig
Two quick things: 1) This selector isn't valid: $("div span[offsetWidth>0]"); (There's no > in jQuery attribute selectors). 2) I really like the idea of checking the offsetWidth - that seems much faster than what we're doing right now - and seems relatively painless. Could you file a bug on usi

[jquery-dev] Re: Unbind'ing events declared in tag.

2009-01-15 Thread John Resig
> If an event is defined in a tag, say , > then $(img).unbind() has no effect on the onclick attribute. I have > to go in an set the onclick="". > > Is this expected behavior? I'm not sure. Since it wasn't an event that we bound I'm not sure what the protocol would be for removing it (we'd have

[jquery-dev] Re: jQuery 1.3 Released

2009-01-15 Thread John Resig
> afaik: safari has are issues with case sensitivity and selectors when in > quirks mode. I'm going to try and fix this - but for the most part code is just more likely to work better in standards mode, we might have to apply more workarounds (and, thus, take a slower code path) in order to make

[jquery-dev] Re: jQuery 1.3 Released

2009-01-15 Thread Elijah Insua
afaik: safari has are issues with case sensitivity and selectors when in quirks mode. On Thu, Jan 15, 2009 at 2:32 PM, Matt wrote: > > Could anyone explain this statement on the wiki page? > > "You should always be sure to run your page in standards mode. There > are > known issues with methods

[jquery-dev] Re: jQuery 1.3 Released

2009-01-15 Thread Matt
Could anyone explain this statement on the wiki page? "You should always be sure to run your page in standards mode. There are known issues with methods not working correctly in quirks mode (including errors in the selector engine in Safari). " Is there a list of the known issues somewhere? (I b

[jquery-dev] Unbind'ing events declared in tag.

2009-01-15 Thread TMQuinn
If an event is defined in a tag, say , then $(img).unbind() has no effect on the onclick attribute. I have to go in an set the onclick="". Is this expected behavior? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[jquery-dev] Selecting JUST visible elements (without getting the elements that are inside INvisible elements)

2009-01-15 Thread M.A.WEB
The concept is simple: to find the elements that are visible at the screen. But by using the :visible selector, it verify only the element itself, so if a parent element is hidden, the child is still considered as visible. Here's an example markup: TEST If we use this selector: $("div:visible");

[jquery-dev] Re: $('div:has("p+p')') causes browser to freeze with jQuery 1.3

2009-01-15 Thread John Resig
I just created a ticket: http://dev.jquery.com/ticket/3878 --John On Thu, Jan 15, 2009 at 9:50 AM, John Resig wrote: > Dave - > > It has not been filed - could you do so in the jQuery bug tracker? Thanks. > http://dev.jquery.com/newticket > > --John > > > > On Thu, Jan 15, 2009 at 9:43 AM, Da

[jquery-dev] Re: Selector attribute filter bug in 1.3?

2009-01-15 Thread John Resig
On this point I disagree. The previous version was equal to: li:not([class=zoom]) The current version is equal to: li[class]:not([class=zoom]) This change came about after discussing it over with the MochiKit team (since they use the same selector engine as us) and I have to agree with their im

[jquery-dev] Selector attribute filter bug in 1.3?

2009-01-15 Thread prefect
The documentation for the [attr!=value] filter reads: "Matches elements that either don't have the specified attribute or do have the specified attribute but not with a certain value." In 1.2.6 $("li[class!='zoom']") would give me both LI elements without a class attribute and those with a class

[jquery-dev] Re: $('div:has("p+p')') causes browser to freeze with jQuery 1.3

2009-01-15 Thread John Resig
Dave - It has not been filed - could you do so in the jQuery bug tracker? Thanks. http://dev.jquery.com/newticket --John On Thu, Jan 15, 2009 at 9:43 AM, David Hulbert wrote: > > The message is wrong, but the test was right: > $('div:has("p+p")') > > Has the bug already been filed then? > Is

[jquery-dev] Re: :eq(n) issue

2009-01-15 Thread John Resig
I've filed a ticket for the :eq() issue: http://dev.jquery.com/ticket/3873 --John On Thu, Jan 15, 2009 at 2:07 AM, David Zhou wrote: > > It looks like a bug in Sizzle -- specifically, when applying filters, > it's applying to the two tables separately. > > See: > > http://media.nodnod.net/eq.

[jquery-dev] Re: $('div:has("p+p')') causes browser to freeze with jQuery 1.3

2009-01-15 Thread David Hulbert
The message is wrong, but the test was right: $('div:has("p+p")') Has the bug already been filed then? Is it a bug with jQuery or Sizzle? Thanks, Dave On Jan 15, 1:28 pm, "Diogo Baeder" wrote: > Hmmm... the code is exactly as written in the test? Because > $('div:has("p+p')') > has a single-q

[jquery-dev] Re: What about a first-parent ?

2009-01-15 Thread Just
Hello Jörn, Nop, parent return the only one direct ancestor of a element, and so can return set of element corresponding to each direct ancestor of each element matched. In my example the LI can't be the direct ancestor of the other LI. On 15 jan, 12:40, Jörn Zaefferer wrote: > Isn't that paren

[jquery-dev] Re: more selector regressions in 1.3rc2 - Safari capital letters in class names

2009-01-15 Thread John Resig
Just to follow-up, this is the bug where we're tracking the issue: http://dev.jquery.com/ticket/3840 --John On Wed, Jan 14, 2009 at 12:54 AM, Sidney San Martín wrote: > > I saw this thread a half hour ago or so and decided to take a poke at > it. Took me a while to find the querySelectorAll b

[jquery-dev] Re: jQuery 1.3rc2 Ready

2009-01-15 Thread John Resig
Donald - It looks like a bug has been filed here: http://dev.jquery.com/ticket/3837 Checking in to it - thanks! --John On Tue, Jan 13, 2009 at 4:21 PM, Donald @ White Whale wrote: > > Okay, so I was right the first time. It does occur in 1.3rc2, but not > 1.3b2. My confusion comes from the

[jquery-dev] Re: Regression jQuery UI 1.6rc4 + jQuery 1.3 : triggerHandler problems

2009-01-15 Thread lrbabe
Oh, great : ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsu

[jquery-dev] Re: :eq(n) issue

2009-01-15 Thread Ariel Flesler
Nope, not a typo. That + character allows .eq() to used with a stringified number. http://dev.jquery.com/ticket/3102 -- Ariel Flesler http://flesler.blogspot.com On Jan 15, 5:15 am, "David Zhou" wrote: > Somewhat related, there's a small but harmless typo at > > http://dev.jquery.com/browser/t

[jquery-dev] Re: $('div:has("p+p')') causes browser to freeze with jQuery 1.3

2009-01-15 Thread Diogo Baeder
Hmmm... the code is exactly as written in the test? Because $('div:has("p+p')') has a single-quote error (should be double-quoted) after the second 'p'. Diogo On Thu, Jan 15, 2009 at 11:23 AM, John Resig wrote: > > As I mentioned in another thread, this looks like a bug and should > probably

[jquery-dev] Re: $('div:has("p+p')') causes browser to freeze with jQuery 1.3

2009-01-15 Thread John Resig
As I mentioned in another thread, this looks like a bug and should probably be filed. Thanks! --John On Thu, Jan 15, 2009 at 6:43 AM, David Hulbert wrote: > > I get: > > "A script on this page may be busy, or it may have stopped responding. > You can stop the script now, open the script in th

[jquery-dev] Re: :eq(n) issue

2009-01-15 Thread John Resig
David - That looks like a separate issue - could you file a bug? Thanks! --John On Thu, Jan 15, 2009 at 5:18 AM, David Hulbert wrote: > > Is this issue related to this? > > $('div:has("p+p")') // goes into infinite loop with this HTML > 1 > > Test case: http://jsbin.com/atiha/edit > > Or sho

[jquery-dev] Re: :eq(n) issue

2009-01-15 Thread David Hulbert
Is this issue related to this? $('div:has("p+p")') // goes into infinite loop with this HTML 1 Test case: http://jsbin.com/atiha/edit Or should I file a bug? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "jQuery

[jquery-dev] $('div:has("p+p')') causes browser to freeze with jQuery 1.3

2009-01-15 Thread David Hulbert
I get: "A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue." With the code: $('div:has("p+p')') And the HTML: 1 This worked fine with jQuery 1.2.6. Test case: http://jsbin.com/atiha/edi

[jquery-dev] Re: Regression jQuery UI 1.6rc4 + jQuery 1.3 : triggerHandler problems

2009-01-15 Thread Richard D. Worth
jQuery UI 1.6rc4 is only compatible with jQuery 1.2.6. 1.6rc5 will be released today and be compatible with jQuery 1.3. - Richard On Thu, Jan 15, 2009 at 8:10 AM, lrbabe wrote: > > I'm not very certain about the origin of this problem, but it appears > that when using the last release candidate

[jquery-dev] Regression jQuery UI 1.6rc4 + jQuery 1.3 : triggerHandler problems

2009-01-15 Thread lrbabe
I'm not very certain about the origin of this problem, but it appears that when using the last release candidate of jQuery-UI with the last official release of jQuery, triggerHandler causes some problem. Try to create a simple slider with a callback on "slide". Tell me if the callback is triggered

[jquery-dev] Re: What about a first-parent ?

2009-01-15 Thread Jörn Zaefferer
Isn't that parent()? Jörn On Thu, Jan 15, 2009 at 11:30 AM, Just wrote: > > Thanks leeoniya ! > > But ":eq(0)" can't work in my case. > Work as ":first" and so return an only one element, so can't get each > parent of each matched element :/. > > I'll look for the closest method. > > But think

[jquery-dev] Re: What about a first-parent ?

2009-01-15 Thread Just
Thanks leeoniya ! But ":eq(0)" can't work in my case. Work as ":first" and so return an only one element, so can't get each parent of each matched element :/. I'll look for the closest method. But think it should be very interesting to get a "first-ancestor" as we have a "first-child". On 14 j