Topic: ajax and javascript (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
posted 10-06-2006 09:44
Hi, I am currently making an ajax based application. Anyway, once a second I need to get som information from my webapplication (something spitting out xml). I have the following question, right know I do the following, poll info from the webapp every second (through the setInterval method) but I don't like this approach. Is there anyway to do a post from the webapp to the javascript/ajax application? Or do I have to stick to the polling approach? |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 10-06-2006 10:10
Well, on one hand, you do have to stick to the polling. |
Paranoid (IV) Inmate From: Norway |
posted 10-06-2006 10:20
Seems like what you need is COMET or Server Sent Events . |
Bipolar (III) Inmate From: |
posted 10-06-2006 10:57
Hi. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 10-06-2006 13:21
Comet, that was the name esaping my memory . |