Book a Demo

Author Topic: DisplayToc.js error  (Read 2274 times)

Marcelo Desenvolvedores

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
DisplayToc.js error
« on: June 02, 2011, 09:50:23 pm »
Hi :)

When I generate the HTML Report for publish the documentation, I receive the error listed bellow

[original] (portuguese)

Detalhes dos erros da página da Web

Agente de Usuário: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322)
Carimbo de data/hora: Thu, 26 May 2011 11:14:22 UTC


Mensagem: 'undefined' é nulo ou não é um objeto
Linha: 177
Caractere: 2
Código: 0
URI: file:///Z:/erp.net/doc/projeto/uml/js/displayToc.js
[/original]

[english]
Web page detail error

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322)
Date/Time: Thu, 26 May 2011 11:14:22 UTC


Message: 'undefined' is null or not an object
Line: 177
Column: 2
Code: 0
URI: file:///Z:/erp.net/doc/projeto/uml/js/displayToc.js
[/english]


piece of code where error occurred

line       preload.id="Preload";

Code: [Select]
function initPreLoad(content) {

      var preload=document.getElementById('IndexHeader').parentNode.insertBefore(document.createElement('div'), document.getElementById('IndexHeader').nextSibling);
      preload.id="Preload";
      preload.appendChild(document.createElement('p'));
      preload.firstChild.appendChild(document.createTextNode("Loading..."));

      if (browser=="ie_old") return;

      if (browser=="ie6"||browser=="ie7")
            changeCSS('#Preload','height',top.document.body.clientHeight-67+'px','this');
      else
            changeCSS('#Preload','height',top.innerHeight-67+'px','this');

      for (var i=0; i<preloadIcons.length; i++) {
            icon[preloadIcons[i]]=new Image();
            icon[preloadIcons[i]].src="images/"+preloadIcons[i]+".png";
      }


I'm using EA7 , IE8 Windows XP

Sorry my english.

Best Regards