Forum Moderators: open

Message Too Old, No Replies

timer in asp

         

wancherng

2:14 pm on Mar 26, 2003 (gmt 0)

10+ Year Member



how can i set a timer in a asp so that the page reload everytime the timer triggers?(ie: i want a image in my webpage to perform animation and controlled by the timer)
thanx in advance.

Alternative Future

2:18 pm on Mar 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello and welcome to WebMasterWorld wancherng,

I think this should assist with what you are trying to do:

<%
response.setDateHeader ("Expires", -1);
%>

[added] oops no it wont i never read the post fully sorry :([/added]

What prevents you from using the meta refresh tag?

Here is a link to something that looks simaler to what you are doing ht*p://www.experts-exchange.com/Web/Web_Languages/ASP/Q_20460054.html

HTH,

-gs

[edited by: Alternative_Future at 2:26 pm (utc) on Mar. 26, 2003]

chicagohh

2:24 pm on Mar 26, 2003 (gmt 0)

10+ Year Member



You will not be able to do that with just ASP. As Alternative_Future mentioned, you can use the meta tags or a client side scripting language such as JavaScript.

Joe

wancherng

2:32 pm on Mar 27, 2003 (gmt 0)

10+ Year Member



sorry for i didn't make the thing clear.
actually what i want is:
i have a button in my page which start drawing a live trending graph after i click it, which mean i only want the timer to start refreshing the page after i click the button.
if it is so, how should i do?

wancherng

5:27 pm on Mar 28, 2003 (gmt 0)

10+ Year Member



sorry, pls ignore the my above description, this is the real problem:

i have a button and an image in my asp.
when i load the asp for the FIRST TIME, i want the image to be invisible.
and when i click on the button, i want the image appears and the refreshes every minute.
B'coz i need the image to perform a live trending(plot graph) and the data to plot the graph is updated the every minute.

i have no problem with the database but how can i set the image to refresh every minute?
i have tried using <meta http-equiv="refresh" content="60"> and it refreshes the whole page.
it is ok, but when the page is refreshed, the image is invisible again, means the page have gone back to FIRST TIME.
that is not what i want.
i want it to perform like this:
when the page refreshes, the image remains visible and updates the graph according to the database.
so, how can i do this?
sorry for ask question like this but i a beginner and really can't solve this.
pls help. thanx in advance!