Re: [jQuery] Slide down / Slide up, stop repeating
On Mon, Mar 1, 2010 at 11:35 AM, Paul Collins pauldcoll...@gmail.com wrote: My problem is that if someone hovers over the .content multiple times, the JQuery remembers and keeps popping the menu up and down From http://api.jquery.com/stop/: We can create a nice fade effect without the common problem of multiple queued animations by adding .stop(true, true) to the chain: $('#hoverme-stop-2').hover(function() { $(this).find('img').stop(true, true).fadeOut(); }, function() { $(this).find('img').stop(true, true).fadeIn(); }); I don't like how this jerks the in animation to its end then starts the out animation - it would be nice if it would freeze the in animation and start the out animation from there but things get messed up with jumpToEnd (the second param) set to false. Nathan
[jQuery] Get the previous element matching a class
Hi, I would like to have the previous TD element with class time. I tried : $(this).closest('td').prev('td.time').html() (where this is a div element inside a TD) But it only works for a div inside a TD that is *directly* following the td.time element. See the code below: my jquery selector above is only working for the div's inside td class=lun01032010 (where the latter is directly following td.time element), not for the div's inside td class=mar02032010 td class=time 8am /td td class=lun01032010 div class=quarter daylun /div div class=quarter daylun /div div class=quarter daylun /div div class=quarter daylun /div /td td class=mar02032010 div class=quarter daymar /div div class=quarter daymar /div div class=quarter daymar /div div class=quarter daymar /div /td Thank you for any help. мэтт -- View this message in context: http://old.nabble.com/Get-the-previous-element-matching-a-class-tp27757091s27240p27757091.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Newbie Question: Finding and manipulating an element
Aaron, Not sure if you caught it, but I screwed up some quotes in my code snippet (stupid iphone). It should be: $('ul.foo li ul').addClass(bar); On Mar 1, 9:25 am, Aaron Johnson aaron.mw.john...@gmail.com wrote: Greg, Nathan, Thanks very much for your help! On 1 March 2010 14:58, Nathan Klatt n8kl...@gmail.com wrote: On Mon, Mar 1, 2010 at 5:06 AM, Aaron Johnson aaron.mw.john...@gmail.com wrote: The top level list has an ID and associated css, I'd like to add a class to each of the nested ul elements in order to style them differently. I cannot manually add a class so wondered if I could do it with jQuery. I'm looking for a result like this: ul class=foo lia title=Announcements1 href=foo.htmlspan class=portal-navigation-labelHome/span/a ul class=bar If all of the inner uls are styled the same you don't need a class, just add a rule to your css: ul.foo li ul { /* style stuff */ } Nathan
Re: [jQuery] Get the previous element matching a class
On Tue, Mar 2, 2010 at 9:20 AM, debussy007 debussy...@gmail.com wrote: I would like to have the previous TD element with class time. I tried : $(this).closest('td').prev('td.time').html() (where this is a div element inside a TD) But it only works for a div inside a TD that is *directly* following the td.time element. Yeah, prev only gets the immediately preceding sibling; prevAll gets all previous siblings so I think you want something like this: $(this).closest('td').prevAll('td.time').last().html() Nathan
[jQuery] What I need to know?
Is it possible with jQuery to update a database / call a stored procedure when I update an Input box that represents Quantity of an item? I am using vanilla ASP and have not used jQuery in a while. Because it is a wish list with line-items of quantity and being able to submit one line to the cart for purchase... etc I am running into many challenges..
Re: [jQuery] What I need to know?
On Tue, Mar 2, 2010 at 3:31 PM, Danjojo dlcac...@gmail.com wrote: Is it possible with jQuery to update a database / call a stored procedure when I update an Input box that represents Quantity of an item? http://api.jquery.com/category/ajax/ There are some AJAX tutorials targeting jQuery use linked to here: http://docs.jquery.com/Tutorials
[jQuery] VALIDATE
Hi Jörn Zaefferer, Is there any reason validator Plugin not supporting validate multiple form fields with identical names Is there any way to validate Identical Names Fields? Thanks Amarjeet
[jQuery] Nested Tab call function on tab select help
I'm fairly new to jQuery and don't understand exactly why this isn't working. I bind the tabsselect to one of my nested tabs hoping it will execute that function, though I do not get any errors with firebug and it doesn't work. Can anyone clue me into what I'm doing wrong? Thanks! Jonathan script portion: $(function () { // Make main set of tabs $('#tabs').tabs({ fx: { opacity: 'toggle' } }); $('#nested-tabs').tabs({ fx: { opacity: 'toggle' } }); $('#nested-tab-1').bind('tabsselect', function(event, ui){ alert(Tab was pressed); }); }); # html portion ### div id=tabs-4 class=ui-tabs-hide div id=nested-tabs class=ui-tabs ul lia href=#nested-tab-1Radar/a/li lia href=#nested-tab-2Satellite/a/li /ul div id=nested-tab-1img src = http://radar.weather.gov/ ridge/lite/N0R/RTX_loop.gif/div div id=nested-tab-2img src = http://radar.weather.gov/ ridge/lite/N0R/RTX_loop.gif/div /div /div!-- End tabs-4 --
[jQuery] treeview - prevent expand/collapse on node click
Hi, I want to prevent expand/collapse behavior when clicking on a node (folder) in the tree. I only want to expand/collapse when clicking on the plus/minus sign (+/-). I have tried to use stopPropagation on the click event but I don't get it to work. Any sugestions? Thanks Andreas