[jQuery] Re: Set property based on sibling width()

2009-10-06 Thread bombaru
Wow! It really is that simple. Thanks. On Oct 5, 12:19 pm, brian wrote: > $('.caption').each(function() > { >   $this.width($this.find('img').width()); > > } > On Mon, Oct 5, 2009 at 11:52 AM, bombaru wrote: > > > Can somebody help me

[jQuery] Set property based on sibling width()

2009-10-05 Thread bombaru
Can somebody help me out? I'm trying to set a width of a span class based on the width of the image inside of it. I've got a container that will also have a bunch of images... some of them will have captions and will be wrapped in a class "caption"... some will not be wrapped in the "caption" cl

[jQuery] Re: loop/count

2009-08-25 Thread bombaru
not sure how to get around this though. Thanks On Aug 25, 11:57 am, bombaru wrote: > OK... I figured something out to achieve the functionality I'm after. > This will set the first span to active and then add/remove the active > class when the user cycles through using the previ

[jQuery] Re: loop/count

2009-08-25 Thread bombaru
ive'); } else { $('.visual-cue p span.active').removeClass('active').prev().addClass ('active'); } }); Surely there's got to be a better/cleaner way to achieve this. Thanks for any help/assistance you can pro

[jQuery] Re: loop/count

2009-08-24 Thread bombaru
if the user is clicking the next button, and vice-versa if the user is using the previous button action. Thanks again for your help. On Aug 24, 5:04 pm, James wrote: > So basically you just want to know how many tags there are? > If so, something like this could work (untested): >

[jQuery] loop/count

2009-08-24 Thread bombaru
I'm trying to add a navigational aid to a carousel that I'm working on. Basically, I want to visually display the number of results in the carousel and then highlight the result that is currently in the first position as the user scrolls through the result set - providing a visual cue to the user

[jQuery] dom_init

2009-06-26 Thread bombaru
I came across the following script tag in a framework. I've never seen this before and have no clue why it would be used. Can someone help shed some light on this? jQuery(dom_init);

[jQuery] Re: li:nth-child(10) toggle

2009-06-20 Thread bombaru
ything at index 10+, then check the length of the jQuery > object from that operation. If it's length is greater than 0, go ahead > and add the 'More' link. > > On Jun 20, 10:11 am, bombaru wrote: > > > One question with this approach... how would I implement t

[jQuery] Re: li:nth-child(10) toggle

2009-06-20 Thread bombaru
This approach is a lot cleaner that what I had concocted and work with jQuery 1.3.2. On Jun 19, 9:16 pm, bombaru wrote: > Thanks mkmanning!!!  I'll give this a try tomorrow and let you know. > Looking at it though... I'm pretty confident it will do the trick. > It'

[jQuery] Re: li:nth-child(10) toggle

2009-06-20 Thread bombaru
Works like a champ! Thank you again (mkmanning and karl) for all of your help. On Jun 19, 9:16 pm, bombaru wrote: > Thanks mkmanning!!!  I'll give this a try tomorrow and let you know. > Looking at it though... I'm pretty confident it will do the trick. > It's amazing h

[jQuery] Re: li:nth-child(10) toggle

2009-06-19 Thread bombaru
On Jun 19, 7:36 pm, Karl Swedberg wrote: > Ah, I see. Helps to be able to see the HTML. > > Let us know if mkmanning's approach doesn't do the trick. > > --Karl > > > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > On Jun 19, 2009,

[jQuery] Re: li:nth-child(10) toggle

2009-06-19 Thread bombaru
>        }); >      } >    }); > > --Karl > > > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > On Jun 19, 2009, at 4:54 PM, bombaru wrote: > > > > > There has got to be a better way to write this?  Basically, I'm > > r

[jQuery] Re: Unresponsive Script

