Andy,

>You might recall that my company is having some issues with using jQuery
>alongside SWFObject and select dropdowns with the onChange handler.
>
>I've seen a plugin that uses jQuery to call the SWFObject js file. But I'm
>wondering if anyone has a PURE jQuery solution for the IE "click to
>activate" issue.
>
>I'm not talking about using jQuery to load in something else, I'm talking
>about a pure jQuery plugin which resolves this issue.
>
>Anyone?

This is untested, but something like this should work:

// only do this if it's IE
if( $.browser.msie )
        $("embed object")
                .each( function (){ 
                        // get the current item
                        var o = $(this);
                        // make a copy after the original
                        o.after(o.html()); 
                } )
                // remove the original
                .remove();

This should just take any embed/object tag, make a copy of it after the
current tag and then remove the original. 

As long as the embed/object tag is written via scripting, the "click to
activate" issue should go away.

-Dan

Reply via email to