[jQuery] Re: ClueTip focus/blur trouble

2009-10-25 Thread Shawn
Thanks Karl. I'll look at this more in a bit. but from what I can see I think you have a solution for me.. Shawn Karl Swedberg wrote: Hi Shawn, Here is what I'd probably do: After you call $this.cluetip( ...), unbind the blur event: $this.unbind('blur.cluetip'); Then you can handle the

[jQuery] Re: How Stop Animation Works?

2009-10-25 Thread Karl Swedberg
you might need to use the clearQueue and gotoEnd arguments in the .stop() method: .stop(true, true) --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 24, 2009, at 12:24 AM, Stan wrote: Dear All, I have an object with mouse over and mouse out events.

[jQuery] Re: Prevent key to change values

2009-10-25 Thread Jules
Put the calculation logic in blur event? $("input[type='text']:order").blur(function(){ $('#total_buyed').val( v * 2.75 ); }) On Oct 26, 4:18 am, ReynierPM wrote: > Hi every: > I have this function: > > $("input[type='text']:order").keyup(function() { >      var v = $(this).val().replace(/\D/g,

[jQuery] Re: cluetip memory leak

2009-10-25 Thread Andrew Tan
The memory is released when you refresh the page. However, the users of my web app will be using the same page for 8+ hours a day and the page will most likely not be refreshed since all the updates are displayed and retrieved via ajax and jquery.

[jQuery] Re: ClueTip focus/blur trouble

2009-10-25 Thread Karl Swedberg
Hi Shawn, Here is what I'd probably do: After you call $this.cluetip( ...), unbind the blur event: $this.unbind('blur.cluetip'); Then you can handle the closing of the clueTip however you want using $ (document).trigger('hideCluetip'); Maybe something like this: $('#cluetip').hover(functio

[jQuery] Re: cluetip memory leak

2009-10-25 Thread Karl Swedberg
Wow, I wasn't aware of this memory leak at all. Thanks for bringing it to my attention. I had no idea that storing the current element in a variable would cause a leak. That's a really common thing to do in jQuery plugins. I wonder if the memory issue has been encountered in other plugins a

[jQuery] Re: Bringing arrows for Clue tip

2009-10-25 Thread Karl Swedberg
Is this really the link you're using in your html? Click to get Clue Tip If so, you shouldn't be getting the cluetip at all, since you're using 'a.cluetip' as your selector. The arrows are images referenced in the jquery.cluetip.css stylesheet. If you don't have those images in the image

[jQuery] Superfish ?

2009-10-25 Thread DRS
Im newbie... trying to implement Superfish vertical menu with Wordpress. Have working, kind of... shows the whole menu structure, just not indicator arrows. Paths all ok in css. May be related... What is "Hover Class?" Default is set to "sfHover." .. i assume i need to change something in WP bu

[jQuery] Re: How to know which button is clicked

2009-10-25 Thread Jules
Use a variable? var buttonClicked = ''; $("#delete").click(function(){ buttonClicked ='delete'; . }) $("#view").click(function(){ buttonClicked ='view'; . }) submitHandler: function(form) { if(buttonClicked == 'delete') {//do delete} else if (buttonClicked == 'view') {//do v

[jQuery] Re: How to select some but not all elements

2009-10-25 Thread breadwild
Thanks! That got me on the right path, Leonardo. Ended up making each background a different color: var colors = new Array("#FC9596","#AF79BB","#A5C0DA","#D2E746"); $("#menuh li.top > a").each(function (i) { $(this).css("background-color",colors[i]); }); On Oct 25, 5:20 pm, Leona

[jQuery] Re: Superfish - arrows & top menu width

2009-10-25 Thread Charlie
if you look at element widths in css there are no explicit widths set. Default sizing is established by padding on tags arrows are absolute positioned so setting width to   tags might  help. Per your first line, it's all about css Bruce A wrote: Apologies if this is a css issue and I am

[jQuery] Re: clueTip display inconsistently

2009-10-25 Thread Karl Swedberg
You're selecting only the third link with class="jt": $('a.jt:eq(2)') If you want all of them to show the cluetip on hover, remove the :eq(2) part of the selector: $('a.jt') --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 23, 2009, at 5:19 PM, wen

[jQuery] Re: show/hide problem

2009-10-25 Thread Jules
If a.more is a child of the div, use this code. $(document).ready(function() { $("div.featured-cell-padding").mouseenter(function(){ $(this).find("a.more").show(); }); $("div.featured-cell-padding").mouseleave(function(){ $(this).find("a

[jQuery] Re: How to select some but not all elements

2009-10-25 Thread Leonardo K
$('#menu li.top > a').css('background-color', 'tan'); The selector is just like CSS. On Sun, Oct 25, 2009 at 10:25, breadwild wrote: > > Hello, > > I'm building a nested menu where I want to add background colors only > to top menu items. I can't change the generated code, so I have to > live w

[jQuery] Bringing arrows for Clue tip

2009-10-25 Thread Bharanidharan
Hi All, I am trying to bring arrows for the clue tip which i am using for my web site. Even though i have given "arrows: true" in my js, i am not getting the arrows. Please see below for the code i used and give me your suggestions. My js code : jQuery('a.clueTip').each(function(){

[jQuery] Jeditable and other plugin question

2009-10-25 Thread rs
Hi everyone. I'm a bit of a noob, so please excuse the question! I have a site I'm building that loads a lot of other html files into different divs, depending on buttons you press. Pretty basic stuff... Anyways, I can't seem to get Jeditable and a few other jquery functions to happen in any of

[jQuery] Using other UI Libraries?

2009-10-25 Thread The Social Hacker
Hello All, Yes. well this is the Jquery group, but i'd figure i'd ask if anyone uses any other UI libraries outside of jquery's UI? I'm currently a server-side coder (doing all my work in php/perl) - but would like to venture out in to the front end. What libraries do people use? Is it just jq

[jQuery] Superfish - arrows & top menu width

2009-10-25 Thread Bruce A
Apologies if this is a css issue and I am barking up the wrong tree... It seems to me that the arrows which are added create an additional width on the menu elements. I would like to specify a fixed width for the top elements in my menu. It appears that the arrows are added automagically by the

[jQuery] How to select some but not all elements

2009-10-25 Thread breadwild
Hello, I'm building a nested menu where I want to add background colors only to top menu items. I can't change the generated code, so I have to live with the id's and classes as is. Relatively new to jQuery so still not used to filtering my selections carefully—is seems to grab everything. Anywa

[jQuery] Prevent key to change values

2009-10-25 Thread ReynierPM
Hi every: I have this function: $("input[type='text']:order").keyup(function() { var v = $(this).val().replace(/\D/g,''); // removes non numbers $('#total_buyed').val( v * 2.75 ); }); The function is working correctly but when I press any key the same operation is calculated. How to a

[jQuery] Re: Trying to add targetTouches to jQuery event objects

2009-10-25 Thread dinoboff
Oops... It's working with: $.each(['touches', 'targetTouches'], function(i, propName){ if ( $.inArray(propName, $.event.props) < 0 ) { $.event.props.push(propName); } }); I had the inArray signature wrong and inArray returns the index or -1. On Oct 24, 8:36 p

[jQuery] center popup scroll/resize probs

2009-10-25 Thread Daniel Donaldson
So I have a modal popup that is working fairly well, but I have some issues in IE/FF (the only browsers I've tested in so far). One thing is that the popup won't recenter if the browser is resized. The other prob is a bit more difficult to replicate, but I've noticed if my browser window is size