Getting the same file repeatedly


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Getting the same file repeatedly

  1. #1
    Join Date
    Nov 2002
    Posts
    1

    Question Getting the same file repeatedly

    Hi All,
    Is there a way to repeatedly download a file with the same file name?

    I use that before:

    function img()
    {
    image = new Array()
    image[0]=new Image()
    image[0].src="Cam01.jpg"

    document.video1.src=image[0].src
    setTimeout("img()",100)
    }

    but after it got the file once, it stopped. What I need is something like a webcam effect. Can anybody help?

    Many thanks in advance.

  2. #2
    Join Date
    Oct 2002
    Posts
    66
    I think what you should be able to do is create a seperate thread which will sleep for 5 seconds or whatever and then call an interupt to your main thread. Whenever the interrupt occurs you can then load the picture.

    Hope that helps.
    Meethoss

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