I want figures in my tables on a webpage to refresh automatically but I don’t want the page to reload.
I want it so do it in the background and just display the new data when it finishes loading
edit: I’m looking for an example script
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
unless i hadnt understand your question (if this is the case, please, be more explicit), what you want is how to make a simple ajax request. I use jquery (i see you tagged this question with jquery). It has a very handy function called $.ajax() it receives a dictionary like this:
so, what you have to do is in your success function manipulate your html to refresh just what you want to be refreshed, using the content of
datawich should be a dictionary as well…note that the value for
url:is the url of a script, in whatever language you are using, that is going to receive and process the request made by ajax, and return the answer data as a json dictionary or as xml.also note that this is the syntax of the jquery ajax function… plain javascript may be a little different.
however, i suggest you to read as many tutorials as you can… this is just a pretty plain introduction.
good luck, hope you can use it!