Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic