In my previous post (here to view), I've mentioned how to replace Javascript Alert box with CFMessageBox. Here again, to replace Javascript Confirm box with CFMessage.
2 var RandCount = Math.random();
3
4 ColdFusion.MessageBox.create(obj + RandCount, 'confirm', 'CESID', messageText, onfinish, {width:300, modal:true});
5 ColdFusion.MessageBox.show(obj + RandCount);
6}
2 DisplayMessageConfirm('objError', message);
3};
As being confirm box, we always need to implement function and condition as callbackhandler which means to know which button user press (Yes or No). Above my coding, callbackhandler function name is "onfinish". For this function, need to put following JS function in every file we need to put Javascript confirm box.
2 if (btn == "yes"){
3 document.step_3.submit();
4 }
5 }

Android
Top of Page