DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2005
    Posts
    8

    setTimeout to refresh

    there is a function to refresh the frame

    function ABC()
    {
    window.parent.mainFrame.location.reload();
    }

    <input type="submit" name="submitvalue" value="send" onclick="setTimeout('ABC()',2000)">
    <input type="button" value="refresh" onclick="setTimeout('ABC()',2000)">

    it only works in button type, the submit type is failed.

    how can i do to refresh the frame after 2 second after submit? thanks a lot.

  2. #2
    Join Date
    Aug 2005
    Posts
    8
    solved. thanks.

Similar Threads

  1. Replies: 4
    Last Post: 03-23-2006, 10:22 AM
  2. setTimeout to refresh frame
    By Tony WONG in forum Java
    Replies: 1
    Last Post: 09-24-2005, 09:40 AM
  3. how do I refresh data every x seconds...
    By John Butler in forum ASP.NET
    Replies: 9
    Last Post: 02-26-2002, 08:21 PM
  4. Close child - refresh parent
    By Nate in forum ASP.NET
    Replies: 1
    Last Post: 02-07-2001, 08:18 PM
  5. JTextPane refresh problem under jdk 1.1.8 swing 1.1.1
    By François Bélair in forum Java
    Replies: 0
    Last Post: 08-26-2000, 02:19 PM

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