[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Klaus Hartl
Dan G. Switzer, II wrote: Saying "div#car" is literally saying find me all "div" tags, where the "id" is "car". To do that, we have to first get find all DIV tags and then figure out which one has an id of "car". That's the way it worked pre 1.1. Now, it's "get #car a

[jQuery] Re: Adding AJAX(?) functionality to existing site... do I make new server files?

2007-06-12 Thread Kenneth
On 6/12/07, Chris W. Parker <[EMAIL PROTECTED]> wrote: Hello, What's the standard method for fitting an existing site with AJAX functionality? Currently all my server side files that process requests, like deleting rows from a database (e.g. customers, products, etc.), automatically redirect

[jQuery] Re: jTip and ToolTip featured on smashing magazine

2007-06-12 Thread JimD
Wow Jtip was great but cluetip takes it to another level. sticky ajax tooltips cool. Great job Karl. On Jun 12, 4:14 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hey, that's cool! > > They feature clueTip, too, and I haven't even blogged about it yet. > Not sure how they found out about it, but

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Karl Swedberg
On Jun 12, 2007, at 9:57 PM, Dan G. Switzer, II wrote: If you run this example, the has a yellow background and the has a pink background. However, only the get it's text appended to it. You can work around it by doing: $("[EMAIL PROTECTED]'bam']").append(" -- pink"); yep. that's

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Karl Swedberg
On Jun 12, 2007, at 8:14 PM, Benjamin Sterling wrote: By the way, does anyone know which page the slickspeed test is run on ( http://mootools.net/slickspeed/) ? I can't find any of the actual elements on the page itself. Not sure if I understand your question correctly, but they are

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Aaron Heimlich
On 6/12/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: This just isn't exactly intuitive and can be confusing to people who'd expect a valid CSS selector rule to work in jQuery. Except that, while the selectors are syntactically valid, you can't have duplicate IDs on the same page, so you'

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Dan G. Switzer, II
>Yes, getElementById returns the first one found, i.e. the first one in the >dom, if there are multiple nodes with the same id. The fact that jQuery looks for the id first, then the tag definitely improves performance, but causes the following example to fail: $(document).ready( functio

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Dan G. Switzer, II
>But that is my thinking of why $('span#bam') would be faster then just >$('bam'). But getting an element by ID is much faster--because there's a native method of retrieval. You're either selecting all tags and then looking to see which has an ID of "bam", or your finding the first instance of

[jQuery] Re: jTip and ToolTip featured on smashing magazine

2007-06-12 Thread Shelane
I guess that's one more thing to prompt it's finish :-) It's looking good. On Jun 12, 4:14 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hey, that's cool! > > They feature clueTip, too, and I haven't even blogged about it yet. > Not sure how they found out about it, but I feel kind of pathetic

[jQuery] Re: Masked Input Plugin Beta 2

2007-06-12 Thread Josh Bush
I'd like to get this feature set stable and to a 1.0 release. Once I'm there I'll venture into the optional masks. I haven't exactly settled everything in my head on how to implement that just yet. Josh On Jun 12, 8:04 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > Awesome. > We just launched t

[jQuery] Re: Can Jquery be used to provide an image backup system?

2007-06-12 Thread Jeffrey Kretz
That is an interesting idea. Here's one possible way of handling it. On document ready, set a timer for a specified amount of time, that will search for each img on the page and check to see if they are loaded and alter the url as needed. I don't know the best way to test for an image being loa

[jQuery] Re: Adding AJAX(?) functionality to existing site... do I make new server files?

2007-06-12 Thread Jeffrey Kretz
I've done both, and there are plusses and minuses to each one. Currently, my preferred method (using .NET) is a single page that handles everything. I have an IHttpHandler set up to intercept all calls to Coral.ashx, process the request and return a JSON-formatted response. This is also where

[jQuery] Data mining and charting

2007-06-12 Thread fastnoc
I've been looking through this jQuery and we're going to introduce some of the functionality in a site we run. it's a free site that displays referrer lists. My question is this. Is there a plugin or extension already written that can gather data either directly or from a database (MySQL) that wi

[jQuery] Re: Masked Input Plugin Beta 2

2007-06-12 Thread Glen Lipka
Awesome. We just launched the e-commerce side of things and used the plugin in a few places. http://app.marketo.com/signup/signup/code/standard Notice phone and zip. One thing I would love to see is an option to -not- delete the contents if they miss the last digit on blur. For instance, I'd like

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Matt Stith
Yes, getElementById returns the first one found, i.e. the first one in the dom, if there are multiple nodes with the same id. On 6/12/07, Aaron Heimlich <[EMAIL PROTECTED]> wrote: On 6/12/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: > > Plus, what happens if you have: > > > > > > What if

[jQuery] Masked Input Plugin Beta 2

2007-06-12 Thread Josh Bush
I'm proud to announce the second beta of my Masked Input Plugin for jQuery. This release fixes a few bugs from Beta 1 and adds a few features. The following is a list of changes for this release. * BREAKING CHANGE: If you were using the optional placeholder argument, you will need to change it t

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Aaron Heimlich
On 6/12/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: Plus, what happens if you have: What if you need to retrieve the span tag? If it's checking #bam first, won't it only find the element? The DOM2 has this to say: getElementById introduced in DOM Level 2 Returns the Element

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Benjamin Sterling
What if you need to retrieve the span tag? If it's checking #bam first, won't it only find the element? But that is my thinking of why $('span#bam') would be faster then just $('bam'). (And yes, I know the HTML spec says that IDs should be unique, but occasionally you're dealing w/dynam

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Dan G. Switzer, II
> Saying "div#car" is literally saying find me all "div" tags, where >the "id" > is "car". To do that, we have to first get find all DIV tags and then >figure > out which one has an id of "car". > > >That's the way it worked pre 1.1. Now, it's "get #car and check if it's a >div".

[jQuery] Re: find is finding what?

2007-06-12 Thread Trans
On Jun 11, 7:30 pm, "Erik Beeson" <[EMAIL PROTECTED]> wrote: > jQuery always returns a jQuery object, regardless of whether it finds > anything or not. To see if anything has been selected, use last.length or > last.size() being greater than 0. This is by design so chaining won't break > if noth

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Benjamin Sterling
Karl, By the way, does anyone know which page the slickspeed test is run on ( http://mootools.net/slickspeed/) ? I can't find any of the actual elements on the page itself. Not sure if I understand your question correctly, but they are using iframes for each framework. ... I do think, howev

[jQuery] Re: Adding AJAX(?) functionality to existing site... do I make new server files?

2007-06-12 Thread Benjamin Sterling
Chris, If you want to keep your site unobtrusive, then option 2 would be better. Just pass an extra param, whether it is a POST or a GET, and have the serverside page keep a look out for that param. This of course is assuming that your current set up is something like: formpage -> processpage ->

[jQuery] Re: jTip and ToolTip featured on smashing magazine

2007-06-12 Thread Alexandre Plennevaux
clueTip rules !! _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Karl Swedberg Sent: mercredi 13 juin 2007 0:14 To: jquery-en@googlegroups.com Subject: [jQuery] Re: jTip and ToolTip featured on smashing magazine Hey, that's cool! They feature clueTip, too, a

[jQuery] Re: Macrumors running live udpates of WWDC

2007-06-12 Thread Eric Orton
The beta does replace the webkit framework in OSX, so everything relying on that will be using the v3 libraries (mail etc). You might be better getting one of the webkit nightly builds (maybe somebody knows which revision corresponds to the beta?) which contain the webkit framework within the a

[jQuery] Adding AJAX(?) functionality to existing site... do I make new server files?

2007-06-12 Thread Chris W. Parker
Hello, What's the standard method for fitting an existing site with AJAX functionality? Currently all my server side files that process requests, like deleting rows from a database (e.g. customers, products, etc.), automatically redirect the user to another page with a status message (e.g. succ

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Karl Swedberg
Oh yeah. thanks a lot for pointing that out, Aaron. By the way, does anyone know which page the slickspeed test is run on (http://mootools.net/slickspeed/) ? I can't find any of the actual elements on the page itself. It's funny, though, that from the looks of the window.selectors array [

[jQuery] Re: jTip and ToolTip featured on smashing magazine

2007-06-12 Thread Karl Swedberg
Hey, that's cool! They feature clueTip, too, and I haven't even blogged about it yet. Not sure how they found out about it, but I feel kind of pathetic to be "scooped" by someone about my own plug-in. Pathetic, but also flattered. --Karl _ Karl Swedberg www.englishrules.c

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Aaron Heimlich
On 6/12/07, Karl Swedberg <[EMAIL PROTECTED]> wrote: It has a link to a speed test I threw together, and also to Aaron's enhancement. Just so nobody's confused, Karl's link[1] and my Firebug-enhanced speed test[2] both deal with jQuery 1.0, not 1.1. I have yet to upgrade my Firebug-enhanced t

[jQuery] Re: JS regular expressions for matching decimal numbers

2007-06-12 Thread Aaron Heimlich
Try this: /^(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/ Tests: /^(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test("10"); true /^(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test("10.1"); true /^(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test("100.1"); true /^(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test("1

[jQuery] jTip and ToolTip featured on smashing magazine

2007-06-12 Thread Benjamin Sterling
http://www.smashingmagazine.com/2007/06/12/tooltips-scripts-ajax-javascript-css-dhtml/ -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Karl Swedberg
I think maybe he was referring to this one: http://www.learningjquery.com/2006/12/quick-tip-optimizing-dom-traversal As someone else already mentioned, the part about how it finds something like $('div#foo') is no longer true (as of 1.1), but the general principles are still relevant, I think

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Aaron Heimlich
On 6/12/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote: (I thought it was on learningjquery.com, but could not find it) an article a couple months back. Could you be thinking of http://aheimlich.freepgs.com/javascript/jquery-11-selector-speeds (server seems to be a bit funky today, so watch

[jQuery] Re: textNodes Plugin 0.2

2007-06-12 Thread Ⓙⓐⓚⓔ
the benefit of using this plugin is to keep the chain, using chainable events instead of dropping into each loops. On 6/12/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: Ⓙⓐⓚⓔ wrote: > a new, and I think very useful function, match() I find that last one quite interesting: I through that rat

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Benjamin Sterling
That is what I thought, especially after reading (I thought it was on learningjquery.com, but could not find it) an article a couple months back. Maybe someone can put together a "Best Practices" article. That's the way it worked pre 1.1. Now, it's "get #car and check if it's a div". -- Benj

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Rey Bango
Hi Sean, 1) Lots of people take speed tests seriously, even if they're not a good way to judge a libraries use. Absolutely true Sean. 2) Making jQuery faster doesn't mean it has to be bigger in size, only more clever. Actually that's not 100% true. As Klaus mentioned, there are boundaries

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Aaron Heimlich
On 6/12/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: Saying "div#car" is literally saying find me all "div" tags, where the "id" is "car". To do that, we have to first get find all DIV tags and then figure out which one has an id of "car". That's the way it worked pre 1.1. Now, it's "get

[jQuery] Re: Why I can't access to "a" tag in a div

2007-06-12 Thread Massimiliano Marini
> You have to rebind the clicks after the ajax loads: Thank you 1K Sean for and Andy, I've learned something new -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ "It's easier to invent the future than to predict it." -- Alan Kay

[jQuery] Re: JS regular expressions for matching decimal numbers

2007-06-12 Thread Mateusz Misiorny
What about something like this: "100.12".match(/\d+(?:\.\d+)?/) HTH, Matt On 6/12/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: Hi, has anybody some regular expressions at hand that work in JS to match decimal numbers, eg. 100, 100.4 or 100,120.124 Thanks for sharing. -- Jörn Zaefferer h

[jQuery] Re: Why I can't access to "a" tag in a div

2007-06-12 Thread Sean Catchpole
You have to rebind the clicks after the ajax loads: $.ajax({ type: "GET", url: "news.php", success: function(msg){ $("#response").fadeIn("slow").html(msg); $("#response a").click(function(){ alert("Hello"); return false; )}; } }); ~Sean

[jQuery] Re: Why I can't access to "a" tag in a div

2007-06-12 Thread Massimiliano Marini
> Well, it depends. When you say that the content is generated > dynamically, are you saying that it's generated by a server side > language like ColdFusion or PHP? I think this case, this is my code: $.ajax({ type: "GET", url: "news.php", success: function(msg){ $("#response").

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Benjamin Sterling
Really? hmmm... guess there a some code a need to change. A much more efficient method is just using "#car"--which says go get me the element who's ID is "car". The browser has a native method for getting this and this is very fast an efficient. -- Benjamin Sterling http://www.KenzoMedia.

[jQuery] JS regular expressions for matching decimal numbers

2007-06-12 Thread Jörn Zaefferer
Hi, has anybody some regular expressions at hand that work in JS to match decimal numbers, eg. 100, 100.4 or 100,120.124 Thanks for sharing. -- Jörn Zaefferer http://bassistance.de

[jQuery] Re: Why I can't access to "a" tag in a div

2007-06-12 Thread Andy Matthews
Well, it depends. When you say that the content is generated dynamically, are you saying that it's generated by a server side language like ColdFusion or PHP? Or is it being generated by Javascript? If it's created by javascript, after the page is loaded, then you'll need to reassign the click han

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Dan G. Switzer, II
Benjamin, >>I switched to a different methodology and it sped up > >Can you explain what you did? I try to give a full path to an item, ie: > > > > > >$('div#car div.part') > >This may be off topic a bit, but I do believe we should educate people on >the fastest way to select an object. Mor

[jQuery] Re: Why I can't access to "a" tag in a div

2007-06-12 Thread Massimiliano Marini
> Your code is saying an A tag that has an id of response. To get a > jQuery object containing all a tags inside that div, it should look > like this: > > #response a I have corrected as you have said, but still not work, this is the correction I have applied: $("#response a").click(function(){

[jQuery] Re: Does append() work with application/xhtml+xml doc types?

2007-06-12 Thread Emmanuel Blot
Thanks for the pointer. I've ended up using createElementNS, but it's hard to use when you're used to the concise syntax of jQuery ;-) What would be the best way to append a document fragment - retrieved with $.ajax() or $.get() - into an existing , knowing that the server replies to the xmlhttp

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Dan G. Switzer, II
>One bad Apple spoils the bunch. I think there's a Donnie Osmond joke in there somewhere...

[jQuery] Re: val() and change()

2007-06-12 Thread Dan G. Switzer, II
Josh, >Actually, there currently isn't a programmatic way to set the value >and have it be masked automagically for the developer. I just wanted >to see if I could hook into existing methods to keep from having to >add too much syntax. It's driven off of focus,blur,keypress and >pasting(on cert

[jQuery] Re: Weird IE6 issue...

2007-06-12 Thread Benjamin Sterling
You can wrap that code in an if statement looking for ie6. On 6/12/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: >To make the issue below more clear, I've posted an example of the issue: > >http://www.pengoworks.com/workshop/jquery/ie6_form_fragment_bug.htm > >If you run this code in FF or

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Benjamin Sterling
I switched to a different methodology and it sped up Can you explain what you did? I try to give a full path to an item, ie: $('div#car div.part') This may be off topic a bit, but I do believe we should educate people on the fastest way to select an object. -- Benjamin Sterling http:/

[jQuery] Re: Why I can't access to "a" tag in a div

2007-06-12 Thread Andy Matthews
Your code is saying an A tag that has an id of response. To get a jQuery object containing all a tags inside that div, it should look like this: #response a That says "any A tag inside a container with an id of response". -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAI

[jQuery] Why I can't access to "a" tag in a div

2007-06-12 Thread Massimiliano Marini
$(document).ready(function(){ $.ajax({ type: "GET", url: "news.php", success: function(msg){ $("#response").fadeIn("slow").html(msg); } }); $("a#response").click(function(){ alert("Hello"); return false; }); }); in "response" appear the data fro

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Andy Matthews
Someone should let them know...that's just assinine. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka Sent: Tuesday, June 12, 2007 4:26 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: SlickSpeed CSS Selector TestSuite Ok, Apple engineers are s

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Glen Lipka
Ok, Apple engineers are seriously "a few kilobytes short of meg". Check out the file size of http://www.apple.com/itunes/ Compressed its 878k. But look why. They are using the uncompressed, unminified, totally commented versions of prototype and scriptaculous. Nothing is minified, much less pack

[jQuery] Re: val() and change()

2007-06-12 Thread Josh Bush
Actually, there currently isn't a programmatic way to set the value and have it be masked automagically for the developer. I just wanted to see if I could hook into existing methods to keep from having to add too much syntax. It's driven off of focus,blur,keypress and pasting(on certain browsers

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Christopher Jordan
Sean Catchpole wrote: I hear a lot of discussion about how jQuery isn't that slow, the test wasn't perfectly fair (what test is?), that keeping code small is important, and that development time is the most important thing. 1) Lots of people take speed tests seriously, even if they're not a

[jQuery] Re: val() and change()

2007-06-12 Thread Dan G. Switzer, II
>That's kind of what I was thinking. I was hoping that their might be >a better way. I'd advise against doing that by default. I suppose you could add it as config option for those users that might not have any control over how the field is being updated. I would think that would be exception

[jQuery] Re: val() and change()

2007-06-12 Thread Josh Bush
That's kind of what I was thinking. I was hoping that their might be a better way. On Jun 12, 3:43 pm, "Dan G. Switzer, II" <[EMAIL PROTECTED]> wrote: > Josh, > > >My goal was to detect a val() call from within my masked input plugin. > > >So, when someone says "$("#id").maskedinput('(999) 999-9

[jQuery] Re: val() and change()

2007-06-12 Thread Dan G. Switzer, II
Josh, >My goal was to detect a val() call from within my masked input plugin. > >So, when someone says "$("#id").maskedinput('(999) 999-')" , I >would love to be able to detect when that value had been set >programatically and then re-check the masking. The only way I know to do that, would

[jQuery] Re: val() and change()

2007-06-12 Thread Klaus Hartl
Dan G. Switzer, II wrote: Josh, One more quick thing, is it possible to attach this to the val() of a single input, or am I limited to extending this globally? Instead of calling the below method "val" call it something else--like "valChange()" or something. Then just call that new method an

[jQuery] Re: val() and change()

2007-06-12 Thread Josh Bush
My goal was to detect a val() call from within my masked input plugin. So, when someone says "$("#id").maskedinput('(999) 999-')" , I would love to be able to detect when that value had been set programatically and then re-check the masking. So, if someone does a "$("#id").val('555-867-5309'

[jQuery] Re: Does append() work with application/xhtml+xml doc types?

2007-06-12 Thread Rick
http://www.quirksmode.org/bugreports/archives/2004/11/innerhtml_in_xh.html

[jQuery] Re: val() and change()

2007-06-12 Thread Dan G. Switzer, II
Josh, >One more quick thing, is it possible to attach this to the val() of a >single input, or am I limited to extending this globally? Instead of calling the below method "val" call it something else--like "valChange()" or something. Then just call that new method any time you want the change e

[jQuery] Re: val() and change()

2007-06-12 Thread Dan G. Switzer, II
>Thank you. Any idea how I could attach to regular javascript call like >" x.value='something' "? You're not going to be able to do that in any kind of cross-browser way. Just use a jQuery method/plug-in. -Dan

[jQuery] Can Jquery be used to provide an image backup system?

2007-06-12 Thread cfdvlpr
What I'd like to do is host my images remotely, but only if the remote host is able to return my images in a short amount of time. Can jQuery be used to start a timer when the page is first hit and if certain images are not loaded in X amount of seconds, then use a different url for the images?

[jQuery] Re: Please help! Why is this not working on IE6?

2007-06-12 Thread Richard D. Worth
On 6/9/07, Jose Manuel Zea <[EMAIL PROTECTED]> wrote: I´m still trying to fix this. ... So the thing is that when I set the attribute src of the image after the page is loaded, in IE6 doesn´t work if the image is not in the cache. Please help!! I don´t know how to explain this to my client.

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Rick
it totaly agree. And about the Dimensions plugin: a lot of other plugins use their own (not so good) implementation of the functionality the Dimensions plugin provide. On 12 jun, 20:22, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > Things I would vote to increase the base size with: > >1. Dimensi

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Klaus Hartl
Sean Catchpole wrote: 2) Making jQuery faster doesn't mean it has to be bigger in size, only more clever. Well, at some point there are boundaries and it has to become bigger. For example if using native XPath support in certain browsers is the only way to speed it up. --Klaus

[jQuery] Re: Insert new div into existing div

2007-06-12 Thread Brad Perkins
Excellent! And yes, chaining is great. I had tried chaining with append, but I now realize why that wasn't working (it was putting HTML into font-container and not subdiv). This combined with Franck's last example give me exactly what I need. Brad On Jun 12, 1:44 pm, George <[EMAIL PROTECTED]>

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Sean Catchpole
I hear a lot of discussion about how jQuery isn't that slow, the test wasn't perfectly fair (what test is?), that keeping code small is important, and that development time is the most important thing. 1) Lots of people take speed tests seriously, even if they're not a good way to judge a librar

[jQuery] Re: textNodes Plugin 0.2

2007-06-12 Thread Jörn Zaefferer
Ⓙⓐⓚⓔ wrote: a new, and I think very useful function, match() I find that last one quite interesting: |$("#showScript").toggle( function(){$("script:last").clone().textNodes().wrap("").parent().appendTo("body")} ,function(){$("code").remove()} ); | Could you explain a bit what

[jQuery] Re: val() and change()

2007-06-12 Thread Josh Bush
One more quick thing, is it possible to attach this to the val() of a single input, or am I limited to extending this globally? On Jun 12, 2:44 pm, "Dan G. Switzer, II" <[EMAIL PROTECTED]> wrote: > Josh, > > >I was just wondering, should a val() call invoke a change event? If > >not, is there a

[jQuery] Re: val() and change()

2007-06-12 Thread Josh Bush
Thank you. Any idea how I could attach to regular javascript call like " x.value='something' "? On Jun 12, 2:44 pm, "Dan G. Switzer, II" <[EMAIL PROTECTED]> wrote: > Josh, > > >I was just wondering, should a val() call invoke a change event? If > >not, is there a good way to emulate this behavio

[jQuery] Re: autocomplete advice

2007-06-12 Thread Jörn Zaefferer
Robert O'Rourke wrote: Hi there, I'm putting together an editable combobox using the twice modified autocomplete plugin (Dylan Verhuel's I think). I start with a dropdown and a text input, then create an array from the s values. I replace the static HTML with a single text input followed

[jQuery] Re: Validate RC2 Preview: Remember The Milk Signup

2007-06-12 Thread Jörn Zaefferer
Fabien Meghazi wrote: Maybe what I want to do is pointless or too complicated. I'm curious to know how do you manage double client/server side validation in your applications ? No, its no pointless at all. Its a very important issue, something I'd like to deal with on a more long term issue. So

[jQuery] Re: Insert new div into existing div

2007-06-12 Thread George
Try this... $('').appendTo("#font-container").html("Lorem ipsum ...") Isn't chaining great?! George On Jun 12, 8:21 pm, Brad Perkins <[EMAIL PROTECTED]> wrote: > Thanks Franck! > > I had something working but that is more compact. > > Since I will need to place content into the inserted div I

[jQuery] Re: val() and change()

2007-06-12 Thread Dan G. Switzer, II
Josh, >I was just wondering, should a val() call invoke a change event? If >not, is there a good way to emulate this behavior. You could overwrite the default behavior: $.fn.extend({ val: function( val ) { return val == undefined ? ( this.length

[jQuery] Re: Insert new div into existing div

2007-06-12 Thread Franck Marcia
On 12 juin, 21:21, Brad Perkins <[EMAIL PROTECTED]> wrote: > var c = $("#font-container"); > c.append(''); > c.children("div:last-child").html("Lorem ipsum ..."); // get > the last inserted div > You could use an id and increment it each time you insert a child and then use this id directly. Som

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Tane Piper
Someone once said to me "this will be a moot point by 2008" - but I totally disagreed with them. Yes countries like the UK, USA, Canada and Japan may have > 80% coverage and > 50% subscription rates, but in these countries as you say there are still a large proportion of users on dialup. Many p

[jQuery] val() and change()

2007-06-12 Thread Josh Bush
I was just wondering, should a val() call invoke a change event? If not, is there a good way to emulate this behavior. Thanks Josh digitalbush.com

[jQuery] Re: Validate() and TinyMCE problem

2007-06-12 Thread Jörn Zaefferer
Diego A. wrote: Keep in mind I don't using TinyMCE, I use FCKEditor, but the principle should be the same... Basically, I write a small plugin that is responsible for 1. Creating an instance of the editor 2. Retrieving the HTML content from the editor and 'preparing' it for form submission For

[jQuery] textNodes Plugin 0.2

2007-06-12 Thread Ⓙⓐⓚⓔ
a new, and I think very useful function, match() as in .match(/\d+/g).wrap("").end() gives italicized digits or .match(/\b[A-Z]\w*\b/g).wrap('') italicizes words that start with a cap All happening in place in the dom. get it: http://jqueryjs.googlecode.com/svn/trunk/plugins/textNodes/ see

[jQuery] Re: Insert new div into existing div

2007-06-12 Thread Brad Perkins
Thanks Franck! I had something working but that is more compact. Since I will need to place content into the inserted div I need to select the last inserted div. Using your suggestion, I've come up with something like: var c = $("#font-container"); c.append(''); c.children("div:last-child").htm

[jQuery] autocomplete advice

2007-06-12 Thread Robert O'Rourke
Hi there, I'm putting together an editable combobox using the twice modified autocomplete plugin (Dylan Verhuel's I think). I start with a dropdown and a text input, then create an array from the s values. I replace the static HTML with a single text input followed by a link that I want t

[jQuery] Re: Possible to intercept enter/return key?

2007-06-12 Thread Arne-Kolja Bachstein
Hi Marshall, thank you _very_ much, it works like a charme! Best regards Arne From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Marshall Salinger Sent: Tuesday, June 12, 2007 6:05 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Possible to intercept ent

[jQuery] Re: Weird IE6 issue...

2007-06-12 Thread Dan G. Switzer, II
>To make the issue below more clear, I've posted an example of the issue: > >http://www.pengoworks.com/workshop/jquery/ie6_form_fragment_bug.htm > >If you run this code in FF or IE7, the checkbox will be checked. However, >in >IE6 the checkbox is not checked--even though as you can see the DOM >fr

[jQuery] Re: ANNOUNCE: Open Source Project Tracker Using jQuery

2007-06-12 Thread Randy Shelley
Take a look at http://RSProjectManager.com Not jQuery but new project management portal Randy On Jun 11, 11:26 am, Rey Bango <[EMAIL PROTECTED]> wrote: > Yes. > > Michael Stuhr wrote: > > > Rey Bango schrieb: > >> Yep. It looks very similar. The good thing about it, though, is that > >> its lev

[jQuery] Re: Insert new div into existing div

2007-06-12 Thread Franck Marcia
This should work: $('#form_containter').append(''); then $('#form_containter').append(''); and so on... Franck. On 12 juin, 18:39, Brad Perkins <[EMAIL PROTECTED]> wrote: > In looking at the DOM manipulation commands I'm not clear on the best > way to insert a div into an existing div. More sp

[jQuery] Re: Weird IE6 issue...

2007-06-12 Thread Dan G. Switzer, II
>That is what I was getting ready to say myself, I replaced your function >with: > > >function (){ >this.checked = true; >$("body").append(oDom.html ()); >} > >and it returns the "checked" box, and looking at the textarea and

[jQuery] Re: Weird IE6 issue...

2007-06-12 Thread Benjamin Sterling
Dan, That is what I was getting ready to say myself, I replaced your function with: function (){ this.checked = true; $("body").append(oDom.html()); } and it returns the "checked" box, and looking at the textarea and seeing tha

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Glen Lipka
Things I would vote to increase the base size with: 1. Dimensions http://jquery.com/plugins/project/dimensions (13k uncompressed / 3 packed) 2. More selectors: http://www.softwareunity.com/sandbox/JQueryMoreSelectors/ (12k uncompressed / ? packed) 3. Speed Improvements (Up to 10k addi

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Priest, James (NIH/NIEHS) [C]
> -Original Message- > From: Andy Matthews [mailto:[EMAIL PROTECTED] > I would guess that most (at least a large percentage) of their target > audience has broadband. Last weekend I was over a friends house with dial-up and I was amazed at how completely unusable the web was for me...

[jQuery] Re: Weird IE6 issue...

2007-06-12 Thread Dan G. Switzer, II
Also, if you move the each() line after it's append to the document, the checkbox does get checked in IE6. -Dan >-Original Message- >From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On >Behalf Of Dan G. Switzer, II >Sent: Tuesday, June 12, 2007 2:18 PM >To: jquery-en@googlegrou

[jQuery] Re: Weird IE6 issue...

2007-06-12 Thread Dan G. Switzer, II
To make the issue below more clear, I've posted an example of the issue: http://www.pengoworks.com/workshop/jquery/ie6_form_fragment_bug.htm If you run this code in FF or IE7, the checkbox will be checked. However, in IE6 the checkbox is not checked--even though as you can see the DOM fragment t

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Su
On 6/12/07, Glen Lipka <[EMAIL PROTECTED]> wrote: This topic comes up every time a speed test emerges. To me, speed is totally irrelevant in most circumstances that I use jQuery. It does, and it is. That was why I tried to open the consideration out a bit further to the eventuality of someth

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Bil Corry
Rey Bango wrote on 6/12/2007 7:25 AM: So at the end of the day, it comes down to this: - We can increase selector speeds at the expense of file size or - We can continue to focus on providing tight code in a small package and take what is arguably a small hit in speed Since most browsers

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Geoffrey Knutzen
Would it be possible to create an "Overdrive" plugin that would speed things up? If you are using normal queries, you could use the base version of jquery. If you are in a special situation, querying a huge number of things or special queries that take a long time, simply include the "Overdrive" p

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread DaveG
A lot is being made of how small jQ is. From the quick check I did, jQ compressed is 5k smaller than Prototype, and MooTools with a quick selection of the functions that seem to be in jQ was 27k, only 10k more than jQ. Considering the library is typically downloaded once and then cached, 5-10k

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Andy Matthews
I would guess that most (at least a large percentage) of their target audience has broadband. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert O'Rourke Sent: Tuesday, June 12, 2007 11:56 AM To: jquery-en@googlegroups.com Subject: [jQuery]

[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Klaus Hartl
Andy Matthews wrote: Well said. That about sums it up for me. Yes, I agree as well. The problem is that probably still people will draw the wrong conclusions from such tests. I have the feeling that library makers just use these tests to get draw attention. Thus its even more important to s

  1   2   >