Steve, that is it. Similar to what I want to do but something is weird. I still get the Javascript: Object Expected error. This means I did something stupid like typed something wrong however I don't see it, and I simplified it a lot already. This test is just to copy what is typed in the Window onto the main form.
---- (form_test1.cfm) <cfif isDefined("form.submit")> <cfdump var="#form#"> </cfif> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Input Test</title> </head> <body> <cfajaximport tags="cfform,cfwindow"> <cfform name="mainform" action="form_test1.cfm"> <cfinput name="test1" size="10" type="text"> <cfinput type="submit" name="submit" value="submit"> </cfform> <cfwindow name="win1" source="form_test1_win.cfm" initshow="true" /> </body> </html> ---- (form_test1_win.cfm) <script> function updateit() { document.mainform.test1.value = document.winform.wintxt.value; } </script> <cfform name="winform"> TYPE SOMETHING: <cfinput type="text" name="wintxt" size="10" onkeyup="javascript: updateit();"> </cfform> > If you are using cfwindow than the window is on the same page. You > should be able to use JS to control the value on the original form. > Like: > > document.formName.name.value; > > Check out this demo I did: > > http://demo.thinksys.com/cf8/cfwindow/addContacts.cfm > > I think the concept is kind of the same. Click the new company link > and a cfwindow opens. After the new company is inserted there is a > close button that uses JS to update the company picklist on the > original form. It then closes the window. > > I hope this helps. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285722 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4