use the following code.

 <html>
<head>
<script>
function callOnLoad()
{
        document.f2.t2.value = window.opener.document.f1.t1.value;
}
function callOnUnLoad()
{
        window.opener.document.f1.t1.value = document.f2.t2.value;
}

</script>
</head>
<body onLoad="callOnLoad()" onUnLoad="callOnUnLoad();" >
<form name="f2">
<input type=text name=t2 >
</form>
</body>
</html>


-----Original Message-----
From: Richie Bab A. Boyboy
To: [EMAIL PROTECTED]
Sent: 10/05/2001 2:10 PM
Subject: Re: Help on retrieve value

use window.opener.formname.textfield.value instead

A mailing list about Java Server Pages specification and reference
wrote:

> To:   [EMAIL PROTECTED]
> cc:
> Subject:  Re: Help on retrieve value
>
> Hello,
>
> It does not work.
>
>                     EJB ForAll
>                     <ejbforallus@YAHO        To:
> [EMAIL PROTECTED]
>                     O.COM>                   cc:
>                     Sent by: A               Subject:     Re: Help on
> retrieve value
>                     mailing list
>                     about Java Server
>                     Pages
>                     specification and
>                     reference
>                     <JSP-INTEREST@JAV
>                     A.SUN.COM>
>
>                     2001/10/05 04:52
>                     PM
>                     Please respond to
>                     A mailing list
>                     about Java Server
>                     Pages
>                     specification and
>                     reference
>
> HI
>
> USE
>
> window.refferer.document.form1.IDText.value
>
> Regards
> deepak
>
> http://www.geocities.com/deepak_38
>
> --- Dick Wong <[EMAIL PROTECTED]> wrote:
> > if there is a button in form1. If I press it, it
> > open a new window (form2).
> > How can I retrieve the text field called "IDText" in
> > form1 and display it
> > on form2 ??
> > I tried to: alert( document.form1.IDText.value ) but
> > nothing to be display
> > .....
> >
> > Help.
> >
> > Regards,
> >    Dick Wong
> >
> >
>
========================================================================
===
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> > body: "signoff JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body:
> > "set JSP-INTEREST DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> __________________________________________________
> Do You Yahoo!?
> NEW from Yahoo! GeoCities - quick and easy web site hosting, just
> $8.95/month.
> http://geocities.yahoo.com/ps/info1
>
>
========================================================================
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
========================================================================
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
WARNING: The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee.  Access to this message
by anyone else is unauthorised.  If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error. Thank you.----------------- HCL Perot Systems

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to