August 25, 2014 19 Comments
The key to this technique is the <img> tag which is one of the few to include an onLoad event. This event fires as soon as the image is displayed.
Add an HTML item anywhere on the report, just make sure it’s somewhere that will always be rendered (on the page, but not inside any decks). Give the HTML item the following text:
The image is hidden (style=”display:none;”), so it won’t affect your layout. I chose to use the progress.gif image because it’s always loaded. You can use your own image, however I would not recommend a 1×1 transparent gif. I tested this and it worked fine on Windows (IE, Firefox and Chrome), but did not work correctly on Cognos Mobile (iPad or Android). If you do use your own image, it must also be somewhere in the report using a standard Cognos Image element from the toolbox, so that the image is properly registered. Otherwise the image will only work while you are online.
2014-09-17 – Added details about the images that can be used and the placement of the HTML Item.