#1
  1. No Profile Picture
    pgilmore
    Guest
    Devshed Newbie (0 - 499 posts)
    I've got a form in wich there's a field I want to reload every 2 seconds or when the user klicks the field, is there a simple way of doing this? I don't want to reload the whole page because then all the other information already entered will be lost.
    Thanx
    //Patrick
  2. #2
  3. No Profile Picture
    dynamic1
    Guest
    Devshed Newbie (0 - 499 posts)
    You can use either setTimeout or setInterval to get Javascript to keep on calling a function at a set time period.

    t=setTimeout("yourfunction()",2000);
    This will call yourfunction afert 2 seconds.
    You will need to call this command again in your function.

Similar Threads

  1. Add $ENV{REMOTE_USER} to end of textarea field on a form
    By k9barry in forum HTML Programming
    Replies: 8
    Last Post: February 4th, 2004, 02:36 PM
  2. Inserting from form to multiple tables
    By barth in forum MySQL Help
    Replies: 0
    Last Post: January 25th, 2004, 10:27 AM
  3. Default values on the form on page reload
    By yashi in forum HTML Programming
    Replies: 4
    Last Post: September 18th, 2003, 04:55 PM
  4. updating form field on keypress
    By mystik_web in forum HTML Programming
    Replies: 4
    Last Post: January 7th, 2003, 09:02 PM
  5. file field form inside a regular form
    By EAD in forum PHP Development
    Replies: 2
    Last Post: November 18th, 2002, 07:07 PM

IMN logo majestic logo threadwatch logo seochat tools logo