[jQuery] Re: Radio button checked status

2009-08-13 Thread littlerobothead
ensagem Original- >   De: littlerobothead >   Para: jQuery (English) >   Enviada em: quinta-feira, 13 de agosto de 2009 16:46 >   Assunto: [jQuery] Radio button checked status > >   Banging my head against a wall here. I have this: > >   1Date Range >   >   Daily >   &g

[jQuery] Radio button checked status

2009-08-13 Thread littlerobothead
Banging my head against a wall here. I have this: 1Date Range Daily Weekly Monthly and I'm trying to get checked status with this: var period = $('input.period:checked').val(); But, of course, no joy. Do *I* need to set the checked status of the radio button in order to use the :checked met

[jQuery] Re: More fun with decrementing on click

2009-08-03 Thread littlerobothead
ml() function. > use --count > > Peter > > on 03/08/2009 21:15 littlerobothead said:: > > > > > I have a status area in an app I'm working on. It shows the number of > > unread alerts. As the user clicks each alert, it's subtracted from the > > total.

[jQuery] More fun with decrementing on click

2009-08-03 Thread littlerobothead
I have a status area in an app I'm working on. It shows the number of unread alerts. As the user clicks each alert, it's subtracted from the total. The following code counts the number of items to use as my total: var trigger = $("#dataset-b tr.unread"); var count = $(trigger).length;

[jQuery] Draggables and offset

2009-07-24 Thread littlerobothead
I've built an expanding HUD control for a map in a project. I've got it expanding, and, using some code from this group I have it avoiding the edges of the viewport on first resize. The problem is that it doesn't seem like an object updates its position when you make it draggable with the jQuery U

[jQuery] Re: Design pattern for animate()

2009-07-16 Thread littlerobothead
dOffset.left < 360 ) { >     hud.animate({left:-360}, 90); > > } else { >     return false; > } > > I'm guessing you'd need something like that. > > > > littlerobothead wrote: > > I have a small hud-syle control I've built for a project. I'm using &g

[jQuery] Design pattern for animate()

2009-07-16 Thread littlerobothead
I have a small hud-syle control I've built for a project. I'm using the following code to activate a collapse button on the hud, and to resize the hud so that it can accommodate some wide data. $('li.hud-left-tab').click(function() { // First, if the hud is collapsed, slid

[jQuery] Re: Decrement on click?

2009-07-09 Thread littlerobothead
> var count = 25; > $('#test').text(count); > $('body').click(function () { >         $('#test').text(--count); > > }); > > Launch it, then click on the body: you'll see the number decrease :) > > > > > > On Thu, Jul 9,

[jQuery] Decrement on click?

2009-07-09 Thread littlerobothead
I'm sure this is going to be an easy one. I'm just not seeing a solution in any of the usual places. I'm getting the number of elements in a table like so: var count = $("#dataset-b tr").length; Then appending that number to a span, like so: $(".count").html("(" + count + ")"); What I want to

[jQuery] Odd overlap issue with cycle plugin

2009-05-17 Thread littlerobothead
I have a slideshow set up here, for reference: http://www.littlerobothead.com/secret.php You'll be able to see the slides as they overlap when using the "next" or "previous" buttons. The CSS that controls the slides themselves is: #top-feature { /* this is the parent container */ height

[jQuery] Odd overlap issue with cycle plugin

2009-05-17 Thread littlerobothead
I have a slideshow set up here, for reference: http://www.littlerobothead.com/secret.php You'll be able to see the slides as they overlap when using the "next" or "previous" buttons. The CSS that controls the slides themselves is: #top-feature { /* this is the parent container */ height

[jQuery] Classic noob questions

2007-08-22 Thread littlerobothead
I'm trying (for learning, and out of stubborness) to build an image slider. The code I'm using, and my issue, follows. $(document).ready(function() { $('div#features:eq(0) > div:not(:first)').hide(); // Hides all but the first feature story