timer in asp


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: timer in asp

  1. #1
    jackal Guest

    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.

  2. #2
    Michael Gautier Guest

    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.




  3. #3
    jackal Guest

    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!!








  4. #4
    Larry Triezenberg Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center