I actually think this issue may be related to issue #769:

 

http://dev.jquery.com/ticket/769

 

-Dan

 

  _____  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Benjamin Sterling
Sent: Tuesday, June 12, 2007 5:50 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Weird IE6 issue...

 

You can wrap that code in an if statement looking for ie6.

On 6/12/07, Dan G. Switzer, II <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:


>To make the issue below more clear, I've posted an example of the issue: 
>
>http://www.pengoworks.com/workshop/jquery/ie6_form_fragment_bug.htm
>
>If you run this code in FF or IE7, the checkbox will be checked. However, 
>in
>IE6 the checkbox is not checked--even though as you can see the DOM
>fragment
>that's generated shows the checkbox as being marked as being checked.
>
>I've tested this code with build 1938 ( v1.1.3a) and see the same issue.
>
>Any ideas?

It seems I can work around the issue in IE6 by making the .each() operation
essentially asynchronous:

$("input, select, textarea", oDom) 
        // this will update the value in each field
        .each(
                function (){
                        var field = $(this);
                        setTimeout(
                                function (){ 
                                        field[0].checked = true;
                                }
                                , 0
                        );
                }
        )
        ; 

This seems pretty hackish though...

-Dan




-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com 

Reply via email to