refreshing a page or reloading a page within a div layer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anfetienne
    Contributor
    • Feb 2009
    • 424

    refreshing a page or reloading a page within a div layer

    Hi,

    (to start im a newbie with ajax) I have this script that reloads a page into a div layer after a certain amount of time using jquery

    Code:
    <script>
     $(document).ready(function() {
     	 $("#latestNewsHolder").load("latest.php");
       var refreshId = setInterval(function() {
          $("#latestNewsHolder").load('latest.php');
       }, 36000);
    });
    </script>
    the script works great but my problem is id just like it to refresh the whole page without blinking as there is more than one part of the page that needs updating and it also messes with the resulting page of form submissions that are with the areas loaded... is there not a way to change the ".load(''latest .php);" into something that refreshes a whole page instead of partial?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    If you want to refresh/reload the whole page, use location.reload .

    Comment

    Working...