I have searched for the best notification box to alert users to success / failure / new email / messages / etc that disappears without user interaction, but I can only come up with this one which is pretty common in extjs (below). Does anyone have a better box - I have problems with knowing how to get this one to show up in the bottom right, instead of the top; it's not always "on top" of everything else; sometimes it moves the whole web page, but if I do a postion:absolute it loses it's animation; the one from the QwikiDesktop app is solid, but I'm not smart enough to figure out how to "strip" it.
Thanks!
Deegan
This is the best one I've come up with (from ext.messagebox):
Code:
var msgCt;
function createBox(t, s){
return ['<div class="msg" style="position:absolute;z-index:99;">',
'<div class="x-box-tl"><div class="x-box-tr"><div class="x-box-tc"></div></div></div>',
'<div class="x-box-ml"><div class="x-box-mr"><div class="x-box-mc"><h3>', t, '</h3>', s, '</div></div></div>',
'<div class="x-box-bl"><div class="x-box-br"><div class="x-box-bc"></div></div></div>',
'</div>'].join('');
}
return {
msg : function(title, format){
if(!msgCt){
msgCt = Ext.DomHelper.insertFirst(document.body, {id:'msg-div'}, true);
}
msgCt.alignTo(document, 't-t');
var s = String.format.apply(String, Array.prototype.slice.call(arguments, 1));
var m = Ext.DomHelper.append(msgCt, {html:createBox(title, s)}, true);
m.slideIn('t').pause(1).ghost("t", {remove:true});
},
};