Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
heyy..

I am using jquery message box in that I pass two parameter 1. the Message 2. the after message focus control.

When I add effects to the message box (show : "explode" , hide : "slide") .It works fine in Mozila firefox but not work in IE( after close the message box the background fade is not gone...)

here is my messagebox code -

C#
function MessageBox(Messgae,FocusingControl) {
 $("#modal_dialog").text(Messgae);

    $("#modal_dialog").dialog({
     show   : 'explode',//blind,slide,explode,drop
       hide : 'slide',//blind,slide,explode,drop
        title: 'Eastern',
        position: 'center',

        open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
        closeOnEscape: false,
       modal: true,
        buttons: {
            Close: function() {
            //$('#equipementIDN_direct').focus();
                $(this).dialog('close');
              if(FocusingControl!='')
              {
                 FocusingControl.focus();
              }

          }

        }




    });


}



And it call in UI like -


C#
function ValidateTelephoneNumber() {

    var a = $("input[attr-identity=txtPhone]").val();
    if (a.charAt(0) == "0") {
        if (a.charAt(1) == "0") {
            if (a.charAt(2) == "0") {
                 MessageBox("Given Contact number format is not correct", $("input[attr-identity=txtPhone]"));
                //MessageBox("Given Contact number format is not correct");
                $("input[attr-identity=txtPhone]").val('');
            }
        }
    }



}



can you solve this issue...in IE
Posted

use another browser and check it once....
some times IE doenot support this....
otherwise download latest version of IE
 
Share this answer
 
Comments
aravindnass 5-Jul-13 2:14am    
Our client wants in IE8 , Is there is any solution .....???
aravindnass 5-Jul-13 2:17am    
it makes problem when show: "explode", hide: "slide" property add to the message box function ....
Please check this post. It may help you http://forum.jquery.com/topic/jquery-ui-does-not-work-on-ie9[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900