-
timer in asp
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.
-
Re: timer in asp
You need to look up the SetInterval javascript function
"jackal" <wancherng@msn.com> wrote in message
news:3e81b3e1$1@tnews.web.devx.com...
>
> 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.
-
Re: timer in asp
sorry for i didn't make my question clear, this is the actual 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!!
-
Re: timer in asp
Yep, use SetInterval to fire a function & change the image tag...
"jackal" <wancherng@msn.com> wrote in message
news:3e848342$1@tnews.web.devx.com...
>
> sorry for i didn't make my question clear, this is the actual problem:
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks