Re: Getting the data back to the parent Page.
- From: Erwin Moller <since_humans_read_this_I_am_spammed_too_much@xxxxxxxxxxxxxxxx>
- Date: Thu, 31 Aug 2006 12:28:44 +0200
Ravi Kishore wrote:
Hi all,
I have a problem while sending the data to and fro a JSP page. When i
click a link on a JSP page(say parent.jsp), i have to open a diff
page(say child.jsp), get the data from that page and pass that data to
the parent.jsp and do some actions with the data i recently got.
I am not using window.open(...)..so i definitely can't use opener
object.
Also i can't use form.action(parent.jsp?...) as i have to do database
hits to open the parent.jsp again. i don't want to do it. Is there any
other way to do this.
Please help me in this regard,
Thanks in Advance,
Ravi.
Hi Ravi,
Window1 contains parent.jsp
which opens a new window
Window2 that contains child.jsp.
Addressing Window1 from Window2:
If you want to access something in Window1 form Window2, you can always use
the reserved word: opener
opener.document.location='www.google.com';
is a valid way to address the opener window.
Addressing Window2 from Window1:
If you open from Window1 via window.open() that functions returns a
window-reference to Window2.
If you want to adres Window2 from Window1, use window.open() and remember
the value it return (the childwindowreference).
Regards,
Erwin Moller
.
- Follow-Ups:
- Re: Getting the data back to the parent Page.
- From: Tom Cole
- Re: Getting the data back to the parent Page.
- References:
- Getting the data back to the parent Page.
- From: Ravi Kishore
- Getting the data back to the parent Page.
- Prev by Date: Re: how to draw pie graph or line graph
- Next by Date: Re: Write. function
- Previous by thread: Getting the data back to the parent Page.
- Next by thread: Re: Getting the data back to the parent Page.
- Index(es):
Relevant Pages
|