Book a Demo

Author Topic: Javascript error in Generated HTML report  (Read 3506 times)

spirax

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Javascript error in Generated HTML report
« on: November 14, 2012, 06:58:10 am »
Generating an html report seems to work ok, using default settings.
However when I click the 'View' button, the page does not load. The error is:
Webpage error details

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.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET4.0C; .NET4.0E)
Timestamp: Tue, 13 Nov 2012 19:46:59 UTC

Message: 'undefined' is null or not an object

Line: 366
Char: 2
Code: 0
URI: file://<path to output dir>/js/displayToc.js

Using IE8 dev tools, this is what I see (lines 365 - 366)
function initPreLoad(content)
{
      var preload = document.getElementById('IndexHeader').parentNode.insertBefore(document.createElement('div'),
            document.getElementById('IndexHeader').nextSibling);
[highlight]      preload.id = "Preload";[/highlight]
The highlighted line is line 366.

This happens regardless of which package I select to generate from.

EA 9.3 Corp Ed, MS SQL Server repository.

Any ideas on how I get the HTML generation to work again?

--
edited to show contents of line 366 of displayToc.js as per error message
« Last Edit: November 14, 2012, 09:15:30 am by spirax »

Chris Tatem

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: Javascript error in Generated HTML report
« Reply #1 on: December 14, 2012, 01:09:22 am »
I get the same error(s), but have found if I select a link (right click) and open in new tab, it all 'works.'  Not an answer, just a work around and confusing.  I have also found it seems to work better if I have an initial diagram in my report.

I use Firefox 14.0.1 on Windows 7...