Re: [jQuery] CSS Style Plugin Idea

2006-08-11 Thread Christof Donat
Hi, It would be nice if there was a JQuery Plugin for handling Styles. I found a script that is made to change styles (such as to stylesheets). Here it is:http://developer.apple.com/internet/webcontent/styles.html Hopefully someone will be able to turn it into a JQuery Plugin It would be

Re: [jQuery] regexp selector

2006-08-11 Thread Aloyzas Rimeika
Add these lines in your javascript file: jQuery.parse[0] = [ \\[ *(@)S *([\\/!*$^=]*) *Q\\], 1 ];trace(m[4]); jQuery.expr['@']['/='] = new RegExp(m[4]).test(z); then you be able to do following: $([EMAIL PROTECTED]/='\\.(jpg|gif)(\\?.*|$)']) On 8/11/06, Fil [EMAIL PROTECTED] wrote: @ Aloyzas

Re: [jQuery] newbie question

2006-08-11 Thread Steve Clay
Thursday, August 10, 2006, 8:59:42 PM, Realazy XA Chen wrote: $(.panel).click(function(){ $( div.item,this).todosomethinghere(); }) div.item isn't a valid selector. If jQuery doesn't fail it probably should be considered a bug. div.item is all that's needed. -- Steve

Re: [jQuery] newbie question

2006-08-11 Thread Andy Matthews
Maybe it's only valid if there's something before it? Otherwise you're trying to select a child of nothing? !//--andy matthewsweb developercertified advanced coldfusion programmerICGLink, Inc.[EMAIL PROTECTED]615.370.1530 x737--//- -Original

Re: [jQuery] newbie question

2006-08-11 Thread Klaus Hartl
Andy Matthews schrieb: Maybe it's only valid if there's something before it? Otherwise you're trying to select a child of nothing? Yes, we didn't mean the combinator, but the selector as a whole. This is an selector: '* div' This is a combinator: ''

Re: [jQuery] jQuery form handling

2006-08-11 Thread Larry Garfield
Hm, spiffy. If I wanted to get an element that didn't have an ID, I should be able to do that with something like: $('[EMAIL PROTECTED]myfield]').val(); Right? What about multi-value fields like select boxes or radio button sets? -- Larry Garfield On Fri, August 11, 2006 10:25 am, Andy

Re: [jQuery] jQuery form handling

2006-08-11 Thread Mike Alsup
It was originally written the way you suggested but John rearranged them in svn v97. You'll have to ask him why. But I agree that pre/post is a more natural ordering. Wouldn't it make more sense if it was preCallback then postCallback - ___ jQuery

Re: [jQuery] Moving up the DOM

2006-08-11 Thread John Resig
Or would we need to add a .climb() plugin? There's the new .parent() and .parents() methods which allow you to traverse up - which is exactly what you want. You can find basic documentation for it is (temporarily) here: http://john.jquery.com/jquery/docs/ --John

Re: [jQuery] Moving up the DOM

2006-08-11 Thread Larry Garfield
On Fri, August 11, 2006 11:07 am, John Resig said: Or would we need to add a .climb() plugin? There's the new .parent() and .parents() methods which allow you to traverse up - which is exactly what you want. You can find basic documentation for it is (temporarily) here:

Re: [jQuery] Moving up the DOM

2006-08-11 Thread John Resig
Hm, spiffy, that does look like just what I'm looking for. Thanks! Is that documentation page based on dev, beta, or latest? I'm fast getting the impression that the jQuery web site docs are well out of date compared to the current version. Is the temp link you listed auto-generated? It

[jQuery] JQuery Plugin: SpinBox / SpinButton Control (with no extra markup)

2006-08-11 Thread George Adamson
Hi everyone, I've been working on a Spin Control that uses only a standard textbox. input type=text / With Javascript enabled the textbox looks and acts like a spin-button control without adding any extra elements. http://www.softwareunity.com/sandbox/jqueryspinbtn/ The up/down arrows are

Re: [jQuery] JQuery Plugin: SpinBox / SpinButton Control (with no extramarkup)

2006-08-11 Thread Acuff, Daniel (Comm Lines, PAC)
Very nice! Would be out of this world if you could hold down on the up or down arrow and it would increment automatically. For example if I wanted to increment to 40 fast I would just hold the arrow down. Not to throw a feature request at you cause I am not going to use it at this time. Maybe

Re: [jQuery] jQuery form handling

2006-08-11 Thread Andy Matthews
I believe that would be this: $('[EMAIL PROTECTED]myfield]')get[0].val(); Where 0 relates to the order of the items? !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//-

Re: [jQuery] JQuery Plugin: SpinBox / SpinButton Control (with no extra markup)

2006-08-11 Thread Jonathan Sharp
It doesn't work for me in FF1.5.05/IE6.x (no arrows show up)-jsOn 8/11/06, George Adamson [EMAIL PROTECTED] wrote:Hi everyone,I've been working on a Spin Control that uses only a standard textbox. input type=text /With _javascript_ enabled the textbox looks and acts like a spin-buttoncontrol

Re: [jQuery] jQuery form handling

2006-08-11 Thread John Resig
$('[EMAIL PROTECTED]myfield]')get[0].val(); Nope, what he had was just fine - doing a .val() gets the value of the first element matched. --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] JQuery Plugin: SpinBox / SpinButton Control (with no extramarkup)

2006-08-11 Thread Andy Matthews
Okay... It's working in FF. Very nice! This should get melded in with the form plugin posted earlier. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original

Re: [jQuery] jQuery form handling

2006-08-11 Thread Andy Matthews
Ah Thank you John. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Resig

Re: [jQuery] JQuery Plugin: SpinBox / SpinButton Control (with no extramarkup)

2006-08-11 Thread Dylan Verheul
FF 1.5 shows arrows but otherwise doesnt work. IE6 works for me. On 8/11/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi George, very nice work so far. Some ideas: - min, max and increments would be very useful and quite easy to implement - concerning 'disallow non-numeric text': Sam wrote

Re: [jQuery] Textarea: redux

2006-08-11 Thread Matt Stith
jQuery might be a little slow for this need, try using regular DOM selectors, it would be faster and easier.On 8/10/06, Chad Lansford [EMAIL PROTECTED] wrote:I'm new to jQuery, and I'm having a problem grabbing the value from a textbox or textarea. I searched the past discussions and found this

Re: [jQuery] Textarea: redux

2006-08-11 Thread ashutosh bijoor
A much neater way to do what you need is to use the Form Serializer. This allows you to get values of all the inputs at one go, and you can then submit them. And there is also a de-serializer plugin that allows you to set values from a JSON into the form. The form serializer is in the svn version

Re: [jQuery] JQuery Plugin: SpinBox / SpinButton Control (with no extra markup)

2006-08-11 Thread ashutosh bijoor
Great work!-AshutoshOn 8/11/06, George Adamson [EMAIL PROTECTED] wrote: Hi everyone,I've been working on a Spin Control that uses only a standard textbox. input type=text /With _javascript_ enabled the textbox looks and acts like a spin-buttoncontrol without adding any extra elements.