Skip to Content

Auto-Refresh

Wondering if anybody can give me any ideas as to whether or not this can work in a portal environment.

There is an open source solution for auto-refreshing called pushlets. On the client side, it basically is an HTML page with two frames. One frame is the display and the second frame calls a servlet which subscribes to a certain subject (through a parameter). When a response is returned from the servlet, the response calls a javascript function in the main HTML page to refresh the display frame (or display new data from the servlet response). I've already proven that these pushlets work in a non-portal environment...However, I am having trouble trying to integrate it into a portal environment.

Any ideas???

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 01, 2003 at 09:47 AM

    Thanks Oliver,

    The idea I came up with was to use two iViews. One iView acting as the "so-called" display frame. And of course the second iView acting as the frame which calls the servlet. Then in the response from the servlet, I would raise an event using EPCM in javascript. The display iView would be listening for this event and then reload the iView.

    Another problem I am having is that in the pushlet framework, there is a Publisher class. This class has only one instance running at all times. This Publisher keeps track of the subscribers and also dispatches the events to the correct subscribers. I don't know how I can create this Publisher in the portal framework.

    What do you think Oliver?

    Chris

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.