0

How to combine jQuery's .fadeOut with server side .removeChild ?

asked 2014-10-28 08:33:43 +0800

adamian gravatar image adamian
15 4

Hi there,

I'd like to use an animation when deleting a row from a grid (for example using w:onClick="jq(this).closest('tr').fadeOut()"). But if I remove the element simultaneously from the grid with row.getParent().removeChild(row) in a @Listen("onClick = image.deleteLine") function, the animation won't have enough time to do something useful.

What would be the preferred solution? Should I call the Java event listener onClick from JavaScript in the jQuery callback http://api.jquery.com/fadeout/ (complete)?

Thanks,
Andrei

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2014-10-28 08:33:43 +0800

Seen: 8 times

Last updated: Oct 28 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More