If all you are doing is reading the data, why are you using POST? Use GET instead. Anyway, you can use the setInterval function to run the makeRequest function every 15 minutes.
Main Topics
Browse All TopicsHi,
I have a div tag in which I am displaying some data. On Page Load, I am calling the function that displays data in <div>. What I want is every 15 minutes, <div> tag refreshes so that it will display new daya. I am using AJAX and javascript.
Would you please se the below code in javascript and ajax. Please make chnages in the below code, so that it will refresh <div> automaticallly.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi asianandrew:
I will include the prototype.js.
would you please tell me where to add new Ajax.PeriodicalUpdater('Ms
Thanks
Hi asianandrew,
I have included this script file
<script src="js/prototype-1.6.0.3.
Also, below is my code:
window.onload=function()
{
new Ajax.PeriodicalUpdater('Ms
}
Its not doing anything
Hi asianandrew,
I have tried your solution. Your solution do run every 1 minute, but it gives me an error after 1minute. I have included the complete code again. Please fix my code..
The HTTP verb POST used to access path '/Ajax/makeRequest();' is not allowed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The HTTP verb POST used to access path '/Ajax/makeRequest();' is not allowed.
Business Accounts
Answer for Membership
by: asianandrewPosted on 2009-03-26 at 13:28:20ID: 23994868
I'd recommend using Prototype JS and using the Periodic Updater - http://www.prototypejs.org /api/ajax/ periodical Updater
Once you include prototype.js in your head, you should be able to use the following code.
Select allOpen in new window