Hi Mark,

Investigate the JavaScript "window.opener" property.

Once you reference window.opener in your script, you can manipulate the
"original window" via JavaScript just like it's the current window. Meaning
you can copy values to and fro between windows.

Something like:

try{
  var field_inthis_window = document.getElementById('field_inthis_window');
  var field_inoriginal_window =
window.opener.document.getElementById('field_inoriginal_window');

  field_inoriginal_window.value = field_inthis_window.value;
}catch(e){
        alert('Original window is no longer open.');
}

Hope that helps.

Scott Cadillac
---------
Business Extranet Freedom
IExtranet ~ http://IExtranet.com 
Online Demo ~ http://www.northwind.org/#demo 
---------
Weblog ~ http://xmlx.ca 
For Hire ~ http://xmlx.ca/forhire
---------
403-254-5002 ~ [EMAIL PROTECTED]
---------
P.O. Box 69006
RPO Bridlewood SW
Calgary, Alberta
Canada T2Y 4T9
 

> -----Original Message-----
> From: Mark Weiss [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 04, 2005 7:19 AM
> To: [email protected]
> Subject: Witango-Talk: JS Copy between windows
> 
> I need an example of copying information between windows. I 
> have read and
> re-read Javascript 1.2 looking for examples but can't find 
> it. I know it is
> an old book. 
> 
> Anyway. I want users to be able to click on a link, open a 
> window, select
> some information and then click another button that copies 
> that information,
> closes the window and places the information in the orignail 
> window fields.
> 
> If an example is too complicated, please send me to a place 
> on the web to
> read about it. I am willing to do the work here.
> 
> Thanks so much 
> 
> Mark Weiss
> 
> 
> ______________________________________________________________
> __________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
> 


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to