2009-06-19 Thread bombaru
19, 2:29 pm, James wrote: > What does the function for "CreateOnClickEvent" look like if you don't > mind posting that? > > On Jun 19, 6:15 am, bombaru wrote: > > > Same result: Unresponsive script error > > > On Jun 19, 11:17 am, amuhlou wrote:

[jQuery] li:nth-child(10) toggle

2009-06-19 Thread bombaru
There has got to be a better way to write this? Basically, I'm returning a bunch of list item and after the 10th one, setting the rest to display:none and adding a link. Clicking on the link removes the display:none and adds a link at the bottom. I think jQuery 1.3.2 is having some trouble w

[jQuery] Re: Unresponsive Script

2009-06-19 Thread bombaru
Same result: Unresponsive script error On Jun 19, 11:17 am, amuhlou wrote: > what happens if you put an empty else {} after the last elseif? > > On Jun 19, 10:33 am, bombaru wrote: > > > I think it's the "if/else if" statement at the top.  If I change the &g

[jQuery] Re: Unresponsive Script

2009-06-19 Thread bombaru
ot;) { var position = $zone.attr('position'); if (typeof (CreateOnClickEvent) != "undefined") CreateOnClickEvent('Search', 30, searchHandler + e.data.section + ':' + position); // add position data } $zone.unbind

[jQuery] Re: Unresponsive Script

2009-06-19 Thread bombaru
I've pinpointed the script that's causing the timeout. Commenting this script out resolves the issue. I don't see anything in this script however that is out of place. I'd be curious if some better trained eyes find something. Thanks again for all of your help. ===

[jQuery] Re: Unresponsive Script

2009-06-19 Thread bombaru
I've pinpointed the script that's causing the timeout. Commenting this script out resolves the issue. I don't see anything in this script however that is out of place. I'd be curious if some better trained eyes find something. Thanks again for all of your help. ===

[jQuery] Re: Unresponsive Script

2009-06-18 Thread bombaru
ave other scripts running on the page aside from just jQuery? > Such as other scripts that rely on jQuery? > > On Jun 18, 11:00 am, bombaru wrote: > > > I switched to the development version of jQuery so I could actually > > see where the offending line was.  I'm still

[jQuery] Re: Unresponsive Script

2009-06-18 Thread bombaru
deIndex = ++count; 1988 } 1989 } 1990 parent.sizcache = doneName; 1991 } Again, any help will be much appreciated. Thanks. On Jun 18, 4:45 pm, bombaru wrote: > Anyone know why I might be getting and "Unresponsive script" warning? > I'm running 1.3.2.min.  

[jQuery] Unresponsive Script

2009-06-18 Thread bombaru
Anyone know why I might be getting and "Unresponsive script" warning? I'm running 1.3.2.min. The Warning pops up and states the following: A script on this page may be busy, or may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.

[jQuery] Superfish animation

2009-03-04 Thread bombaru
How do I kill/override the animation methods that are built into the code? I'm not a fan of the opacity or height methods and would like to see this menu without these additions. Is this the line that needs tweaking (and if so, can someone show me how)? $ul.animate(o.animation,o.speed,function(

[jQuery] Re: input box on change event?

2008-09-17 Thread bombaru
r' event use the 'change' jquery event > (analogous to onChange() traditional js) > > http://docs.jquery.com/Events/change > > -Alex > > On Sep 16, 11:08 pm, bombaru <[EMAIL PROTECTED]> wrote: > > > I've got an input box and am displaying a form bu

[jQuery] input box on change event?

2008-09-16 Thread bombaru
I've got an input box and am displaying a form button on focus... then hiding the form button on blur. Ideally, I want to display the form button on focus, but only hide the button if the original contents of the input box have not changed (put another way... persist the form button if the quanti

[jQuery] Select box show/hide

2007-10-08 Thread bombaru
Does anyone have any examples of how I could use a select box to show/ hide different divs on a page. To take it a level further, I would also like the same behavior to work if images are clicked. A little background: I'm tring to build a payment options page and have a list of payment icons (V