jquery-callback Questions

7

Solved

Let's say I have three divs, and I'd like each to animate once the previous one is done. Currently, I write this: $('div1').fadeOut('slow', function() { $('div2').fadeOut('slow', function() { $(...
Nerland asked 29/4, 2012 at 6:50

2

Solved

i m building a little script to animate a list. Here is my html structure: <ul> <li class="slider"> Item-1 </li> <li class="slider"> Item-2 </li> <li class="sli...
Shantelleshantha asked 17/4, 2012 at 0:39

2

Solved

If you select a class or collection of elements to animate with jQuery: $('.myElems').animate({....}); And then also use the callback function, you end up with a lot of unneccessary animate() ca...
Rubierubiginous asked 9/1, 2012 at 18:24

4

Solved

Javascript code, using jQuery 1.7: $( function() { $.get('/ajax_dummy', function() { alert('foo'); }) }); With Firebug I can see that the HTTP GET request is sent and a "hello world" response ...
Wow asked 14/12, 2011 at 18:9

2

Solved

I'm writing a jQuery plugin that "points at" a certain number of nodes in the DOM. Yet if I try something like having my plugin hold references to a set of nodes, I worry about them going "stale". ...
Cyanotype asked 22/11, 2011 at 0:16

1

Solved

I am using jQuery "GET" in a loop to obtain several results from the server. I want to include the loop index as a fixed parameter to the call back but its not working. (I followed the advic...
Wist asked 8/8, 2011 at 7:23

2

Solved

I am having a tough time conceptualizing what exactly callbacks or hooks are in jQuery. They seem to be lumped together, but I don't know the difference between them. From what I understand from o...
Peplos asked 18/7, 2011 at 15:21

3

Solved

$('.myElem').live('click', function() { $(this).hide(500, function() { $(this).siblings('.myOtherElem').show(); }); }); The above doesn't work because $(this) is no longer in correct scope in ...

2

Solved

I'm writing a jQuery plug-in so I can reuse this code in many places as it is a very well used piece of code, the code itself adds a new line to a table which has been cloned from a hidden row, it ...
Ninette asked 28/5, 2010 at 10:22

2

Solved

I'm writing a little jQuery component that animates in response to button presses and also should go automatically as well. I was just wondering if this function recursive or not, I can't quite wor...
Foodstuff asked 24/4, 2010 at 17:2

© 2022 - 2024 — McMap. All rights reserved.