I was using the parent.showMessage() function in ExtJS 3.0 and it appears to be gone or at least not work in 4.0. Does anyone know what can be used as a replacement that would display a message window for a short time and then automatically disappears?
Announcement
Collapse
No announcement yet.
parent.showMessage()
Collapse
X
-
I tired both suggestions and neither appear to work. I tried Valence.util.showMessage and nothing comes up on the screen. Valence.util.msg generates the undefined error.
Ext.Msg.alert displays the message on the screen, but you have to click okay to get it to go away. The Ext.Function.defer generates an error saying that Ext.Function is not defined. I double checked to make sure I was running this under the new 3.0 beta and I am. The ExtJS 4.0 docs show Ext.Function as valid, I'm not sure why this is not picking this up.
Comment
-
Valence.util.msg should work as it is already used in the new Settings program. It is used like below:
Code:Valence.util.msg(vmsg.settingsSavedSuccessfully,'');
Be sure that you are including:
Code:<script type="text/javascript" src="/vvresources/valence-extjs4.js"></script>
Comment
-
I finally had a chance to try out theCode:Valence.util.msg(vmsg.settingsSavedSuccessfully,'');
Comment
Comment