Ajax Refresh Without Timer
-
Hello, I am Developing a Web-Chat Application using ASP.Net with c# language. For chat window updation I am using AJAX Panel and updation happen for every 1 second as the Timer control Interval given in Timer is 1 Second. Updation code is implemented in Timer_Tick(). I feel is for every frequent time interval updation happens which can cause unnecessary load on the server. Basically for chat application only when send button is clicked updation is needed. I feel AJAX Refresh is not needed when the user is idle i.e when the user doesn't click on send button. My Query is it possible to refresh all the webpages of this particular link opened in different PC's when any user clicks on Send Button. What can i do for similar Implementation. If my query is not clear please feel free to ask questions.
-
Hello, I am Developing a Web-Chat Application using ASP.Net with c# language. For chat window updation I am using AJAX Panel and updation happen for every 1 second as the Timer control Interval given in Timer is 1 Second. Updation code is implemented in Timer_Tick(). I feel is for every frequent time interval updation happens which can cause unnecessary load on the server. Basically for chat application only when send button is clicked updation is needed. I feel AJAX Refresh is not needed when the user is idle i.e when the user doesn't click on send button. My Query is it possible to refresh all the webpages of this particular link opened in different PC's when any user clicks on Send Button. What can i do for similar Implementation. If my query is not clear please feel free to ask questions.
platso_588 wrote:
Basically for chat application only when send button is clicked updation is needed. I feel AJAX Refresh is not needed when the user is idle i.e when the user doesn't click on send button.
So if you chat to me, I won't see it until I click a button ? Sounds like crap to me
platso_588 wrote:
My Query is it possible to refresh all the webpages of this particular link opened in different PC's when any user clicks on Send Button
No. There's no way this can work, that's why you're using a timer.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.