BIRT Exchange Forum: Listen for AJAX requests - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Listen for AJAX requests Rate Topic: -----

#1 User is offline   sseaman Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 19-April 12


Posted 24 April 2012 - 04:58 AM

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.
0

#2 User is offline   averma Icon

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 713
  • Joined: 08-August 07


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
viewer.registerEventHandler(actuate.viewer.EventConstants.ON_CONTENT_CHANGED, eventHandler)


Ashwini

Follow me on Twitter
Read my Blog BIRT Rocks!
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users