[jQuery] Re: binding ala ActionScript??

2009-12-04 Thread hsfrey
Thanks Karl! I'll give it a try. Harvey

[jQuery] Re: error essage: "css is not a function"

2009-12-02 Thread hsfrey
Thank you Mike. That makes sense! But what is the purpose of .get() then? What could I do with an "actual JavaScript Array object" which I couldn't do the way you demonstrate? Harvey On Dec 2, 11:48 am, Michael Geary wrote: > The jQuery object - the return value from $(whatever) - is an array-

[jQuery] Re: error essage: "css is not a function"

2009-12-02 Thread hsfrey
ld try $(boxes[i]).css perhaps > > Thanks & Regards, > Dhruva Sagar. > > On Thu, Dec 3, 2009 at 1:04 AM, hsfrey wrote: > > I'm using the following code: > > >                var boxes = $('.resizable').get();     // get divs as array > >        

[jQuery] error essage: "css is not a function"

2009-12-02 Thread hsfrey
I'm using the following code: var boxes = $('.resizable').get(); // get divs as array for (var i=0; i

[jQuery] binding ala ActionScript??

2009-12-02 Thread hsfrey
Do jQuery or JavaScript provide any facility like the data-binding facility of ActionScript, whereby changing a variable immediately applies the changed value throughout the program? Apparently that works by implementing an onChange event whenever the variable is changed.

[jQuery] persistent scroll bar in resizable div

2009-10-17 Thread hsfrey
I have a div which is resizable (using ui.resizable.js). I would like a vertical scrollbar to appear only if the text is truncated as the div is resized. If I use a style = overflow-y:scroll, or overflow-y:auto I get the same result - the scroll bar is Always there, even if the div is far large

[jQuery] Re: Debug says I'm missing a paren, but all parens are matched!

2009-10-10 Thread hsfrey
Michael: Yes, Indeed! That works perfectly! Thank you! And it seems so simple and obvious in retrospect. Actually, I hadn't realized that I could put the selector into a variable and reuse it that way, so you've taught me something else new. Harvey

[jQuery] Re: Debug says I'm missing a paren, but all parens are matched!

2009-10-09 Thread hsfrey
n though it LOOKS like it's set, it ACTS on subsequent calls as though it hasn't been. Harvey On Oct 8, 11:19 pm, Giovanni Battista Lenoci wrote: > hsfrey ha scritto: > > > function togl(b1) { > >    var t1 = document.getElementById(b1).getElementsByTagName("input&q

[jQuery] Re: Debug says I'm missing a paren, but all parens are matched!

2009-10-08 Thread hsfrey
Giovanni: Thank you for your response. > I can't understand what value are you looking for, but should be something > link $('#id').val() or $(this).val(). I'm trying to get the jQuery code to replace this JS which works to toggle the label: function togl(b1) { var t1 = document

[jQuery] Debug says I'm missing a paren, but all parens are matched!

2009-10-06 Thread hsfrey
In this line of code, I'm looking for a div whose Id is in variable b1, and which has an input button field whose value is "Show" or "Hide", and this line is to toggle those values. $(("[id$="+b1+"]") input).attr(value, attr(value) =="Hide"?"Show":"Hide"); This doesn't work, and Firebug gives m

[jQuery] Debug says I'm missing an end paren - but parens all match!

2009-10-06 Thread hsfrey
In this line of code, I'm looking for a div whose Id is in variable b1, and which has an input button field whose value is "Show" or "Hide", and this line is to toggle those values. $(("[id$="+b1+"]") input).attr(value, attr(value) =="Hide"?"Show":"Hide"); This doesn't work, and Firebug gives