2 Replies Latest reply on Nov 17, 2009 6:23 AM by prhmusic

    Script error - problem in ehlpdhtm.js?


      Hi Guys,


      I'm using RoboHelp Office and RoboHelp for HTML Help X4.1 to create a chm file. Yesterday, I started to get the following script error when viewing a particular help topic:


      Line    2050

      Char   2

      Error   'null' is null or not an object

      Code  0

      URL    file://C:Help%20files/insphire%20Help%20-%20Corporate/ehlpdhtm.js


      I get the error both when working on the file and using the 'view selected topic' option to view the topic you are working on and when I compile the help file and view the topic in the chm.


      When I use a script editor to look at line 2050, it points to a 'text popup on load' function:


      function kadovTextPopupOnLoad( el )


         if( typeof(el) == "string" )

               el = getElement(el);


         var src = el.getAttribute( "x-use-popup" );

         var bNeedMove=true;



      I have to say that this is a very long help topic. I've tried splitting the topic up in to 3 separate topics and the problem seems to go away.


      Is there some sort of limit on the size of individual html files? Or is the problem something else entirely?


      Any help would be appreciated.



        • 1. Re: Script error - problem in ehlpdhtm.js?
          Peter Grainge Adobe Community Professional (Moderator)

          Sounds like a trial and error problem, keep adding bits back in until it breaks. Then look at what you added or add something different. That should tell you what breaks it if it is some specific content that breaks or going beyond a certain volume. Somehow I doubt it is volume.


          See www.grainge.org for RoboHelp and Authoring tips

          Follow me @petergrainge

          • 2. Re: Script error - problem in ehlpdhtm.js?

            I ran into an issue with this same file a while back. I just saved my file as backup_ehlpdhtm.js and regenerated WebHelp. RoboHelp recreated this file automatically. I tried this based upon the top of the file:
            // eHelp® Corporation Dynamic HTML JavaScript
            // Copyright© 1998-2003 eHelp® Corporation.All rights reserved.
            // Version=5.0

            // Warning:Do not modify this file.It is generated by RoboHELP® and changes will be overwritten.