What happens if you attach the load handler before you insert it into
the document?

--John



On Mon, Jan 19, 2009 at 12:23 PM, grigori <[email protected]> wrote:
>
> Sample:
>
> <html><head>
> <script src="js/jquery-1.3.min.js"></script>
> <script>
> var src="http://www.google.com/intl/en_com/images/logo_plain.png";;
>
> $(function(){
>    window.setTimeout(
>        function mi(){
>            $('<img>').attr('src',src).appendTo('body').load(function()
> { alert ('Not called in IE 6')   });
>        }
>        ,100
>    );
> })
>
> </script>
> </head><body></body></html>
>
> Works in IE7, FireFox, but not in IE 6.
> Is it expectable?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to