I have found that I have to move the form level to the window level in
order to pass data back and forth between parent and child reliably
For example
<PRE>
--Parent--
<form>
<INPUT TYPE=TEXT NAME="BACKNFORTH">
<INPUT TYPE=BUTTON NAME="" VALUE="" onClick="window.ValueField =
BACKNFORTH; retvalue =
window.open('<@APPFILEPATH>lookups.taf?_function=&<@USERREFERENCEARGUMEN
T>','Width=400,Height=300');">
</form>
--child--
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin JavaScript
this.ValueField = opener.ValueField;
this.FieldValue = ValueField.value;
// -->
</PRE>
now ValueField which equals BACKNFORTH input is linked between parent
and child
if I change in one it will change in both.
Now do you have control of the taf on the URL that you are opening?
Ben Johansen - http://www.pcforge.com
Authorized Witango Reseller http://www.pcforge.com/WitangoGoodies.htm
Latest downloads & List Archives @ http://www.witango.ws
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Chuck Lockwood
Sent: Wednesday, September 25, 2002 3:21 PM
To: Multiple recipients of list witango-talk
Subject: Witango-Talk: OT - JavaScript windows ??
If a window opens another window, arguments can be passed from the form
in
the child back to the parent, as in:
opener.document.customer.LastName.value="value collected in child
from";
however, if the child window contains a form on an external url, it
doesn't
get passed back, a javascript error occurs. as in
tafwin2 = window.open(http://www.someurl/some.taf,"lookupwindow")
Anyone have any insight?
Thanks, as always. (Without this list, I be fired! (And I'm self
employed!))
Chuck Lockwood
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LockData Technologies, Inc.
309 Main Avenue, Hawley, Pa 18428
570-226-7340 ~ Fax: 570-226-7341
[EMAIL PROTECTED] ~ 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