Real time responce browser

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
azhan
Forum Commoner
Posts: 68
Joined: Fri Jun 27, 2008 6:05 am

Real time responce browser

Post by azhan »

Hello Guys,

I have made a browser which return a result of current patients waiting list, every time there is new patient came, his or her name will be displayed in sequence.

My method to retrieve the updated list is by keep refreshing it in 3 seconds on the META tag at html.

I was wondering is there any other way to retrieve the result in real time without keep refreshing it over and over again automatically.? I want to retrieve data from server in real time.

Thanks.

Azhan
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Real time responce browser

Post by jackpf »

Wait...do you mean you've made a browser or a web page?
azhan
Forum Commoner
Posts: 68
Joined: Fri Jun 27, 2008 6:05 am

Re: Real time responce browser

Post by azhan »

web page....haha...so sorry...
User avatar
arjan.top
Forum Contributor
Posts: 305
Joined: Sun Oct 14, 2007 4:36 am
Location: Hoče, Slovenia

Re: Real time responce browser

Post by arjan.top »

User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Real time responce browser

Post by jackpf »

Oh right...that makes more sense.

Well, you could use AJAX to check for new waiting lists, if there are any, then update the page to show them.

There are some good AJAX tutorials on the web...eg http://www.w3schools.com/Ajax/Default.Asp.

Good luck. If you have any specific problems feel free to post back.
marty pain
Forum Contributor
Posts: 105
Joined: Thu Jun 11, 2009 5:32 am
Location: Essex

Re: Real time responce browser

Post by marty pain »

Web pages are stateless, so you will have to refresh/reload the page to change it's state. You could redo the software in something like Java and have it in true real time, but if you want to keep it web based then it's got to be a refresh/reload.

Maybe look into using AJAX as it will probably be close to what you have in mind.

hahaha jackpf beat me to it!
azhan
Forum Commoner
Posts: 68
Joined: Fri Jun 27, 2008 6:05 am

Re: Real time responce browser

Post by azhan »

wow thanks! I will look any try for it...

I choose web based cos it is more interactive and easier....no training needed.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Re: Real time responce browser

Post by Jenk »

What the OP, and arjan.top are referring to is a persistent HTTP connection, i.e. it doesn't close, so the server can push data to the browser(s).

This is a useful tool but only really advisable on closed networks (which the OP sounds like they have!)

There is a Smalltalk framework called Comet (based on Seaside) for exactly this purpose.
Post Reply