Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in reloading a parent page

 
Vidya Ramakrishnan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a page where there is a button called 'Add video' .Clicking this button opens another window to upload the video . After upload button is pushed this new window displays 'the file has been uploaded' with a 'Continue button' .The onclick event of Continue button closes the window .But at the same time I want the window where I have the 'Add video' button to be reloaded.

I tried this with 'document.parent.reload()' on the onclick event of 'continue' button. but the reqired window is not reloaded..
Is there something that went wrong in this.

Please help me.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
parent is for frames, you need to use window.opener

Eric
 
Why fit in when you were born to stand out? - Seuss. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!