Book a Demo

Author Topic: Generated HTML not working on Firefox  (Read 3065 times)

SwissSteve

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
    • View Profile
Generated HTML not working on Firefox
« on: September 26, 2008, 05:01:56 pm »
I have a strange problem which I dont understand.

I wrote the code below to automatically generate my model each evening.    This works fine, but not with Firefox where I get the following error when starting.

[Exception... "Access to restricted URI denied"  code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)"  location: "file:///C:/Test/TestApp/js/displayToc.js Line: 546"]

I then tried to genrate the same html from within EA application and with this generated output Firefox works.

The only difference I noticed was that the EA tool geenrated model starts form the root package but the auto geenrated model has an unmarked package as the root.   I really donr see how this can make a difference or am I wrong.

I then tried to add a GUID as a parameter to my generator but the method seems to ignore this parameter and geenrate the whole model regardless with this strange default root package.

1.  Am I going down the wrong path chasing this rogue package as root?
2.  Does anyone else generate models automatically and do you use the GUID successfully as a parameter




 
****************************************************

  repository = new EA.Repository();
  bool result = repository.OpenFile(path.Repository);
  project = repository.GetProjectInterface();
 
  // Delete Output directory if it exists then recreate
  if (Directory.Exists(path.WebSite))
  {
      Directory.Delete(path.WebSite, true);
  }
  Directory.CreateDirectory(path.WebSite);
                    
  // Create the New Model in the Directory
  project.RunHTMLReport("", path.WebSite, "PNG", "default", "htm");


SwissSteve

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
    • View Profile
Re: Generated HTML not working on Firefox
« Reply #1 on: September 26, 2008, 11:47:00 pm »
Found te problem.

It was the root folder issue.   In IE it just adds a blank folder at root.  With Firefox it reports the previous error.

Fix is to add the root GUID for the model.   How do you find this out?
I generated the HTML in EA and then hover the mouse of the Root Folder + sign in IE for this model and the GUID is displayed.