Help regarding refreshing a page.
-
hi all, I want to update the body of my web page say every 10 seconds without having to reload the page i.e. no flickers. I just want any part of the page that has changed e.g. a table connected to a database to show the current data without the users clicking anything i.e. it should be automatic, using a particular time interval like I mentioned. i tried using the setInterval('function1()',10000) and the page gets reloaded.but i want to avoid this.How can i implement the same using AJAX? Thanks in advance.:) Regards Anuradha
-
hi all, I want to update the body of my web page say every 10 seconds without having to reload the page i.e. no flickers. I just want any part of the page that has changed e.g. a table connected to a database to show the current data without the users clicking anything i.e. it should be automatic, using a particular time interval like I mentioned. i tried using the setInterval('function1()',10000) and the page gets reloaded.but i want to avoid this.How can i implement the same using AJAX? Thanks in advance.:) Regards Anuradha
If you want to do it using AJAX then grab the framework from ajax.asp.net. Then you just have to drop an updatepanel around what you want to update and a timer to trigger it.
Mark Churchill Director Dunn & Churchill
-
hi all, I want to update the body of my web page say every 10 seconds without having to reload the page i.e. no flickers. I just want any part of the page that has changed e.g. a table connected to a database to show the current data without the users clicking anything i.e. it should be automatic, using a particular time interval like I mentioned. i tried using the setInterval('function1()',10000) and the page gets reloaded.but i want to avoid this.How can i implement the same using AJAX? Thanks in advance.:) Regards Anuradha
Use atlas framework and use ajax enabled controls like UpdatePanel
Sarith...
-
If you want to do it using AJAX then grab the framework from ajax.asp.net. Then you just have to drop an updatepanel around what you want to update and a timer to trigger it.
Mark Churchill Director Dunn & Churchill
-
hi mark, thanks for your reply. I thought using ajax will stop refreshing the page.Can i implement the same without using ajax? if it is possible, can you please help me with some samples? Thanks again :) Regards Anuradha
With ASP.NET Ajax extension, there are two important controls called "Update Panel" and "Timer". 1. Add the UpdatePanel control to your page. 2. Add Timer control (this control from Ajax extension. not windows timer.) 3. In Tick event of timer, do the updating your page. I saw like that one in ASP.NET Forum. Check-out this. http://forums.asp.net/p/1118294/1740340.aspx Hope it helps.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)
-
hi mark, thanks for your reply. I thought using ajax will stop refreshing the page.Can i implement the same without using ajax? if it is possible, can you please help me with some samples? Thanks again :) Regards Anuradha
anu81 wrote:
Can i implement the same without using ajax? if it is possible,
You can put the items that needs to be refreshed in seperate frame (IFrame) and reload the frame using javascript.