[jQuery] jQuery is Moving to a Forum

2010-01-20 Thread John Resig
Hello All - After much deliberation the jQuery team has decided to close down the Google Groups that we've been using for project discussion and move to a unified forum instead. The new forum can be found here: http://forum.jquery.com/ More information about our decision to move can be found her

[jQuery] jQuery 1.4 Alpha 1 Released

2009-12-04 Thread John Resig
More details here: http://blog.jquery.com/2009/12/04/jquery-14-alpha-1-released/ --John

[jQuery] Re: $(':target') and $(location.hash)

2009-09-24 Thread John Resig
jQuery does not support :target. The only reason why it works in Firefox 3.5 is that it provides a native querySelectorAll method. We would have to have an implementation that works in other browser (FF 3.0, IE 8, etc.) and we don't have that right now. You're welcome to file a ticket asking for :t

[jQuery] Re: Twitter for support?

2009-09-13 Thread John Resig
That sounds about right - hopefully we'll be able to direct them to a forum, eventually (which would be much easier to use, I'd expect, for someone who's using twitter). --John On Sun, Sep 13, 2009 at 2:53 PM, Mike Alsup wrote: > > Over the past few months I've been fielding an increasing numb

[jQuery] Re: jQuery.ready after document has loaded

2009-08-12 Thread John Resig
We just landed some code in the latest nightly versions of jQuery to auto-detect if the page has already loaded. You can try it here: http://code.jquery.com/jquery-nightly.js --John On Wed, Aug 12, 2009 at 5:14 PM, ujamu wrote: > > I have developed a FF extension that loads a few JavaScript fi

[jQuery] Re: IE8 Selector Bug?

2009-08-12 Thread John Resig
this? > > Thanks, > Shane > > On Aug 12, 11:50 am, John Resig wrote: > > It looks similar to the one above, but different. I'll try and check in > to > > them both. > > > > gentry - can you file a bug for the issue you found, preferably with a &g

[jQuery] Re: IE8 Selector Bug?

2009-08-12 Thread John Resig
It looks similar to the one above, but different. I'll try and check in to them both. gentry - can you file a bug for the issue you found, preferably with a full test case? --John On Wed, Aug 12, 2009 at 2:21 PM, Jeffrey Kretz wrote: > > My guess is its related to a problem I ran into with the

[jQuery] Re: Bug? -- toggle() of TR broke in IE8

2009-08-07 Thread John Resig
These are a duplicate of http://dev.jquery.com/ticket/4512 which has been fixed. --John On Fri, Aug 7, 2009 at 4:53 PM, Mondo Libero wrote: > > Here: http://dev.jquery.com/ticket/4753, and Here: > http://dev.jquery.com/ticket/4960 > some users send this bug on bug tracker. The example are almo

[jQuery] Re: jquery 1.3.2 error with $(':inp...@name=submit]')???

2009-08-02 Thread John Resig
Just remove the @ and it'll work fine. --John On Sun, Aug 2, 2009 at 12:07 PM, micorreo13 wrote: > > I was using jquery-1.2.6 and now, I started to use jquery-1.3.2, and I > get my first "difference": when I use the wrapped set operation $ > (':inp...@name=submit]') with jquery-1.3.2 it return

[jQuery] Re: function running 2X

2009-07-29 Thread John Resig
How many times is clickcharges called? Perhaps you're binding a click more than once. --John On Wed, Jul 29, 2009 at 3:03 PM, marksimon wrote: > > Still getting 2 alerts. > > On Jul 29, 11:49 am, Eric Garside wrote: > > Pretty sure its because the event is bubbling up. Try: > > > > $('#cardcha

[jQuery] Re: consistently unable to get return false to work, why?

2009-07-27 Thread John Resig
It looks like you're using the old liveQuery plugin. Why not just use .bind() or .live()? --John On Mon, Jul 27, 2009 at 5:11 PM, pedalpete wrote: > > So, this isn't related to any one bit of code, but it seems to be a > problem I run into almost everytime i need to stop a form or link for > d

[jQuery] Re: My messages don't show?

2009-07-27 Thread John Resig
All messages are moderated - so it'll depend heavily upon when we're able to review them. --John On Mon, Jul 27, 2009 at 3:19 PM, Cesar Sanz wrote: > > I takes about 3 hrs to display your first message. dunno why > > - Original Message - From: "Jon Jackson" > To: > Sent: Sunday, July

[jQuery] Re: jQuery broken in FF3.5b99 (Preview)

2009-06-09 Thread John Resig
It looks like it may have already been fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=496790 Thanks for the heads-up, though! --John On Tue, Jun 9, 2009 at 6:09 PM, benjam wrote: > > I'm sure support for a beta release is a bad thing to be asking for, > but I mostly just want to make sur

