-
23 Apr 2010 4:03 AM #1
confirm message box
confirm message box
Hi all, is there a way to let a messagebox return a value (the selected button) like a native confirm javascipt function ?
I would like to have something like that, is there a way to make it ?
HTML Code:function () { b = Ext.Msg.confirm("","",function () {}); if (b = "yes") return true; return false; }
-
23 Apr 2010 4:38 AM #2
Hello,
u can use this code
Code:Ext.MessageBox.confirm('Confirmation', 'Veuillez confirmez ... ?', confirmFunction); function confirmFunction (btn) { if (btn == 'yes') { // To do } }
-
23 Apr 2010 6:11 AM #3
Hi again,
thanks for your answer, but my need is in my first function, I need to put a confirmation and if this confirmation is yes I return true if not i should return false.
To have a better idea, this is how I could make it the traditional way without ExtJS:
HTML Code:function myfunction() { c = confirm("Are you shure you want to ..."); if(c) return true; return false; }
-
23 Apr 2010 7:04 AM #4


Reply With Quote