Re: [jQuery] :input selector (solved)

2007-01-06 Thread Christopher Jordan
Yeah, that's actually where I found my answer Klaus. I'm a bit embarrassed that I basically posted the question a second time. It didn't immediately occur to me that I could do the same thing with "input:type" that I could with ".classA". I'm not a css stud so I guess I didn't think of the inde

Re: [jQuery] :input selector (solved)

2007-01-06 Thread Christopher Jordan
Thanks for the links Karl. I'd gotten the links from someone on the list a while ago, but that was on a different machine and I couldn't remember how to find them. Thanks. :o) Chris Karl Swedberg wrote: Hi Christopher, The full list of selector expression can be found on the jquery.com wiki:

Re: [jQuery] :input selector (solved)

2007-01-06 Thread Klaus Hartl
Christopher Jordan schrieb: > Where is this sort of thing documented? I mean, all the API says (unless > I'm missing it somewhere) is that you can do $("input") to get all input > elements. It mentions nothing about being able to string them together > in a comma delimited list like this. That'

Re: [jQuery] :input selector (solved)

2007-01-06 Thread Karl Swedberg
Hi Christopher, The full list of selector expression can be found on the jquery.com wiki: http://jquery.com/docs/Base/Expression/ The :input selector in particular can be found in the custom jQuery selector page: http://jquery.com/docs/Base/Expression/Custom/ --Karl _ Karl

Re: [jQuery] :input selector (solved)

2007-01-06 Thread Mike Alsup
> Well, while I'd still like to know if this selector was added to the API, I > did find a solution to my problem. It's been in core since v1.0.2. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] :input selector (solved)

2007-01-06 Thread Christopher Jordan
Well, while I'd still like to know if this selector was added to the API, I did find a solution to my problem. $("input:text,input:hidden,select,textarea") Where is this sort of thing documented? I mean, all the API says (unless I'm missing it somewhere) is that you can do $("input") to get al

Re: [jQuery] .css() px vs. em

2007-01-06 Thread Karl Swedberg
Thanks a lot to Dave, Luke, and John for all your help! John's code is just what I needed. The other ideas are very interesting, too, and I'll definitely take a closer look at them later. If anyone is interested, you can take a look at the test page: http://test.learningjquery.com/css-test.ht

Re: [jQuery] Events bubbling

2007-01-06 Thread Ⓙⓐⓚⓔ
when I wanted to bubble some events a few weeks ago.I wrote this demo http://cigar.dynalias.org/demo/clicklogger.html simple page with nested tags, the outermost gets the click then the parents don't... without the canceling and the stopProp all the parents would get the click. It calls a dummy

Re: [jQuery] :input selector

2007-01-06 Thread Christopher Jordan
What every happened to this :input selector. It sounded like John put it in the core, but I can't seem to figure out how to use it. I need to select all inputs of type text and hidden, as well as all selects and textareas. Can anyone give me a quick hand with this? Thanks, Chris Jörn Zaefferer

Re: [jQuery] .css() px vs. em

2007-01-06 Thread John Resig
Just as a follow up, here's how I helped Karl on AIM: var num = parseFloat( val ); var type = val.slice(-2); num *= 1.2; $(...).css( "fontSize", num + type ); The difference in the reported fontSize is something we're looking at. --John On 1/6/07, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hi f

Re: [jQuery] Events bubbling

2007-01-06 Thread Ⓙⓐⓚⓔ
I generally just return false at the end of my handlers that I don't want bubbled. the overkill could be placed at the start or end of the handler as well. On 1/6/07, Fabien Meghazi <[EMAIL PROTECTED]> wrote: > > not at all dirty... the 2 function hover is way cool! my advice was > > just general

Re: [jQuery] Splitter

2007-01-06 Thread Oskar E.
Alex Cook wrote: >> As a mere mortal I'm just surprised you haven't written >> one in between asking the question??!! ;-) >> > Well I started on one thinking it would be simple, but ran into some > problems so I figured I'd ask if anyone else had solved them. As Douglas > Crockford says, "The

