Hi! Is there a beautiful synchron Popup in extjs, to replace the standard Popup(alert("xyz")) ?
http://www.extjs.com/deploy/dev/examples/message-box/msg-box.html
I don't know about beautiful, but thats extjs's modal dialog.
Do you really mean ‘synchronous’, or are you just using it to mean the kind of in-page pop-up element that is sometimes (misleadingly) called ‘modal’?
Because if you really need truly synchronous dialogue boxes, that return a result in the same thread of execution they were called, you only have:
- the built-in
alert()
andconfirm()
boxes; - a seperate
showModalDialog()
window (IE extension, to be standardised by HTML5)
These are both generally undesirable because, being synchronous, they hang up the whole user interface in most browsers. showModalDialog
is usually considered especially offensive.
You should replace them with asynchronous dialogue boxes that return results via a callback (such as the message-boxes linked by Erik), wherever possible.