开发者

JQuery dialog is not displayed with ajax in the IE

开发者 https://www.devze.com 2023-03-26 16:00 出处:网络
$(\'#package\').sSelect().change(function(){ $.ajax({ url: \'scripts/change_script.php\', type: \'POST\',
$('#package').sSelect().change(function(){


                $.ajax({
                    url: 'scripts/change_script.php',
                    type: 'POST',
                    dataType: 'json',
                    data:{account_id:2},
                    beforeSend: function() {
                        $( "#wait_dialog" ).dialog( "open" );
                    },
                    success: function(data) {
                        if(data.success)
                        {
                            location.reload();
                        }
                        else
                        {

                        }
                    }
                });

                return false;
            });

this code work with Firefox, chrome but dialog is not display开发者_如何学运维ed for IE. can anybody help me?


hi if you are using jquery 1.4.2 this SO question jQuery ajaxSetup beforeSend not executing in IE8 might be of interest to you.

0

精彩评论

暂无评论...
验证码 换一张
取 消