开发者

jqModal / jquery and IE7 - invalid property value error

开发者 https://www.devze.com 2023-01-15 22:09 出处:网络
I am getting a weird \"invalid property value error\" which only happens in IE7. This is my code: showTypes = function(id,projNum,flag) {

I am getting a weird "invalid property value error" which only happens in IE7. This is my code:

 showTypes = function(id,projNum,flag) {
    formData = 'vw=bla开发者_运维知识库h&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 );
        }
    });
}

it breaks on $('#jqmText').html(result); any help?

UPDATE: it looks like IE7 does not like one of the following:

$('#blah-9').attr('disabled', true);
$('#blah-9').css('color','grey');


wow. IE7 does not like grey, replaced it with #CCC and it worked .


Did you try adding this to your ajax parameters?

dataType: "html"

Since I don't know what you are returning its hard to test.


You need to define the jqmShow() function. Modern browsers just ignore that line, but IE7 is trying like mad to run it and can't find it anywhere.

0

精彩评论

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

关注公众号