jquery Ui-dialog和ie8 [英] jquery Ui-dialog and ie8

查看:155
本文介绍了jquery Ui-dialog和ie8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jquery对话框打开登录表单。它在ff,chrome甚至Ie6,7
上工作正常,但它不适用于ie8。

i'm using a jquery dialog to open a sign in form. it works fine on ff,chrome and even Ie6,7 but it's not working on ie8.

这是我的功能:

function showSignInDialog() {
   var email = GetEmailFromCookie();
   if (!IsNullOrUndefined(email)) {
   $("input[name$='LoginEmail']").val(email);
   $("#chkRememberMe").attr("checked", "checked");
   }
   if (!$('#signInForm').dialog('isOpen')) {
   $('#signInForm').dialog({ bgiframe: true,
                             modal: true,
                             resizable: false,
                             width: 330,
                             title: 'EZtrader Login',
                             buttons: { "Login": doLogin }
                           });
    $('#signInForm').dialog('open');
  }
}

在ie8上我得到一个反应迟钝的脚本,这意味着有某种无限循环。
我尝试调试它,当我尝试打开对话框时,循环发生在jquery-ui js文件中。
i认为它可能与
有关HTML解析错误:在子元素关闭之前无法修改父容器元素(KB927917)我在这里读到的
http://blogs.msdn。 com / ie / archive / 2008/04/23 / what-happen-to-operation-aborted.aspx

on ie8 i get a unresponsive script which means there is an infinite loop of some sort. i tried debugging it and the loop occurs in the jquery-ui js file when i try to open the dialog. i thought maybe it had something to do with "HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)" which i read about here: http://blogs.msdn.com/ie/archive/2008/04/23/what-happened-to-operation-aborted.aspx

并尝试移动脚本块和页面中的对话框但似乎没有任何效果。
请帮忙...

and tried to move the script block and the dialog box around in the page but nothing seem to work. please help...

推荐答案

这似乎是:
http://dev.jqueryui.com/ticket/4758

IE8没有正确处理window.resize函数。您需要根据我的意思调整jquery-ui的本地版本。

IE8's not handling the window.resize function correctly. You'll need to adjust your local version of jquery-ui from what I can tell.

这篇关于jquery Ui-dialog和ie8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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