问题在IE中添加效果到jquery消息框时 [英] problem IN IE when adding effects to jquery message box

查看:73
本文介绍了问题在IE中添加效果到jquery消息框时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

heyy ..



我正在使用jquery消息框,因为我传递了两个参数1.消息2.后消息焦点控制。



当我在消息框中添加效果时(显示:爆炸,隐藏:幻灯片)。在Mozila firefox中工作正常但在IE中无法正常工作(关闭消息框后,背景淡化没有消失......)



这里是我的消息箱代码 -



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 -

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();
              }

          }

        }




    });


}







它在UI中调用 -








And it call in UI like -


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('');
            }
        }
    }



}







你能解决这个问题......在IE中




can you solve this issue...in IE

推荐答案

#modal_dialog)。text(Messgae);
("#modal_dialog").text(Messgae);


#modal_dialog)。dialog({
show:' explode' // blind,slide,explode,drop
隐藏:' slide' // 盲目,幻灯片,爆炸,掉落
title:' Eastern'
position:' center'

open:function( event ,ui){
("#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
按钮:{
关闭:function(){
//
(".ui-dialog-titlebar-close").hide(); }, closeOnEscape: false, modal: true, buttons: { Close: function() { //


这篇关于问题在IE中添加效果到jquery消息框时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