You can't.
What runs on the client in the browser has to be "passed back" to the server.
Here's one way to pass that value:
<FORM NAME="MyForm">
<INPUT VALUE="" NAME="CS_JS_Val">
<SCRIPT><!--
document.MyForm.CS_JS_Val.value = opener.document.hedit.RefNum.value;
// -->
</SCRIPT>
When the form was submitted you would have the value in Tango as <@ARG CS_JS_Val>
which you could assign to a Tango variable if needed.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Chuck Lockwood
Sent: Tuesday, July 09, 2002 12:49 PM
To: Multiple recipients of list witango-talk
Subject: Witango-Talk: JavaScript question
On a page opened in a child window, I have
<SCRIPT>
document.writeln(opener.document.hedit.RefNum.value);
</SCRIPT>
which correctly displays the value on the screen.
How can I assign this value to a local variable?
<@SCRIPT
EXPR="server.setVariable('vRefNum',opener.document.hedit.RefNum.value,'local
');">
does not work.
Thanks,
Chuck Lockwood
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LockData Technologies, Inc.
309 Main Avenue, Hawley, Pa 18428
Phone: 570-226-7340 ~ Fax: 570-226-7341
Email: [EMAIL PROTECTED] ~ http://www.lockdata.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body