javascript to wait for answer howto...

M

Mel

I would like my Javascript to wait for a server answer and not to poll
every second or so.
Right now I use "window.setInterval" function and it consumes a lot of
trafic for no good reason.

I would like the server to return a value only if its different than
the one sent before otherwise my script should go to sleep and wait
for an answer.

I know it is possible. Yahoo Finance is a good example, look at the
status bar and it says waiting for http://blah...

can someone point me in the right direction please ?

thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,427
Latest member
HildredDic

Latest Threads

Top