代码之家  ›  专栏  ›  技术社区  ›  Kung Fu Ninja

jqModal/jquery和IE7-属性值无效错误

  •  0
  • Kung Fu Ninja  · 技术社区  · 16 年前

     showTypes = function(id,projNum,flag) {
        formData = 'vw=blah&id='+id+'&projNum='+projNum+'&flag='+flag;
    
        $.ajax({
            type: "post",        
            url: "myURL.cfm",
            data: formData,        
            cache: false,       
            success: function(result) { 
                $('#jqmTitle').html('Details for : '+projNum);
                $('#jqmText').html(result);
                $('#jqmTypes').jqmShow();
            },
            error: function(xmlHttpRequest, status, err) {
                confirm('Error!' + err );
            }
        });
    }
    

    有什么帮助吗?

    更新:看起来IE7不喜欢以下情况之一:

    $('#blah-9').attr('disabled', true);
    $('#blah-9').css('color','grey');
    
    3 回复  |  直到 16 年前
        1
  •  1
  •   Kung Fu Ninja    16 年前

    真 的。IE7不喜欢灰色,用#CCC取代了它,它工作了。

        2
  •  0
  •   Jarrett Widman    16 年前

    dataType: "html"
    

    因为我不知道你在说什么,所以很难测试。

        3
  •  0
  •   Adam    16 年前

    您需要定义jqmShow()函数。现代浏览器只是忽略了这一点,但IE7却疯狂地试图运行它,却在任何地方都找不到它。