Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Dynamic pages

2007-07-17
2013-03-26
  • Hello,

    I've noticed a trouble when dynamic pages charge with Internet Explorer 7.

    Navigator waits indefinitely one element.

    The solution what I found is to do jActivating more patient. I explain this:

    Surround the automatic execution with a 'function':

    function embeddedContentPatient()
    {
        // Execute script only for Internet Explorer and Opera (9+)
        if(document.attachEvent)
        {
            if(window.opera)
            {
                document.attachEvent("DOMContentLoaded", jActivating.reinsertContent);
            }
            else
            {
                jActivating.reinsertContent();
            }
        }
    }

    And then, I write the call when all elements of the page are charged:

    <body onLoad="embeddedContentPatient()" ...>

    And now, I go to eat a great sandwich (je,je). Best regards,

     
    • Don Raspu
      Don Raspu
      2007-08-02

      Hi!

      Since version 1.1.0 i rejected the "onload" event, because it has problems when uses video files (for example quicktime movies). But if you don't use video files could surround the automatic execution with this:

      /** Disable this code block--
      // Execute script only for Internet Explorer and Opera (9+)
      if(document.attachEvent)
      {
      if(window.opera)
      {
      document.attachEvent("DOMContentLoaded", jActivating.reinsertContent);
      }
      else
      {
      jActivating.reinsertContent();
      }
      }
      }
      **/
      window.onload = jActivating.reinsertContent;

      pd: sorry, i don't speak english :P