trouble with timeout


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: trouble with timeout

  1. #1
    Join Date
    Sep 2005
    Posts
    2

    trouble with timeout

    I want to make a count that adds "1" each second, but it ads 1 every second, like this(111111) instead of going to next number, its a math problem i think.......could anybody help.

    --------this is the js file--------

    function test(){
    var count = parseFloat(+1);
    document.write(count);
    {
    setTimeout("test();",2000);
    }
    }

    ------and this the index---------

    <html>
    <head>
    <script LANGUAGE="javascript" type="text/javascript" src="secure_load.js"></script>
    </head>

    <body onload="test()">

    <script LANGUAGE="javascript" type="text/javascript" src="secure_load.js"></script>
    </body>
    </html>

  2. #2
    Join Date
    Jul 2005
    Location
    SW MO, USA
    Posts
    299
    try a Javascript forum.

Similar Threads

  1. Timeout in a loop
    By Dan-Yeung in forum VB Classic
    Replies: 5
    Last Post: 10-16-2002, 05:59 PM
  2. Transaction Timeout - MTS vs.ADO
    By Michael Tzoanos in forum VB Classic
    Replies: 1
    Last Post: 04-03-2002, 03:47 PM
  3. Replies: 0
    Last Post: 12-21-2001, 03:51 PM
  4. Sql Server Timeout expired
    By vaidyanathan.k in forum VB Classic
    Replies: 1
    Last Post: 05-08-2001, 01:23 PM
  5. ADO query timeout
    By chaumette in forum VB Classic
    Replies: 2
    Last Post: 03-31-2000, 12:09 PM

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