[jQuery] Re: slideUp() does not make animation before remove() occurs

2009-05-13 Thread hjb
and instead of parents - you should be using closest('.item- container') On May 13, 2:45 pm, hjb wrote: > I'll have a go: > > function removeChekbox(data) > { >     $.each(data, function(i, val) >     { >         $('input[value="'+val+&

[jQuery] Re: slideUp() does not make animation before remove() occurs

2009-05-13 Thread hjb
I'll have a go: function removeChekbox(data) { $.each(data, function(i, val) { $('input[value="'+val+'"]').parents(".item-container").fadeTo ("slow", 0, function() { $(this).slideUp(500, function() { $(this).remove(); }

[jQuery] Re: Protect page which loaded by $.ajax

2009-04-25 Thread hjb
When the first page is requested create a token, save it to a database and send it sent as a javascript variable. When you use ajax, use POST not GET and send the token back with the ajax request. Check the token exists in the database, if it does then delete it and send the ajax page back. The s

[jQuery] Re: code review for short snippet

2009-04-05 Thread hjb
Excellent use of trigger to fire the function once on page load > Yes, yes, you are correct. I am outputting the javascript from php, > which was interpreting $epc because the inline string was wrapped in > double quotes. I reversed everything (using double quotes internally) > and now the varia