[jQuery] Re: How to tell if option is selected when it always defaults to first value?

2009-10-25 Thread Giovanni Battista Lenoci
nick ha scritto: select id=one option value=1 selectedone/option option value=2two/option option value=3three/option /select The right syntax is : option value=1 selected=selectedone/option If there is no selected then it always defaults to first value. How can I tell if the

[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

[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 

[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

[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.

[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] 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

[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

[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] 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 breadw...@gmail.com 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

[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(){

[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,

[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 a tags arrows are absolute positioned so setting width to a 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: 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, Leonardo K

[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

[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 but

[jQuery] Re: Bringing arrows for Clue tip

2009-10-25 Thread Karl Swedberg
Is this really the link you're using in your html? a href=#clueTipContentClick to get Clue Tip/a 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

[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

[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:

[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: 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 rper...@uci.cu wrote: Hi every: I have this function: $(input[type='text']:order).keyup(function() {      var v =

[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: 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