View Full Version : what's the problem with MessageBox

24 Apr 2012, 5:15 AM
i run into something really weird.

I want to launch a prompt messageBox from my controller.

i is correctly displayed when i create it from my controller init method. but it shows as kind of blue box without any content when it is created from an handler declared in my controller's control method.

I guess i miss something big but it makes me crazy.
Thanks for your help and feel free to redirect me.

24 Apr 2012, 9:14 AM
I'm guessing this could be a lifecycle/timing problem, but it's hard to say without seeing code.

What are you trying to accomplish?

24 Apr 2012, 10:52 AM
I'd suggest opening up a java script console, when your previewing your application, and seeing if any errors are thrown, I've seen this happen when there's been a typo in a property, which gives you an undefined error, which will escape that function. e.g. one of your Option parameters may have a typo.

25 Apr 2012, 12:03 AM
it's linked to the event i attached the handler to. Failed with until afterrender event. Succeed with the activate event.
I guess it's a newbie mistake but i don't understand why. A messagebox is rendered inside the body not the container from which it is launched if i refer to the generated html code.

i would be happy to understand why. Any hints would be appreciated. Tanks.