DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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

Bookmarks

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


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


Sponsored Links