Since the BIRT viewer interacts directly with the our Actuate server there is the possibility that the user may stay active in the viewer for longer than our main applications session allows. This means that they could be "active" within the site (because they are using the viewer) but as soon as they go to another page they would be logged out.
Is there anyway to register with the viewer so that all ajax calls can be listened to? That way I can just make an AJAX call back to our server to update the session.
I know this can be done in JQuery but I'm curious if there is a way in the Birt Viewers JS library?
Or, is there a different/better way to accomplish what I want to do.
Page 1 of 1
Listen for AJAX requests
#2
Posted 24 April 2012 - 12:13 PM
Hi sseaman,
You can register an event handler on viewer’s ON_CONTENT_CHANGE event. This event will be fired when report page content get updated. It catches most of ajax calls
You can register an event handler on viewer’s ON_CONTENT_CHANGE event. This event will be fired when report page content get updated. It catches most of ajax calls
viewer.registerEventHandler(actuate.viewer.EventConstants.ON_CONTENT_CHANGED, eventHandler)
Page 1 of 1





MultiQuote




