Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Question on using window.opener

 
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a parent window (jsp page) that opens up via javascript a pop-up window (another jsp page) where on the form tag of the pop-up window I have an onsubmit that launches a javascript function called reload_window() where I am trying to refresh the parent window that is still open and then close the pop-up after that. Please note that I put an alert in the function to see if I was even getting in and I am but then I get the javascript error below.

ANY help or direction would be greatly appreciated as I'm been doing everything I can to reload the parent window after the pop-up is closed and I'm hitting a brick wall.

javascript error:

Object doesn't support this property or method

Here is my pop-up window form tag:



Then my javascript function code within the reload_window.js file is:

 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
there is no method called refresh() there is one called reload()

Eric
 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eric,

Thanks for the reply. I changed refresh to reload in the javascript function and I'm still getting the same error.

Any other suggestions?

Thanks.
 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got reload to get through the javascript code but it is NOT reloading the opener window.

Any other suggestions would be greatly appreciated.
 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Finally with the help of a colleague here is the fix:



Thanks for help and hopefully someone else can use this.
reply
    Bookmark Topic Watch Topic
  • New Topic