[jQuery] New plugin: jquery.onfontresize.js

2008-07-03 Thread thomasdeater
I've just released a new plugin that exposes an "onfontresize" event on the document object. It's based heavily on a technique created (AFAIK) by Hedger Wang which you can read about here: http://www.hedgerwow.com/360/dhtml/js-onfontresize.html I made some minor tweaks and packaged it up as a s

[jQuery] Re: New plugin: equalize column heights

2007-05-17 Thread thomasdeater
I've made another update to the plugin. It no longer requires the jquery dimensions plugin. http://www.tomdeater.com/jquery/equalize_columns/ See also Michael Futreal's vjustify plugin which I recently discovered. He has some good information about an issue involving images with unspecified heig

[jQuery] Re: New plugin: simple character counter for textareas

2007-05-10 Thread thomasdeater
On May 10, 1:58 pm, Bil Corry <[EMAIL PROTECTED]> wrote: > > I added "mouseover" and it worked a little better than onblur alone. > > - Bil Just made another updated. Here's the change log: Added "onpaste" event handler for IE and "oninput" event handler for Mozilla. This should cover most ins

[jQuery] Re: New plugin: simple character counter for textareas

2007-05-10 Thread thomasdeater
On May 10, 1:45 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > since your code is quick, you can also bind mouseup and paste events. paste > only works on ie, > but if you don't catch up 'til blur time, I guess it's no big deal! > I did test the onpaste event in IE, but it didn't seem to work correctl

[jQuery] Re: New plugin: simple character counter for textareas

2007-05-10 Thread thomasdeater
> On May 10, 6:37 am, Peng <[EMAIL PROTECTED]> wrote: > > > If I paste text with short menu by Right-Click it isn't working. Which > > event > > bound can perfect the function? There seems not acceptable event in jQuery. > I've added the "onblur" event handler. This somewhat alleviates the prob

[jQuery] Re: New plugin: simple character counter for textareas

2007-05-10 Thread thomasdeater
On May 10, 6:37 am, Peng <[EMAIL PROTECTED]> wrote: > If I paste text with short menu by Right-Click it isn't working. Which event > bound can perfect the function? There seems not acceptable event in jQuery. > Good catch, Peng. I'll have to think about how to handle that.

[jQuery] Re: New plugin: simple character counter for textareas

2007-05-10 Thread thomasdeater
On May 9, 12:50 pm, [EMAIL PROTECTED] wrote: > For now, I've opted for the following: > > var container = $(settings.container); > if (!container.parent().parent().size()) { > // settings.container must not be an existing page element, > // so insert it into the DOM > ... > > } Frustratingly en

[jQuery] Re: New plugin: equalize column heights

2007-05-09 Thread thomasdeater
On May 9, 2:18 pm, Paul Malan <[EMAIL PROTECTED]> wrote: > I hope you won't mind that I didn't experiment to learn this answer > for myself, but how does your plugin handle content that expands > within these equalized divs? > > For example, if #col2 contains a nested, hidden div, and that div i

[jQuery] Re: New plugin: simple character counter for textareas

2007-05-09 Thread thomasdeater
On May 9, 1:29 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > sorry, I meant $('html').parent().parent().size() and > $('body').parent().parent().size() > > I'd guess body is 0 and html would croak... $('html').parent().parent().size() = 0 $('body').parent().parent().size() = 1 ([Document]) I'll ju

[jQuery] Re: New plugin: equalize column heights

2007-05-09 Thread thomasdeater
On May 9, 12:07 pm, Olaf Bosch <[EMAIL PROTECTED]> wrote: > Fine. I found a little mystery ;) > give a DIV padding and you see it. > > try > > #col1{padding:15px;} Wow, that box model sure is frustrating sometimes ;) I've updated the plugin to handle top/bottom borders/padding (with a couple o

[jQuery] Re: New plugin: simple character counter for textareas

2007-05-09 Thread thomasdeater
On May 8, 9:58 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > hmm, what do you get for $('body') or $('html') ?? $('html').parent() = [ Document ] $('body').parent() = [ html ] Nothing unusual here. For now, I've opted for the following: var container = $(settings.container); if (!container.parent(

[jQuery] New plugin: equalize column heights

2007-05-09 Thread thomasdeater
I've posted this to the discussion list once before, but now I've put together a simple demo page for my equalize column heights plugin: http://www.tomdeater.com/jquery/equalize_columns/

[jQuery] Re: New plugin: simple character counter for textareas

2007-05-08 Thread thomasdeater
On May 8, 4:11 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > I remember reading the jQuery source, it's held in a div until it is put > somewhere! > I wonder if $(elem).parent().parent().size() == 0 is the best/only option then for determining whether $(elem) is a node in the HTML document. Any othe

[jQuery] Re: New plugin: simple character counter for textareas

2007-05-08 Thread thomasdeater
On May 8, 3:15 pm, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote: > On 5/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > I've got a slightly ugly bit of code where I check to see if the user > > has specified an existing element by ID for the container. I'd > > appreciate suggestions for

[jQuery] Re: New plugin: simple character counter for textareas

2007-05-08 Thread thomasdeater
Per Chris's suggestion, I've made an update to the plugin. Now, you can specify that the container be an existing DOM element (e.g, "#myContainer") or an element type that will be created and inserted in the DOM directly after the textarea (e.g., ""). If nothing is specified, a element will be cr

[jQuery] New plugin: simple character counter for textareas

2007-05-08 Thread thomasdeater
I've just released the first version of a simple plugin to add character counters/limiters to textarea elements. The demo and code can be found here: http://www.tomdeater.com/jquery/character_counter/