PDA

View Full Version : page ready - are sections on the page ready too?



murali_mepath
2013-12-28, 22:20
hi,

Does the page ready event fire after all the sections and other gadgets on the page are ready? If yes then would the page ready event be a good place to set some initial values of the gadgets? For example I want to hide some gadgets, and I want to set the URL property of couple of webview gadgets etc.

Thanks & Regards,
Murali

murali_mepath
2013-12-29, 05:47
hi,

I tried a little experiment and put a few sections on the page. One of the canvas sections has a webview gadget on it. And in the "Ready" event of the page, sections and the gadget I put in a single line to write to the log. The result I got was

Sun 29. Dec 18:45:01 2013 - Info - Page is ready!
Sun 29. Dec 18:45:01 2013 - Info - Form Section is ready!
Sun 29. Dec 18:45:01 2013 - Info - Canvas Section is ready!
Sun 29. Dec 18:45:01 2013 - Info - Webview Section is ready!

So I guess the page gets ready before the sections are ready. So perhaps not a good idea to mess around with the sections in the page ready delegate :-) Thanks anyway.

Cheers,
Murali