[jQuery] Re: Something changed from 1.2.2 to 1.3.2 with hashes

2009-05-20 Thread John Resig
Well, in 1.3.2 it now throws an exception, since the CSS selector "#" is invalid. If you wish to use that precise technique I'd wrap a try/catch around the jQuery statement to catch the error. --John On Wed, May 20, 2009 at 8:22 AM, madmax019 wrote: > > Hi everyone, > > I have the following pro

[jQuery] Re: jQuery v1.3.2 error

2009-05-14 Thread John Resig
Could you try it with an unminified version of jQuery? That might help a little bit with debugging. --John On Thu, May 14, 2009 at 11:00 AM, Devision wrote: > > Hello. > > I recently updated my jQuery to 1.3.2 from 1.2.6 and now firebug shows > me error: tagName is undefined (jquery.js line 12

[jQuery] Re: Double submitted ajax requests

2009-04-30 Thread John Resig
Do you have Firebug installed? Some versions of Firebug submit requests twice. --John On Wed, Apr 29, 2009 at 5:17 PM, Josh Ain wrote: > Very intermittently, I am finding ajax requests submitted with jquery are > being submitted twice, once with parameters, and once without parameters. > The c

[jQuery] Re: jQuery 1.3.2 *SLOW* using ".class tag" selector?

2009-04-29 Thread John Resig
Upgrading is probably safe - it's the engine that'll be in jQuery 1.3.3. --John On Wed, Apr 29, 2009 at 8:35 AM, swalke16 wrote: > > I have a situation where I have some HTML I am selecting elements from > using the ".class tag" selector combination using jQuery v1.3.2. I > have noticed that i

[jQuery] Re: Jquery 1.3 - Not all selectors work in IE 8?

2009-04-24 Thread John Resig
Interesting. Do you think you could file a bug on this and then post it to the jQuery-dev list? Thanks! http://dev.jquery.com/newticket http://groups.google.com/group/jquery-dev --John On Thu, Apr 23, 2009 at 5:11 PM, giovanni wrote: > > I found that certain selectors work in all browsers exc

[jQuery] Re: Any benefit to using event.preventDefault() over "return false" to cancel out an href click?

2009-04-20 Thread John Resig
return false does e.preventDefault() and e.stopPropagation(). --John On Mon, Apr 20, 2009 at 3:20 PM, kgosser wrote: > > Just curious if there is a best practice when choosing between > > $("a").click(function(){ >   // stuff >   return false; > }); > > and > > $("a").click(function(){ >   //

[jQuery] Re: Simple selector not working in 1.3.1 and webkit (safari and chrome)

2009-04-02 Thread John Resig
} >                else >                { >                        //display message >                        $("#answer_"+current).html($("message",xml).text()); >                } >    } > > I place alert screens for debugging, the

[jQuery] Re: Form no longer works with upgrade to 1.3.2

2009-03-30 Thread John Resig
Well, without being able to see the form in question - does your page validate? If everything is going into a single input that sounds like a problem with malformed HTML markup. --John 2009/3/30 Kathryn : > > I'm working on a web form and had to upgrade to 1.3.2 tonight to solve > some problem

[jQuery] Re: Timing of 1.3.3 release

2009-03-26 Thread John Resig
Why not just use a nightly build? No need to wait for a full release. http://code.jquery.com/nightlies/jquery-2009-03-26.js --John On Thu, Mar 26, 2009 at 9:03 AM, dberthia wrote: > > Anybody have any insight into when 1.3.3 might be released? There are > a couple of bugs that are wreaking ha

[jQuery] Re: Ticket: [1758-5724031711]

2009-03-24 Thread John Resig
gt; > > On Tue, Mar 24, 2009 at 5:28 PM, John Resig wrote: >> >> Uhhh... why were there like 30 of these submitted to the mailing list? >> Your email address has now been banned. Please contact me off-list if >> you wish to rectify the situation. >> >> --John > >

[jQuery] Re: Ticket: [1758-5724031711]

2009-03-24 Thread John Resig
Uhhh... why were there like 30 of these submitted to the mailing list? Your email address has now been banned. Please contact me off-list if you wish to rectify the situation. --John On Tue, Mar 24, 2009 at 5:45 PM, InfiniteSkills Support Center wrote: > > This message is to notify you that y

[jQuery] Re: Forced bubbling

2009-03-23 Thread John Resig
Why not do: $('#first').click(function(e) { e.preventDefault(); }); --John On Mon, Mar 23, 2009 at 9:20 AM, John Smith wrote: > > I have 2 containers > > i disabled event bubbling for first container. This is must have $ > ('#first').click(function() { return false; }); > > Now i need to dete

[jQuery] Re: Playstation 3

2009-03-23 Thread John Resig
If I remember correctly - the NetFront browser was missing some fairly fundamental features. I don't remember which, off-hand, but it was enough to cause jQuery not even to load. --John On Mon, Mar 23, 2009 at 7:21 AM, Johan wrote: > > jQuery fails on the Playstation 3 browser. Yeah I know the

[jQuery] Re: Animate using relative %

2009-03-05 Thread John Resig
r that the animate function was ignoring > the ‘%’ sign and was just applying ‘-26px’ instead. > > > > After positing this directly to John Resig via twitter I got a response > asking me to try: > > > > $(‘#myDiv’).animate({top : “-=26%”}); > > > > Howeve

[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-26 Thread John Resig
> The benchmark is getElementById().getElementsByTagName() - why not > inlcude that in the test? But it's not that simple (it never is). That code doesn't take into account browsers, like IE, returning element that have a name equal to the ID, not does it take into account the element (with the I

[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-25 Thread John Resig
omorrow morning, as well. Thanks for these tests - it's stuff that I've been meaning to get around to for a while now but it's good to have some easy-to-spot targets. --John On Wed, Feb 25, 2009 at 7:21 PM, John Resig wrote: >> WOW! Check out the last 2 tests, John

[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-25 Thread John Resig
> WOW! Check out the last 2 tests, John. Syntax #4 takes 512-times > longer than #5! I think this code needs a little TLC too ;) > > It was also interesting that $("#div500").children("p") is 10-times > slower than $("#div500").find("p"). So I added one final test using > childNodes and filter() t

[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-25 Thread John Resig
To follow-up from my post yesterday, here are the new numbers, for 1.3.3 (work in progress, naturally): http://ejohn.org/files/jquery1.3.3/id.html jQuery version used = 1.3.3pre Total number of DIVs = 100 Paragraphs per DIV = 50 --- $("#div50 p") = 2ms $("p", "

[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-24 Thread John Resig
t; > it as scope for further selects. > > > by(e) > > Stephan > > 2009/2/23 ricardobeat : > > > up to jQuery 1.2.6 that's how the selector engine worked (from the top > > > down/left to right). The approach used in Sizzle (bottom up/right to > > > lef

[jQuery] Re: 1.3.1/2 selecting bug... or feature?

2009-02-23 Thread John Resig
Looks like a bug to me. In this case it seems like doing just "li" would be equivalent to what you want. Could you file it here? http://dev.jquery.com/newticket --John On Mon, Feb 23, 2009 at 11:43 AM, Sjeiti wrote: > > I've build a recursive tree. Now I'm trying to get the number of list > e

[jQuery] Re: Stopping emails

2009-02-23 Thread John Resig
I just changed your setting to 'No Email'. --John On Mon, Feb 23, 2009 at 1:15 PM, Alan Williams wrote: > Hi > > I currently get all the posts to this group sent to me by email, but > not because I am a member of the Google group (I must have signed up to the > emails before the group was set

[jQuery] Re: jQuery 1.3.2 Released

2009-02-20 Thread John Resig
> Awesome, thanks John. So UI 1.7 should be around the corner as well? Let's hope so! You'll have to ask the UI team :-) I think they're getting real close, though. --John

[jQuery] jQuery 1.3.2 Released

2009-02-20 Thread John Resig
Hi Everyone - Full details here: http://docs.jquery.com/Release:jQuery_1.3.2 Enjoy! --John

[jQuery] Re: .contents() not meeting its contract?

2009-02-20 Thread John Resig
.not() and .filter() don't work against text nodes (they're immediately removed). If you wish to just get the text nodes you can do: $("p").contents().filter(function(){ return this.nodeType !== 1; }) Although, it sounds like you're trying to do this instead: $("p").wrapInner(""); --John

[jQuery] Re: Lower speed with 1.3.1 vs 1.2.6 with simple parsing

2009-02-20 Thread John Resig
A lot has changed with regard to the selector engine in 1.3.1 - it this case it looks like these type of selections didn't benefit. One thing that would change that, though, would be caching the selectors that you do run. Right now you run a couple of these over-and-over again. I'd probably rewrit

[jQuery] Re: Lower speed with 1.3.1 vs 1.2.6 with simple parsing

2009-02-19 Thread John Resig
Do you have some sample markup? It's kind of hard to determine from just the code. --John On Thu, Feb 19, 2009 at 2:18 PM, Sjoland wrote: > > Hi!, > > When switching between 1.3.1 and 1.2.6 i get a serious drop in speed > when collection a JSON object from static HTML content. > > 1.2.6 > FF:

[jQuery] Re: A question for John Resig

2009-02-19 Thread John Resig
> I'm curious what the benefit of that would be. Given that the > window.undefined property exists and has the undefined value, I'd think they > would give the same result. They give the same results for properties, at least: someObject.undefinedProperty === undefined but not for variables th

[jQuery] Re: A question for John Resig

2009-02-18 Thread John Resig
> Safari: +3ms, +2ms, +7ms, +3ms, +4ms > Opera: +46ms, +35ms, +21ms, +19ms, +36ms I forgot to mention that this means that == is about 10% slower than === in both browsers. --John

[jQuery] Re: A question for John Resig

2009-02-18 Thread John Resig
> Why implement jQuery.isFunction when you can also just go typeof > variable == 'function'? You can see some of the cases that we handle that normal typeof can't, here: http://dev.jquery.com/browser/trunk/jquery/test/unit/core.js#L176 --John

[jQuery] Re: A question for John Resig

2009-02-18 Thread John Resig
It really depends in which browser you test. I'm seeing little to no difference in IE and Firefox - but a noticeable difference in Safari and Opera. http://dev.jquery.com/~john/ticket/equals/ Safari: +3ms, +2ms, +7ms, +3ms, +4ms Opera: +46ms, +35ms, +21ms, +19ms, +36ms (over 500,000 iterations)

[jQuery] Re: A question for John Resig

2009-02-18 Thread John Resig
Extra function calls sure - plus there's really no need for those methods, they're already a part of JavaScript. typeof FOO === "string" typeof FOO === "number" typeof FOO === "boolean" --John On Tue, Feb 17, 2009 at 11:53 PM, pbcomm wrote: > > This might be a stupid question, but I have to

[jQuery] Re: "class" weirdness in loaded XML?!?

2009-02-16 Thread John Resig
No problem man. In the future feel free to bring issues like this up on the jquery-dev list - we can diagnose or fix the problem quite quickly. Thanks for spotting this! --John On 2/16/09, ml1 wrote: > > Holy cow, before I even submitted the bug report! > > On Feb 16, 1:24 pm

[jQuery] Re: "class" weirdness in loaded XML?!?

2009-02-16 Thread John Resig
I filed a bug and fixed the issue: http://dev.jquery.com/ticket/4167 --John On Mon, Feb 16, 2009 at 11:40 AM, ml1 wrote: > > Tragically none of those quoting variations work. (I've pretty much > exhausted every quote variation in my desperate search to try to > figure out what's going on.)

[jQuery] Re: selector best practice

2009-02-16 Thread John Resig
Umm - that's not true at all. I created a test for you to see: http://dev.jquery.com/~john/ticket/class-speed/ In Firefox 3 I'm getting: ID Raw: 9 ID jQuery: 22 (over 500 queries) Class Raw: 1108 Class jQuery: 778 (over 100 queries) In Safari 3.2 I'm getting: ID Raw: 1 ID jQuery: 3 (over 500 qu

[jQuery] Re: Feature Detection Best Practice?

2009-02-12 Thread John Resig
That seems like a good use to me! --John On Thu, Feb 12, 2009 at 10:21 PM, Chris wrote: > > I ventured into feature detection, and I want to make sure I'm doing > this the "right" way. Basically the fx on the jQuery UI tabs causes > aliasing in IE 6/7 (but not 8). Instead of checking for thos

[jQuery] Re: Simple selector not working in 1.3.1 and webkit (safari and chrome)

2009-02-03 Thread John Resig
That's odd. Could you file a bug on this? http://dev.jquery.com/newticket Thanks! --John On Tue, Feb 3, 2009 at 10:39 AM, Javier Martinez wrote: > I'm creating a component for an application I'm developing and I have > upgraded jquery to the last version to get it's speed boost. > After some

[jQuery] Re: insertAfter return value

2009-01-31 Thread John Resig
Yeah, that's expected - you would need to bind the event handler, attributes, etc. etc. before you run insertAfter. We might want to look at making that not the case, at some point, but that would require an API change. If you're interested in that, you should file a feature ticket here: http://d

[jQuery] Re: 1.3 and toggle()

2009-01-30 Thread John Resig
It looks like you're trying to use a jQuery UI effect - maybe that's why? --John 2009/1/30 gmacgregor : > > Consider this markup: > > > Foo > > Hello! > > > > Since upgrading to 1.3, this no longer works: > > $('div.holder h4').click(function() { >$(this).toggleClass('close'); >

[jQuery] Re: $('.someclass[initialized!=1]') fails in 1.3; works in 1.2 (if elements don't have initialized attr)

2009-01-22 Thread John Resig
This was fixed in 1.3.1. --John On Thu, Jan 22, 2009 at 4:42 PM, Soulcatcher wrote: > > Say i have several elements with class='someclass' and they DON'T have > attribute 'initialized' initially. > > When i do $('.someclass[initialized!=1]') in 1.2.6, i get the list of > all those elements. >

[jQuery] Re: 1.3.1 is over 10x slower than 1.2.6

2009-01-22 Thread John Resig
I'm not seeing this, no. Do you have a link to the app? What version of Firebug are you using? --John On 1/22/09, Loren wrote: > > Hello, > > I have an application that does lots of HTML injection, animation, and > manipulation, and I'm a long time user and fan of jQuery. > > Recently I downloa

[jQuery] Re: vsdoc for new jquery 1.3.1

2009-01-22 Thread John Resig
The team at Microsoft is already working on it. Hopefully it'll be ready soon. --John On 1/22/09, Fisher Ning wrote: > Hi guys, > > Does anyone know when the jQuery Visual studio doc (jquery-vsdoc.js) will be > updated for new 1.3.1? Is there any plan for this? > > > > > > Regards, > > Fisher >

[jQuery] Re: 1.3, attributeStartsWith and '['

2009-01-20 Thread John Resig
I filed a bug over here: http://dev.jquery.com/ticket/3928 and have since fixed the issue. --John On Mon, Jan 19, 2009 at 2:08 PM, Balazs Endresz wrote: > > Unforunately it's just turned out that there's anothor isssue behind > this. You can follow the ticket if you want update on this, I gu

[jQuery] Re: jquery 1.3 n.queue is not a function?

2009-01-19 Thread John Resig
Also, could you post that URL to the jquery-dev list when you have it? Thanks. http://groups.google.com/group/jquery-dev --John On Mon, Jan 19, 2009 at 11:52 AM, John Resig wrote: > Do you have a URL for your site anywhere? > > --John > > > > On Mon, Jan 19, 2009 at

[jQuery] Re: jQuery 1.3 live not working correctly

2009-01-19 Thread John Resig
Do you have an example anywhere that we can look at? Also, could you post a follow-up to the jquery-dev list? Thanks. http://groups.google.com/group/jquery-dev --John On Mon, Jan 19, 2009 at 7:25 AM, Walther wrote: > > I am having an issue with the new live events in jQuery 1.3. > Specificall

[jQuery] Re: jquery 1.3 n.queue is not a function?

2009-01-19 Thread John Resig
Do you have a URL for your site anywhere? --John On Mon, Jan 19, 2009 at 11:45 AM, yellow1912 wrote: > > When I try to use jquery 1.3 on my test site, I get this error: > jQuery.queue is not a function > [Break on this error] var queue = jQuery.queue( this, type, data ); > (firebug) > > The s

[jQuery] Re: addEvent wrap for document.ready()

2009-01-19 Thread John Resig
Why not just do: function addEvent(obj, evt, fn){ jQuery(obj).bind(evt, fn); } Just defer everything to jQuery! --John On Mon, Jan 19, 2009 at 2:48 AM, rundmw wrote: > > I have an existing application which I would like to transition to use > jQuery. The app currently uses Dean Edwards ad

[jQuery] Re: question about changes to :not() in 1.3

2009-01-16 Thread John Resig
$(':not(div:has(div))') is equivalent to $('*:not(div:has(div))') is equivalent to $('*').filter(':not(div:has(div))') is equivalent to $('*').not('div:has(div)') Hope that helps to answer your question :) --John On Fri, Jan 16, 2009 at 11:24 AM, jdwbell wrote: > > Here I am trying to get ev

[jQuery] Re: jQuery UI 1.6rc5

2009-01-16 Thread John Resig
The jquery-ui list would be a better place for this question. http://groups.google.com/group/jquery-ui --John On Fri, Jan 16, 2009 at 9:34 AM, Eric Garside wrote: > > When is this planned on coming out? Anyone know?

[jQuery] Re: Selector *= not works in Safari 3.2.1 and Chrome 1.0.154.43

2009-01-16 Thread John Resig
What version of jQuery are you using? --John On Fri, Jan 16, 2009 at 2:35 AM, floyd wrote: > > Hi all, > Here is my situation. > > HTML Page DTD Type is declared as following > > http://www.w3.org/ > TR/xhtml11/DTD/xhtml11.dtd"> > > Javascript Code as following > > $("#fp > option[text*='"+su

[jQuery] jQuery 1.3 Released

2009-01-14 Thread John Resig
Hey Everyone - jQuery 1.3 is out! Full details here: http://blog.jquery.com/2009/01/14/jquery-13-and-the-jquery-foundation/ Happy 3rd Birthday, jQuery! --John

[jQuery] Re: @name deprecated?

2009-01-13 Thread John Resig
> "Why disappointingly?" > > Because 1.2 to 1.3 is a big major release... and there's a few post to > "test test test", but there's no indication of what to test for.. > what's changed what could break Huh? Did you miss the beta 1 post where we outlined everything that could've broken? h

[jQuery] jQuery 1.3rc2 Ready

2009-01-12 Thread John Resig
Hey Everyone - jQuery 1.3rc2 is ready. This means that 1.3 is effectively finished barring a horrible bug between now and the final release on Wednesday (the 14th). You can grab the source here: http://code.jquery.com/jquery-1.3rc2.js Please let me know, personally, if you find some bad new bug

[jQuery] Re: jQuery 1.3rc1 Ready

2009-01-11 Thread John Resig
Do you have an example? It's kind of hard to figure out what's going wrong with only a line to look at. --John On Sun, Jan 11, 2009 at 11:07 PM, Canglan wrote: > > Kudos! > > John, the RC1's new selector is causing problems with some of my > existing code base, I've submitted a ticket: > > ht

[jQuery] Re: jQuery 1.3rc1 Ready

2009-01-11 Thread John Resig
>> jQuery 1.3rc1 is ready. This means that 1.3 is effectively finished >> barring a horrible bug between now and the final release on Wednesday > > That's great news. For those of us who haven't been following recent > development, are there any release notes available? Nope - but there will be

[jQuery] jQuery 1.3rc1 Ready

2009-01-11 Thread John Resig
Hey Everyone - jQuery 1.3rc1 is ready. This means that 1.3 is effectively finished barring a horrible bug between now and the final release on Wednesday (the 14th). You can grab the source here: http://code.jquery.com/jquery-1.3rc1.js Please let me know, personally, if you find some bad new bug

[jQuery] Help Test jQuery 1.3 Beta 2

2009-01-05 Thread John Resig
Beta 2 is now out - and we need help testing it! More information here: http://blog.jquery.com/2009/01/05/help-test-jquery-13-beta-2/ --John

[jQuery] Re: jQuery way

2009-01-04 Thread John Resig
Maybe: $("#container").children().not("#header, #content, #footer").empty(); --John On Sun, Jan 4, 2009 at 2:05 PM, Dirceu Barquette wrote: > Hi all! > > Is there better way? > > var elem = $('#container')[0]; > var arr = ["header","content","footer"]; > jQuery.each(elem.childNodes,function(

[jQuery] Help Test jQuery 1.3 Beta 1

2008-12-22 Thread John Resig
Hi Everyone - The jQuery dev team just got jQuery 1.3 Beta 1 out the door. Help us test this release and make sure it goes nice and smoothly! http://blog.jquery.com/2008/12/22/help-test-jquery-13-beta-1/ Thanks in advance. --John

[jQuery] Re: :not selector ---> not working

2008-12-20 Thread John Resig
That's an XPath selector, not a CSS selector. To do that in jQuery you would need to do: $("tr:not(:has(th)):even") --John On Dec 20, 9:38 am, "chinnakarup...@gmail.com" wrote: > Hi, > I tried a eg for :not operator.According to which it should not pick > up the Table header but it does .what

[jQuery] Re: Simple XPATH Selector

2008-12-20 Thread John Resig
jQuery doesn't support XPath selectors any more - you need to use CSS selectors. $("p").addClass("jq"); --John On Dec 20, 9:36 am, "chinnakarup...@gmail.com" wrote: > Hi, > I am trying XPATH selector with jqueryit doesn't seem to > work..find below the eg.it should select the paragraph. >

[jQuery] Re: JQuery licensing questions

2008-11-10 Thread John Resig
Yes, that is perfectly fine on the MIT license. --John On Mon, Nov 10, 2008 at 6:45 PM, acesfull9 <[EMAIL PROTECTED]> wrote: > > > I am working on a web application project that utilizes jquery. I would like > to be able to license the system I created to local businesses for a fee. > Is this

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread John Resig
I'm fairly certain that's incorrect syntax (putting a div inside a span - especially one that's self-closing). The browser will automatically force the div outside the span. --John On Wed, Oct 29, 2008 at 11:38 AM, Jay <[EMAIL PROTECTED]> wrote: > > Has someone else already posted this bug? >

[jQuery] Re: JQuery selector

2008-10-28 Thread John Resig
> $(".u:last > li:last").addClass("last"); Close. $("ul.u > li:last-child").addClass("last"); You may want to move that child ul inside an li - it's not proper HTML to put a UL inside a UL. --John > On 28 Okt., 13:07, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: >> Hi everyone, >> >> I ha

[jQuery] Re: Multiple JQuery Bottleneck

2008-10-17 Thread John Resig
Kind of hard to debug what you're talking about without seeing it. Do you have an example? --John On Fri, Oct 17, 2008 at 10:17 AM, dvdavid2001 <[EMAIL PROTECTED]> wrote: > > > Hi guys, > > This is my 1st time asking the questions hence please bear with me if I did > it wrongly or etc. > > I h

[jQuery] Re: jQuery's ajax .load sometimes shows the previous page for a blink of a second?!

2008-10-05 Thread John Resig
Try something like this: $(".photo").click(function() { $(".jq").hide().load("photo.htm", function(){ $(this).slideDown("slow") }); $(".closerbutton").show("slow").attr("title", "close"); return false; }); $(".about").click(function

[jQuery] Re: Hidden spam on jquery blog

2008-10-01 Thread John Resig
Fixed, sorry about that. --John On Oct 1, 10:22 am, Leanan <[EMAIL PROTECTED]> wrote: > Wow...  looks like someone's trying to get more links... > > On Sep 30, 2:08 pm, equallyunequal <[EMAIL PROTECTED]> wrote: > > > Woops looks like jQuery blog got hit by a sql-injection attack! > > > On Sep 30

[jQuery] Re: i was patient, now i'm frustrated

2008-09-26 Thread John Resig
This is a completely unrelated issue - we host jQuery.com (the homepage, blog, and dev) on a separate server with Rimuhosting. There was a power outage at the server facility and they're working ot bring it back up: http://rimuhosting.com/maintenance.jsp?server_maint_oid=68009362 The other sub-do

[jQuery] Re: jquery.com incredibly slow for me

2008-09-18 Thread John Resig
> AFAIK jquery.com provides files for downloading not hotlinking. So you > should have used your own server to serve js in the first place. We provide code.jquery.com to hotlink to - that's perfectly ok. --John

[jQuery] Re: jquery.com incredibly slow for me

2008-09-17 Thread John Resig
>google.load("jquery", "1.2"); >google.load("jqueryui", "1.5"); > > > Nothing else needs to be changed. > > A good article on the subject: > http://ajaxian.com/archives/announcing-ajax-libraries-api-speed-up-your-ajax-apps-

[jQuery] Re: jquery.com incredibly slow for me

2008-09-17 Thread John Resig
We just acquired four new servers from Media Temple, yesterday. We'll be moving the various sub-domains (docs, plugins, dev, ui) to their own unique servers this week - this should help with load times significantly. But yes, it's mostly due to popularity issues (we're getting the equivalent of a

[jQuery] Re: New jQuery Website...

2008-09-08 Thread John Resig
It was launched the Friday before last. You can thank Scott Jehl for all the hard work he did! --John On Mon, Sep 8, 2008 at 12:58 PM, Chris Jordan <[EMAIL PROTECTED]> wrote: > I really like the look of the new jQuery website. When did it get launched? > My hats off to the designers! It looks

[jQuery] Re: I must be missing something simple...

2008-09-06 Thread John Resig
He's using Document Ready - that's not the issue. To quote Jake from another thread: "See this http://dev.jquery.com/ticket/3143. Long story short, jQuery only supports $(html) or $(xmlObject)." --John On Sat, Sep 6, 2008 at 7:43 AM, Rene Veerman <[EMAIL PROTECTED]> wrote: > http://www.learn

[jQuery] Re: jQuery project works fine in IE6, but bombs in FF2

2008-09-04 Thread John Resig
Try changing this line: $(this.children).show(); to: $(this).children().show(); The first uses a property that's not available in Firefox - whereas the second uses a jQuery method that works in all browsers. --John On Thu, Sep 4, 2008 at 10:45 AM, Phonedude <[EMAIL PROTECTED]> wrote: > > My

[jQuery] Re: Doc's site down?

2008-08-28 Thread John Resig
We've been working with the guys at Media Temple - they're going to be breaking us off into multiple servers. Right now the docs site (for example) is getting the equivalent of about 3-4 "Slashdot"/"Digg" effects per day so we have to boost up the resources that we have. --John On Thu, Aug 28, 2

[jQuery] Re: jQuery.com Broken?

2008-07-20 Thread John Resig
All our static files are hosted on Amazon S3 - they had an outage earlier today. --John On Sun, Jul 20, 2008 at 4:43 PM, Kevin Pepperman <[EMAIL PROTECTED]> wrote: > same here. no CSS. degrading gracefully. > > On Sun, Jul 20, 2008 at 3:46 PM, xwisdom <[EMAIL PROTECTED]> wrote: >> >> Hello, >>

[jQuery] Re: yet again XML+jQuery+IE7

2008-07-15 Thread John Resig
Hey - can you provide an example site? It's unclear what might be wrong without seeing a response from the server. What is the value of xml when it comes back? --John On Tue, Jul 15, 2008 at 9:34 AM, Tzury <[EMAIL PROTECTED]> wrote: > > The following example (from the jquery-doc-site) works fin

[jQuery] Re: is dimensions now part of jquery or not? (I hear different opinions)

2008-07-08 Thread John Resig
Yes, Dimensions is completely a part of jQuery as of jQuery 1.2.6. --John On Tue, Jul 8, 2008 at 2:49 PM, jquertil <[EMAIL PROTECTED]> wrote: > > the other day was told latest jquery now includes dimensions plugin > but I was certain it does not... I still assume it does not, thus I > compile t

[jQuery] Re: .hide() Doesn't Work Fast Enough?

2008-07-07 Thread John Resig
In which browser(s) are you having this issue? --John On Mon, Jul 7, 2008 at 12:41 PM, Vik <[EMAIL PROTECTED]> wrote: > > I'm using jQuery to fade in my site logo on my home page header, to > give the home page some animation. It works great. > > So that the page will degrade gracefully if the

[jQuery] Re: $("something").text() doesn't preserve whitespace in IE

2008-07-06 Thread John Resig
I'm fairly certain that our .text() support has changed a lot since October 2006 (!). It would be interesting to re-examine this issue - if there are any current problems I know that we'd really like to get them fixed. --John On Sun, Jul 6, 2008 at 8:05 PM, Dave Methvin <[EMAIL PROTECTED]> wrot

[jQuery] Re: hasElementClass

2008-07-02 Thread John Resig
jQuery(element).hasClass('classname') --John On Wed, Jul 2, 2008 at 12:18 PM, Harald Armin Massa <[EMAIL PROTECTED]> wrote: > > hello, > > I am in the process of converting some MochiKit code to jquery. > > I was used to a comfortable funciton > > hasElementClass(element, 'classname') > > which

[jQuery] Re: [validate] jquery.delegate.js is missing?

2008-07-02 Thread John Resig
Popping "jquery.delegate.js" into Google provides this: http://dev.jquery.com/export/5759/trunk/plugins/delegate/jquery.delegate.js --John On Wed, Jul 2, 2008 at 9:17 AM, jez_p <[EMAIL PROTECTED]> wrote: > > I should just explain that I'm very new to jQuery. That out of the > way, I have downlo

[jQuery] Re: QUnit, jqUnit, and rhino

2008-06-26 Thread John Resig
I'm working on this (well, trying to get more of the jQuery test suite to pass). I've broken it out into a separate project here: http://github.com/jeresig/env-js/tree/master I'm also trying to get it to run on more platforms (such as Ruby/Johnson, Perl/Spidermonkey, and Python/Spidermonkey). --

[jQuery] Re: What is the equivalent to Mootools $E(selector, data) in jQuery?

2008-06-24 Thread John Resig
You could do this: jQuery('').html(data).find('li').appendTo('#el'); --John On Tue, Jun 24, 2008 at 6:44 AM, Toxane <[EMAIL PROTECTED]> wrote: > > Hi. I'm porting a Mootools script to jQuery. Basically I need to > extract some data from existing data. In Mootools, I did it like this: > > This

[jQuery] Re: Safari 2.0.4 not passing the jQuery test

2008-06-19 Thread John Resig
Jeff - Safari 2 has serious memory issues that are impossible to work around - simply loading and executing too much JavaScript will cause it to crash (as you see with the test suite). We do run the test suite against Safari 2 but in pieces to verify that it works as intended. Yes, we still suppo

[jQuery] Re: Converting this mootools code to jQuery....help?

2008-06-16 Thread John Resig
jQuery(document).ready(function(){ setInterval(function(){ jQuery('#usersOnlineTxt').load(siteURL+'fetch/online-users'); }, 30); }); --John On Mon, Jun 16, 2008 at 5:58 AM, azz0r <[EMAIL PROTECTED]> wrote: > > Hey guys, I'm trying to convert my scripts to jQuery, I wondered if > you

[jQuery] Re: jQuery v1.2.6 is now Officially Released and Release Notes are Available

2008-06-04 Thread John Resig
Sure, we'll take credit for that :-) --John On Wed, Jun 4, 2008 at 12:28 PM, Josh Nathanson <[EMAIL PROTECTED]> wrote: > > Great job on this release guys. > > I also noticed when developing a plugin that it seems the memory management > in IE6 is greatly improved. I accidentally was using 1.2.1

[jQuery] Re: jQuery v1.2.6 is now Officially Released and Release Notes are Available

2008-06-04 Thread John Resig
.extend() was used extensively in the event handling code, hence the need for improvement. > How does it compare with other libraries now? How does what compare? No other library is making the optimizations we are - or even examining how to perform faster operations here. --John

  1   2   3   4   5   6   7   >