File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

window.opener performance error

 
James Ball
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a performance bug, where the user beats the refresh of the parent screen and opens a calendar popup. When the parent screen is refreshed, the calendar popup has a reference to the previous parent screen. When you click anywhere on the calendar popup, you receive an "Object doesn't support this property or method" error, which I expected to see if my logic is correct because when you click on the calendar it will write those changes to the parent window. Is there any way to force window.opener to utilize the current parent window? Are there ways to workaround this issue, without disabling the entire screen to ensure a button is not clicked prior to parent screen refresh?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the refresh related to the pop up window opening? If so, why is that happening?

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most modern date pickers (and similar controls) will create the control elements on the same page by adding the new element to the current DOM (or revealing previously hidden elements). Opening a separate page in a child window will always incur this sort of problem. When the parent page goes away, the child is orphaned and opener is no longer valid. There is no way to cause opener to "hook up" to a new page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic