posted 16 years ago
dear all,
in my application there are lots of searches that need to performed inside various pages, the search windows will in opened in the popup. once the search was done the popups will set the values into the parent window components using window.opener.componentName = somevalue.
now instead of opening the popups i have developed a modal window kind of component which will display inside the main parent window (darkening the parent window and highlight the custom modal window). I have successfully overridden the window.open method to get the popup url to open the page inside the custom modal window. the custom made modal window has an iframe which will load the requested search page.
now the problem is.... there was no code change done by the developers in their pages to call the new functionality, as i have overridden the window.open, it takes care of all the things. the problem is the popup uses window.opener to set the values to the parent window. is there any other way to set the values to the main frame from the popup iframe so that developers need not change all their page codes from window.opener to window.parent etc etc...
the reason for this is, if the client rejects the new feature there is no need to rollback the old codes(although we use sourcesafe)
thanks
Vijay Veeraraghavan