PDA

View Full Version : Ext.Msg.alert with 4 buttons



alupuli
24 Feb 2010, 3:43 AM
Ext.Msg.alert('Success', Added to your List');
is showing all four buttons.

see the screenshot.
what can be wrong here.


edit thread:

getting an error "'null' is null or not an object" in line below
sh = Ext.get(Ext.DomHelper.insertHtml("beforeBegin", document.body.firstChild, markup));

line 15985.
in
Ext.Shadow.Pool = function(){

wm003
24 Feb 2010, 3:59 AM
Are you sure that line of code produces the given screenshot? the screenshot contains some part of progressbar :-/ in addition to the 4 buttons

Are you using current Ext 3.1.1? Could you provide a working testpage for further investigation

alupuli
24 Feb 2010, 4:02 AM
thanks for reply.

I noticed there is a js error.

getting an error "'null' is null or not an object" in line below
sh = Ext.get(Ext.DomHelper.insertHtml("beforeBegin", document.body.firstChild, markup));

line 15985.
in
Ext.Shadow.Pool = function(){

I am using
Ext JS Library 3.0.0

wm003
24 Feb 2010, 4:10 AM
when is the Ext.msg.alert being called? The usual way within Ext.onready (i hope so).


otherwise i guess you are calling it before the html page has finished loading (thus the body is not available)

Please provide a full little testpage, the mistake should lie somewhere else than within the Message-function. Beside that i strongly recommend you use the current Ext 3.1.1. Many things have been fixed since Ext 3.0.0