Topic: ajax and javascript |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: |
![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() Well, on one hand, you do have to stick to the polling. |
Paranoid (IV) Inmate From: Norway |
![]() ![]() ![]() ![]() Seems like what you need is COMET or Server Sent Events . |
Bipolar (III) Inmate From: |
![]() ![]() ![]() ![]() Hi. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
![]() ![]() ![]() ![]() Comet, that was the name esaping my memory |