SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Sweden
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Refreshing problem

    Hey ppl, i've run into a big problem with a script of mine.
    The user can manipulate a html-document presented in one of the frames, and then choose to save these changes.

    After a php-script has saved the changes, it should reload the document using javascript:

    parent.location.href="index.php?doc=<?php echo $file ?>";

    and thus show the updated version of the document, but unfortunately, it doesn't. To see the changes made I have to refresh the webpage manually with the F5-key.

    I'm guessing the browser caches the document, but how do I stop it from doing that?

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    parent.location.reload(true); 
    ::: certified wild guess :::


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
  •