Results 1 to 2 of 2

Thread: Refresh IFrame???

  1. #1

    Thread Starter
    Lively Member Nator's Avatar
    Join Date
    Nov 1999
    Location
    East Larryville, GA
    Posts
    80

    Refresh IFrame???

    I'm not sure if this can be done with code, but how can you refresh an IFrame with client-side script? My app a report preview with the report inside an IFrame. In that report is a user-specific variable (a name pulled from a cookie). I want the user to be able to edit the signature, in case it is the wrong one. I already have the code in place to change the cookie. I'd like to be able to force a refresh with the updated cookie information. I've tried using

    window.location = window.location


    and the IFrame will not reload correctly.

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    Are you trying to reload the whole document?

    If so you can use:

    location.reload('yourpage.html');

    or

    location.replace('yourpage.html');


    Chris
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width