SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2003
    Location
    PA
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    refreshing an image useing "opener"

    I have a page where a user can click on an image to change it. On the "onclick" I open a child window where the user can upload a new image. Once the image is uploaded I want to show the new image in the parent (opener) window. The name of the image is the same. I tried...

    Code:
    opener.getElementById('LOGO_PATH').src=""opener.getElementById('LOGO_PATH').src;
    ... didn't like it.

    Any ideas? Thanks in advance for your help.

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Without seeing any more I'm kinda guessing, but try this...
    Code:
    opener.document.getElementById('LOGO_PATH').src = document.getElementById('LOGO_PATH').src;


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
  •