Re: [jQuery] .css() px vs. em

2007-01-06 Thread Luke Lutman
Here it is as a plugin (I don't have IE handy, but it the IE part of the code works in FireFox): Example: $('#example').px('font-size'); -> '12px' Plugin: (function($){ var $px = $(document.createElement('div')).css({ position: 'absolute' }); $.f

Re: [jQuery] Events bubbling

2007-01-06 Thread Fabien Meghazi
> not at all dirty... the 2 function hover is way cool! my advice was > just general stuff! Funny ! you posted this at the very moment I was looking back to your first reply to this thread, because my hover() trick is not working 100% I've just been confronted to the fact that a focus on a select

Re: [jQuery] .css() px vs. em

2007-01-06 Thread Luke Lutman
I've run into the same problem with IE :-( I did more or less what Dave suggested (untested, of course!): var $tmp = $('#some-element') .append('') .find(':last-child') var fontSizeInPx = $tmp.width(); $tmp.remove(); This would work for other units (i.e. in, pt) and other properties

Re: [jQuery] Events bubbling

2007-01-06 Thread Ⓙⓐⓚⓔ
not at all dirty... the 2 function hover is way cool! my advice was just general stuff! On 1/6/07, Fabien Meghazi <[EMAIL PROTECTED]> wrote: > > the simple way to stop bubbling is to return false. > > the only time I needed anything else was to activate the href after > > the click got caught. > >

Re: [jQuery] .css() px vs. em

2007-01-06 Thread Dave Methvin
> Firefox is returning the value in pixels while IE6 is returning > the value in ems. Is this a bug? It's just IE being IE. Other browsers have getComputedStyle which tells you the dimensions in pixels. IE has currentStyle; although that does tell you the current style (taking the CSS cascade int

[jQuery] .css() px vs. em

2007-01-06 Thread Karl Swedberg
Hi folks, I'm trying to get the font size of some text using the .css() method, but I'm running into a problem because Firefox is returning the value in pixels while IE6 is returning the value in ems. Is this a bug? Or is it just a browser difference that we have to account for in our code?

[jQuery] Problem with Tablesorter and Pager

2007-01-06 Thread Matthieu BARBE
Hi, I use the last tablesorter plugin ( http://jquery.com/dev/svn/trunk/plugins/tablesorter/jquery.tablesorter.js) with pager plugin (http://jquery.com/api/js/pager.js). I find a bug, when you clic on pagination, the data don't reorder correctly. See an exemple here : http://www.mes-anniversair

[jQuery] jqminmax trouble

2007-01-06 Thread fullgarbage
Hi all, I have a troble with jqminmax plugin, which I am trying to solve since 2 days, but with no suucess. The problem is: it simply doesn't work and I cannot figure why. Here is the test page: http://72.232.217.42/~titanga/arena_new/source/htmls/phonebasic.php?id=1349 There are tooltips everywhe

Re: [jQuery] Events bubbling

2007-01-06 Thread Fabien Meghazi
> the simple way to stop bubbling is to return false. > the only time I needed anything else was to activate the href after > the click got caught. Well I found a workaround using the second function of hover(); Is it a dirty workaround ? ___ jQuery mai

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-06 Thread Christof Donat
Hi, > Yes, I downloaded it short before. > Please, tell me when I can download the fixed version, and I'll test again I just have uploaded the current version again. Please try again. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.c

Re: [jQuery] Dynamically removing an inline script block

2007-01-06 Thread Bruce MacKay
Thanks folks for your responses. As usual, I couldn't see the wood for the trees and you were correct Christof, what I really needed to do was to alter the values of a variable. Problem now solved. Thanks again, Bruce At 11:46 a.m. 5/01/2007, you wrote: >Hi, > > > I'm seeking help in dynamic