A 3rd party has messed up my jQuery show hide slide

I implemented a rather elegant in it’s simplicity show hide slide that my company has been using for awhile. Enter 3rd party technology company that works on solutions for the parent company. They are implementing something they call Lazy Loading & have broken the jQuery slide, but only in IE not FF.

In an email one of the 3rd party developers outlined why he thought the slide doesn’t happen in IE. Except he was wrong. After upgrading to the 53k jquery [FONT=&quot]1.3.1-min the slide is still broken in IE.

This is what he wrote regarding why he thought jquery 1.3.1 would fix what he broke.

[/FONT] "One issue I am seeing with the LazyLoading is with the JQuery bindReady()
event in Internet Explorer. Essentially, you’re never going to slide the

  • down in IE. The version of Jquery currently in use uses a neat*
    little hack to trigger an onload event in IE:

  • // Only works if you document.write() it*

  • document.write("<scr" + "ipt id=__ie_init defer=true " +*

  • “src=//:></script>”);*

  • // Use the defer script hack*
    var script = document.getElementById("__ie_init");

  • // script does not exist if jQuery is loaded dynamically*
    if ( script )
    script.onreadystatechange = function() {
    if ( this.readyState != “complete” ) return;
    jQuery.ready();
    };

The comment about it only working if you document.write() it kind of sums
up our problem. Since we’ve overridden document.write() to load the file
the readystate of the script never changes.

Newer versions of jQuery use the availability of the ScrollBar to detect
whether the page is loaded. Perhaps that could be patched into this
version? If not, the code jQuery uses to handle Safari’s onload event
looks like it would work but I have not tested."