Control embedded widgets through jQuery
-
wrote on 18 May 2011, 10:40 last edited by
Hi there,
I can set the size of a widget through jQuery command
@
$( "#MyWidget" ).css({width: "320px",height: "147px"})
@MyWidget gets a resizeEvent and I can repaint the widget with the new size.
Is there a way to get events for other commands for animated effects like .slideUp, .fadeIn or .animate?
Thanks in advance
[EDIT: code formatting, please wrap in @-tags, Volker]
-
wrote on 18 May 2011, 12:53 last edited by
In my opinion: it should be the same, I think, but in other events, slideUp should call also resizeEvent(...), fadeIn(...) should call painEvent(...) and animate should call some especially method/event which has to do that required work...
-
wrote on 18 May 2011, 13:08 last edited by
I get the resizeEvent with slideUp only once and without the transition time. So I can't do some effects.
Do you know which special methods/events are called by .animate? -
wrote on 18 May 2011, 13:24 last edited by
You should use QTimer :), in jQuery.animate(...) or all these UI functions works on timers :) ...
3/4