PDA

View Full Version : load webpage from girder event



yonu
November 4th, 2013, 09:02 PM
ok I am sorry for asking however I know I saw something about this before but have had no luck in finding it. I need to know if there is a way to load a page in the girder webserver when a event happens in girder and preferably to a specific client.

Thanks,
yonu

Ron
November 5th, 2013, 08:00 AM
So you want to update a client web browser when an even inside Girder happens...

Girder 5: Poll from client to check if event has arrived. Go to different page if so.

Girder 6: Use the websockets support to push event to client, which then loads different page.

yonu
November 5th, 2013, 08:21 AM
ok thanks

so if using g6 I can push the page change from girder but g5 the client has to continuously check for an event.

anychance of a quick example for g5.

Thanks,
Yonu

yonu
November 8th, 2013, 09:55 AM
is there any chance of getting an example for how to do this in G5?