How do u send the parameter(URL parameter) while creating JS popup window.Now i given full path(just for testing). Context relative path does'nt working(eg /myapp/mypopup.jsp).
As I stated before, you must use window.opener to refer to any object in the window that opened the current document. In the example you gave, the reference would be: window.opener.document.parentwinowform.element.value. I know this works, because I use it often.
It is also possible to use a relative path to your jsp. It's the same as any other reference in a web application. The path is relative to the current page, so if the current page is in /myApp/, the reference would simply be "mypage.jsp"
Also, here's a link the explains in greater detail how to use the "opener" property.
Simple!!. The actionform was renamed and i forgot that. LOL.
The problem was that i have previousely mentioned. window.opener does'nt reference to parent window. But that's becoz actionform was renamed. document.forms works well. I dont touched JS for years. So i thought it can be a JS issue. Was not confident abt this loosely coupled language.
After playing sometime with JS, i started liking it. It's cool.
Good link. Thanks.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop