<a id="The problem"></a>

The problem

Firefox 8, released in November 2011, has decided to make contextMenu a reserved word when creating HTML5-style context-sensitive menus.

Unfortunately, TIM Enterprise already used this identifier before Firefox was changed, such that the Directory's pop-up menu no longer appears as expected.

Therefore, we have changed the identifier in the product's content to use dirContextMenu instead of contextMenu. If you are using a version of TIM Enterprise earlier than 3.0.0.77 you will need to make some changes to your web content, located in the {Program Files}\Tri-Line\TIM Enterprise\ssldata\ folder.

<a id="The solution"></a>

The solution

Upgrade to at least version 3.0.0.77 where this change has already been made to the default content.

If you are unable to upgrade to TIM Enterprise 3.0.0.77 (for example, you have no maintenance contract) then it is recommended that you either temporarily use an alternative browser or change the following code within the directory.js files.

The directory.js files are located by default in the following locations:

The following changes need to be made to these files:

Search for:
    function contextMenu(strID, evt, fromFind) {
 
Replace with:
    function dirContextMenu(strID, evt, fromFind) {
Search for:
    strOut.append("' onclick=\"contextMenu('");
 
Replace with:
    strOut.append("' onclick=\"dirContextMenu('");
Search for:
    strOut.append("', event)\" oncontextmenu=\"contextMenu('");
 
Replace with:
    strOut.append("', event)\" oncontextmenu=\"dirContextMenu('");
Search for:
    strOut.append("' onclick=\"highLight = this.id;contextMenu('");
 
Replace with:
    strOut.append("' onclick=\"highLight = this.id;dirContextMenu('");
Search for:
    strOut.append("', event, true);\" oncontextmenu=\"highLight = this.id;contextMenu('");
 
Replace with:
    strOut.append("', event, true);\" oncontextmenu=\"highLight = this.id;dirContextMenu('");
<a id="More information"></a>

More information

Firefox 8 was publicly released on 8th November 2011. A new feature was introduced for integration with the browser's HTML5 context menu.

The related release note from Mozilla's documents is: Added support for HTML5 context menus.

Full release notes for Firefox 8 are available here.