Hello All,
I am using modal confirmation dialog box as shown in the below link
1 ) This works fine for me in Firefox and Chrome browser. However, when I test this on Internet explorer 9.
The modal dialog come at 'Left Top' position and in other browser
By Default it is coming to Center psotion.
I have tries using position atrribute. But still result is same.
Why this is so ??
2) When modal dialog box is opened I am
ABLE to click other buttons OR links. How can i disable this ? ho can i set the opacity for the dialog box.
- Below is my code..
- function myfunction(msg,btn) {
- $('head').append('<link rel="stylesheet" href="CSS/jquery-ui.1.10.4.css"/>');
- $('<div style="width:auto;height:auto;display:inline-block;">'+ msg +'</div>').dialog({
- resizable: false,
- height: 200,
- modal: true,
- title: '<%=strConfirmTitle%>',
- position: "center",
- buttons:
- {
- '<%=str%>': function ()
- {
- $(this).dialog("close");
- __doPostBack(btn,'');
- },
-
- "Cancel": function ()
- {
- $(this).dialog("close");
-
- }
- }
- });
- }