The servlet queries the database and throws data in to a file.
This data file has to be refreshed every 10 seconds for users to view the updated information.
I need help with triggering servlet with javascript function. I am successful in getting the timeinterval method in JS but I am having issue calling the servlet.
var int=self.setInterval("trigger()",10000);
function(){
//Servlet queries the db and loads the data into the file.
trigger servlet ...???
" TriggerServlet? ......
}
1 Answer