View Full Version : How to place a text in extjs

8 Sep 2010, 10:08 AM

I want to place some text in as a msg to the user, how can I do this in extjs, what is the component I can use for this.

Thanks in advance

8 Sep 2010, 11:32 AM
Ext.MessageBox.alert('your title', 'your message');

8 Sep 2010, 6:42 PM
Ext.MessageBox.alert('your title', 'your message');


Thanks for the reply, this comes as an alert box, I want to put a message in the browser, but not as an alert box, how can I do this?


8 Sep 2010, 6:51 PM
What do you meanly "message in the browser"?

8 Sep 2010, 6:55 PM
I need to show a piece of message, like "Dear user, you logged in as a administrator". Not as a alert box, it should stick as a message at the top of the page, or after the logo.


8 Sep 2010, 7:04 PM
So you are lookimg to Inject some HTML? That can be done with generic JavaScript. The ExtJS API has a lot of dom management utils to make that much easier. Have you tried looking at the API doc?

9 Sep 2010, 2:04 AM
say yoy have a container x
Inside the items config of x you shud have an item which says

html:'whatever html you want to put in'

9 Sep 2010, 3:27 AM
I think you're still being too vague.

9 Sep 2010, 5:08 AM
I think the OP is here at random, and not an ExtJS developer.

9 Sep 2010, 9:46 AM
I think the OP is here at random, and not an ExtJS developer.

I think so too. :(

9 Sep 2010, 1:41 PM
<h1>Message to the user</h1>
will be shown in browser