Jump to content

ExtJs.animate - problem


Recommended Posts

Hello folks ..


i use "animate" to show detail-information of database records..


if the user clicks on a menupoint or on a database-record - i  load a uniFrame and show panels per:


Show panel :

UniSession.AddJS(sliderpanel.JSName    + '.animate({ duration: 200, to: { x:'+inttostr(x)+', opacity: 100}});');

Hide panel:

UniSession.AddJS(sliderpanel.JSName    + '.animate({ duration: 200, to: { x:'+inttostr(x)+', opacity: 0}});');

if a menupoint will be clicked - first of all i call:

if mainform.aktuelles_anipanel <> '' then UniSession.AddJS(mainform.aktuelles_anipanel + '.stopAnimation();');

Works fine .. BUT if i click in a faster intervall - the extjs.animate-function doesnt response anymore .. i must restart my uniGui-Application..


i think, if i click on a menupoint - the uniframe will be destroyed and a other uniframe is loaded - the extjs.animate-funkction will lost the panel ... 


i made a small captured video .. in the beginning i click "normal" ..  at the end i click a litte bit faster .. and the "animate"-function crashed .. 


Please have a look at:  http://wavi.at/unigui/unigui.html



What can i do? ... any ideas?




Link to comment
Share on other sites

... now i stop the "old" animation and start the new in a "try"


the Network/HandleEvent/Response-Code taken with Chrome-Dev-Tools: 


try{O422.animate({ duration: 200, to: { x:1380, opacity: 0}}) }catch(e){};

but didnt solve my problem :-(


if i "free" the uniframe with the panel (what i want to animate) .. and the animation is still running - the "extjs.animate function" is not responsing anymore ..



ThanX for suggestions

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...