GLOBAL ALERT BOX is developed as we need customized alert boxes all over application. A region created in global page and been referred in dialog box wherever been called.
Step:1: Create region in global page with Static ID.
For Example: alert.
Step:2: For alert box, JQuery Dialog been called.Alert messages can be dynamically changed and customized.
$("#alert").html("Blank row already exists. Hence cannot add row");
// .html() - Dynamically we can change content of region
$("#alert").dialog({modal:true,resizable: false,minHeight: 105,width:380,dialogClass: 'testclass'});
//$("#alert") - Global region referred for dialog.
Output:
You can notice change of message dynamically.
No comments:
Post a Comment