Connecting Tech Pros Worldwide Help | Site Map

javascript to wait for answer howto...

 
LinkBack Thread Tools Search this Thread
  #1  
Old May 17th, 2007, 03:25 PM
Mel
Guest
 
Posts: n/a
Default javascript to wait for answer howto...

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


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.