Re: Sorry little bit off track

2003-03-12 Thread Partha Ranjan Das
I think:
target is still=_new even while the submit takes place from the new
window. set it to _self if you do not want the submit from the new window
not to open another new window. of course, you know what you want.

-Original Message-
From: Snehal Pandya [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 10:34 AM
To: [EMAIL PROTECTED]
Subject: Sorry little bit off track


hi friends,


  I have problem with the Java Script. I am  openning a child window
get select the value then the value will come to the parent window. I have
tried it in HTML file but I am not getting .
I am sending you the code what I have written .

IF possible then send me the answer...

this is parenet window

function windowOpen(){
  //alert(it is called)
  document.test.action=b.html;
  document.test.method=post
  document.test.target=_new;
  document.test.submit();
}

and this is childs function

function getIt(){
window.opener.document.test.action=a.html;
window.opener.document.test.method=post;
window.opener.document.test.submit();
window.close();
window.history.go(-1);
}
Please send me the mistakes where I am wrong...

Thanks in advance...

Snehal

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com
*
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: Sorry little bit off track

2003-03-12 Thread Thomas Coopmeiners
Hi Snehal

The Problem you have is to understand that your parent window can't receive
any POST or GET-sendings. If you want to do that -to send any values to the
parent- is to make this through named INPUT-tags.
So here my example.

The Parent Window :

form name=F1
input type=hidden name=woman
/form

The Child Window:

function getIt()
{
parent.F1.woman.value=Hi Snehal
}
..
That it. The Input-field of the Parent-window contains now  Hi Snehal

*
And now a question from me 
yesterday I subscribe the first time to any mail list like Java.Sun.
And I would know how I can send questions to the world like you did ?
Best regards
Thomas (Germany)
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com


Re: Sorry little bit off track

2003-03-12 Thread Sreenath V Reddy
Title: RE: Sorry little bit off track






use opener..
not window.opener


-Original Message-
From: Snehal Pandya [mailto:[EMAIL PROTECTED]]
Sent: Wed 3/12/2003 9:04 AM
To: [EMAIL PROTECTED]
Cc:
Subject: Sorry little bit off track
hi friends,


 I have problem with the Java Script. I am openning a child window
get select the value then the value will come to the parent window. I have
tried it in HTML file but I am not getting .
I am sending you the code what I have written .

IF possible then send me the answer...

this is parenet window

function windowOpen(){
 //alert(it is called)
 document.test.action="">
 document.test.method=post
 document.test.target=_new;
 document.test.submit();
}

and this is childs function

function getIt(){
 window.opener.document.test.action="">
 window.opener.document.test.method=post;
 window.opener.document.test.submit();
 window.close();
 window.history.go(-1);
}
Please send me the mistakes where I am wrong...

Thanks in advance...

Snehal

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com








==To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: Sorry little bit off track

2003-03-12 Thread Wadhwa, Amit
window.close();
window.history.go(-1);
these 2 apply to the same window which is not possible.


-Original Message-
From: Isidoros [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 3:01 PM
To: [EMAIL PROTECTED]
Subject: Re: Sorry little bit off track


try this in the getIt function:
window.opener.test.action = value.
instead of giving value to the document.test
i suppose test is the name of the form right??

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED] Behalf Of Snehal Pandya
Sent: Wednesday, March 12, 2003 7:04 AM
To: [EMAIL PROTECTED]
Subject: Sorry little bit off track


hi friends,


  I have problem with the Java Script. I am  openning a child window
get select the value then the value will come to the parent window. I
have
tried it in HTML file but I am not getting .
I am sending you the code what I have written .

IF possible then send me the answer...

this is parenet window

function windowOpen(){
  //alert(it is called)
  document.test.action=b.html;
  document.test.method=post
  document.test.target=_new;
  document.test.submit();
}

and this is childs function

function getIt(){
window.opener.document.test.action=a.html;
window.opener.document.test.method=post;
window.opener.document.test.submit();
window.close();
window.history.go(-1);
}
Please send me the mistakes where I am wrong...

Thanks in advance...

Snehal


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com