0

Post render - execute JS after all is rendered

asked 2009-04-14 21:44:56 +0800

versionfourx gravatar image versionfourx
99 2

updated 2009-04-14 21:49:29 +0800

Scenario:
1) Load a new tab dynamically (ajax)
2) That tab has a border layout
3) Each panel is loaded via <include...> ajax (West and Center)

Question?:
How can I configure it such that only after the tab is finished loading/rendering the tab/borderlayout to execute javascript function B();

Problem:
B paints new objects in the Center panel but the sizing gets messed up if it paints too early with the border layout not yet rendered? works fine if its all done rendering by clicking a button to physically execute B.

Thank you

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-04-14 22:15:01 +0800

versionfourx gravatar image versionfourx
99 2

Went ahead and simply used the javascript setTimeout method.

If anyone has a better solution, that'd be great. Thank you

link publish delete flag offensive edit

answered 2009-04-21 02:46:37 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Considering use Events.echoEvent() (fire an event back to server after current event cycle; i.e. simulate the "clicking a button" etc.)

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2009-04-14 21:44:56 +0800

Seen: 337 times

Last updated: Apr 21 '09

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