SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    May 2002
    Location
    Barcelona, Spain
    Posts
    434
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question refresh a page after opening a new one

    Hello, I have a little javascript that pops up a new page, but I need to refresh the parent page after some PHP code is run on the child page. There has to be a way to do this with javascript right?

    Can anyone help?

    Thanks.
    Used to prefer PHP.
    Now I prefer Maya but stuck with PHP
    bruji.com

  2. #2
    SitePoint Member
    Join Date
    Jan 2003
    Location
    Bakersfield, CA
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i think it is something like this
    parent.location.reload()
    Affordable Web Hosting & Design
    http://www.c-double.com

  3. #3
    SitePoint Evangelist
    Join Date
    May 2002
    Location
    Barcelona, Spain
    Posts
    434
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    c-double,

    that doesn't seem to do it

    I put it on an onClick behaviour and it doesn't refresh the parent page.
    Used to prefer PHP.
    Now I prefer Maya but stuck with PHP
    bruji.com

  4. #4
    SitePoint Evangelist
    Join Date
    May 2002
    Location
    Barcelona, Spain
    Posts
    434
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    got it

    Ok, this one did it:

    window.opener.location.reload();

    the parent one wouldn't work, but this one worked beautifully.

    thanks.
    Used to prefer PHP.
    Now I prefer Maya but stuck with PHP
    bruji.com


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
  •