• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Close Popup and refresh parent

 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a form opening in a pop-up window. After submit I want to close pop-up and refresh the parent window. Couldn't find the solution. Can any one help on this?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A reference to the parent is available in a variable named opener.
 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks but it's not working not sure what's happening. below is what I am doing in javascript:



Another problem I am facing is whatever js files I am having in the jsp opened by Popup are not working.

Kindly help on this.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, if JavaScript isn't working on the page it's not surprising that your JavaScript isn't working? Aren't you putting the cart before the horse?

Solve the big problems first.
 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have few javascript files that are used in a jsp. When i am opening that jsp in the same window. Its getting loaded but when I am opening that jsp using window.open its not getting loaded. Really surprised what is the reason behind that.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want me to guess? OK, my guess is that you are using page-relative URLs to reference your JavaScript files. If so, bad idea.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic