Steve,

You are da man! Never head of Firebug but I will give it a shot. I am pretty 
much developing for IE so I never thought about installing Firefox. 

Thanks,
Andy

> Andy,
> 
> Move the JS to the form_test1.cfm page. It works when you do that.
> 
> Here it is:
> 
> http://demo.thinksys.com/cf8/cfwindow/form_test1.cfm
> 
> Are you using Firebug? As Ray Camden has told me many times, use 
> Firebug. It is really great for this stuff. You would see that the 
> actual error was updateit() is not defined.
> 
> But just move the JS to form_test1.cfm and you should be good.
> 
> -Steve
> 
> 
> > 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:285728
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to