Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    help question IE Header Script Error

    I just noticed this error appears on my website header. Above the logo. It shows something like this,

    %3Cscript id='__ie_onload' defer='defer'%3E%3C/script%3E

    I think it was caused by the Simple Google Analytics mod. Please help me fix this if anyone know this error. It only appears on IE.

    I found the code in this directory:

    /jscript/jscript_googleanalytics_outgoing.php

    Line #59 : document.write("%3Cscript id='__ie_onload' defer='defer'%3E%3C/script%3E");

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: IE Header Script Error

    Where is this?

  3. #3
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default Re: IE Header Script Error

    Sorry, it is actually in the Google Analytics by Andrew mod. You can find it in GoogleAnalytics\includes\templates\YOUR_TEMPLATE\jscript\jscript_googleanalytics _outgoing.php

    PHP Code:
    document.write("<script id=__ie_onload defer><\/script>"); 
    I think I remember this. I actually changed the code to something like this,

    PHP Code:
    document.write("%3Cscript id='__ie_onload'  defer='defer'%3E%3C/script%3E"); 
    Why I did this? Because it validates the html, meaning 'no error'. But I didn't notice the change causes error to IE.

    So, am I did the right thing about changing the code? Or is it safe if I just remove the whole code in the jscript_googleanalytics_outgoing.php file?

    This code:
    PHP Code:
      /* for Internet Explorer */
      /*@cc_on @*/
      /*@if (@_win32)
        document.write("<script id='__ie_onload' defer='defer'>\/script>");
        var script = document.getElementById("__ie_onload");
        script.onreadystatechange = function() {
          if (this.readyState == "complete") {
            init(); // call the onload handler
          }
        };
        return;
      /*@end @*/ 
    I appreciate your help.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: IE Header Script Error

    I meant your site??

 

 

Similar Threads

  1. Script Error
    By kobra8 in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 1 May 2010, 08:26 PM
  2. Adding script to header is just login page
    By jeking in forum General Questions
    Replies: 5
    Last Post: 9 Apr 2010, 06:25 AM
  3. Java script in header bizarrness!
    By exeter_acres in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Mar 2009, 07:22 PM
  4. java script in header
    By msudrala in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Sep 2008, 08:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg