[jQuery] Re: My first plugin, overlabel

2007-04-01 Thread Michael E. Carluen
L PROTECTED] On Behalf Of Karl Swedberg Sent: Sunday, April 01, 2007 6:16 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: My first plugin, overlabel Hi Michael, That looks like it would do what you're shooting for. I played around with it a bit just for kicks, seeing if I c

[jQuery] Re: My first plugin, overlabel

2007-04-01 Thread Karl Swedberg
al == '') { </pre><tt>$(this).attr({ class: 'login_labels', type: 'text'}).val </tt><tt>('password'); </tt><pre style="margin: 0em;"> } }); > -Original Message--

[jQuery] Re: My first plugin, overlabel

2007-04-01 Thread Michael E. Carluen
pe: 'text'}).val('password'); } }); > -Original Message- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Scott Sauyet > Sent: Sunday, April 01, 2007 11:54 AM > To: jquery-en@googlegroups.com > Su

[jQuery] Re: My first plugin, overlabel

2007-04-01 Thread Karl Swedberg
On Apr 1, 2007, at 2:54 PM, Scott Sauyet wrote: Karl Swedberg suggested that this had to do with accessibility and graceful degradation. That is certainly correct, but the main point is simply to reduce the screen real estate taken by the form. Scott, when I looked at the HTML Michael provi

[jQuery] Re: My first plugin, overlabel

2007-04-01 Thread Scott Sauyet
Michael E. Carluen wrote: I am curious as to what might be the advantage of using your overlabel plugin versus a much shorter script like the one below? I posted your suggested code at http://scott.sauyet.com/Javascript/Demo/Overlabel/test.html and a simple version of mine at http:/

[jQuery] Re: My first plugin, overlabel

2007-04-01 Thread Karl Swedberg
Hi Michael, I'm guessing that the advantage has to do with semantic HTML and graceful degradation. Semantically, the label for an input belongs in a element. When JavaScript is not enabled, the user will have a label next to the input, and won't have to select "userid" or "password" insi

[jQuery] Re: My first plugin, overlabel

2007-04-01 Thread Michael E. Carluen
Hi Scott: I am curious as to what might be the advantage of using your overlabel plugin versus a much shorter script like the one below? -Michael .login_labels{color: #eee;} .login_fields{color: #000;} $(function(){ $('#userid_field').focus(function() { $(this).attr(

[jQuery] Re: My first plugin, overlabel

2007-03-31 Thread Erik Beeson
Reminds me of this: http://www.bash.org/?4278 On 3/31/07, John Resig <[EMAIL PROTECTED]> wrote: > (Am I the first one on the new list?! Do I win a prize?) You are! You win the internets!

[jQuery] Re: My first plugin, overlabel

2007-03-31 Thread John Resig
> (Am I the first one on the new list?! Do I win a prize?) You are! You win the internets!

[jQuery] Re: My first plugin, overlabel

2007-03-31 Thread Scott Sauyet
(Am I the first one on the new list?! Do I win a prize?) >> == Scott Sauyet > == Matt Stith >> I'm fairly new to JQuery. I recently needed a technique I had seen >> recently on A List Apart to combine labels and text input boxes into >> a single control in order to save space. The technique