Sorry Dave, I did finally post the code...lol.

Ron Mast
Truth Hardware
Webmaster
507-444-4693
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shuck
Sent: Thursday, August 09, 2007 3:29 PM
To: Dallas/Fort Worth ColdFusion User Group Mailing List
Subject: Re: [DFW CFUG] auto populate cfinput using javascript

LOL   That was a fairly important detail to leave out of the original post Ron!

:)


On 8/9/07, Brad Timiney < [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:
Hi Ron,

The underlying issue is that this cfform is in Flash format.  The
resulting flash movie can't be referenced the same way a normal HTML
form element can be referenced.

I believe it's still possible, but it will take a very different
javascript syntax.  I'll let you know if I find something.

Brad

-----Original Message-----
From: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
[mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] On Behalf Of Ron Mast
Sent: Thursday, August 09, 2007 2:26 PM
To: Dallas/Fort Worth ColdFusion User Group Mailing List
Subject: RE: [DFW CFUG] auto populate cfinput using javascript

Thanks Clint,

That didn't work.

I have tried document.myForm.customerNumber.value also and that didn't
work either.

Ron Mast
Truth Hardware
Webmaster
507-444-4693

-----Original Message-----
From: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
[mailto:[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>] On Behalf Of Clint Tredway
Sent: Thursday, August 09, 2007 2:22 PM
To: Dallas/Fort Worth ColdFusion User Group Mailing List
Subject: Re: [DFW CFUG] auto populate cfinput using javascript

you may try document.myForm.getElementById()

On 8/9/07, Ron Mast < [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:
>
>
>
>
> Here's my code:
>
>
------------------------------------------------------------------------
----------------------------------------
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>
>
>
> <html>
>
> <head>
>
>             <title>Price Evaluation Request</title>
>
>
>
>
>
> <script language="JavaScript">
>
>             function perPopulate(){
>
>
document.getElementById("customerNumber").value =
> "1820";
>
>             }
>
> </script>
>
>
>
> </head>
>
>
>
> <body onload="perPopulate();">
>
>
>
> <cfif IsDefined("Form.fieldnames")>
>
>    <cfdump var="#form#" label="form scope">
>
>    <br><br>
>
> </cfif>
>
>
>
> <br>
>
>
>
> <cfform name="myForm" height="450" width="815" format="Flash"
> skin="HaloBlue">
>
>             <cfformgroup type="panel" label="PER">
>
>                         <cfformgroup type="hdividedbox">
>
>                                     <cfformgroup
> type="VBox" height="280" width="250">
>
>
> <cfformgroup type="vertical">
>
>
> <cfinput type="Radio" name="perType" label="Competitive" value="comp">
>
>
> <cfinput type="Radio" name="perType" label="Non-Competitive"
> value="non_comp">
>
>
> <cfinput type="text" name="perNumber" label="PER ##:" size="10">
>
>
> <cfinput type="text" name="rfqNumber" label="RFQ ##:" size="10">
>
>
> <cfinput type="text" name="customerNumber" id="customerNumber"
> label="Customer ##:" size="10">
>
>
> <cfinput type="text" name="customerName" label="Customer Name:"
size="10">
>
>
> <cfinput type="text" name="city" label="City:" size="10">
>
>
> <cfinput type="text" name="state" label="State:" size="10">
>
>
> <cfinput type="text" name="terms" label="Terms:" size="10">
>
>
>
>
> </cfformgroup>
>
>
>                                     </cfformgroup>
>
>                                     <cfformgroup
> type="VBox" height="280" width="270">
>
>
> <cfformgroup type="vertical">
>
>
> <cfinput type="text" name="entryDate" label="Date" value="#now()#"
> size="10">
>
>
> <cfinput type="text" name="projectNumber" label="Project ##"
size="10">
>
>
> <cfinput type="text" name="originator" label="Originator:" size="10">
>
>
> <cfinput type="text" name="regionalSalesDirector" label="Regional
Sales
> Dir:" size="10">
>
>
> <cfinput type="text" name="fieldSales" label="Field Sales:" size="10">
>
>
> <cfinput type="text" name="insideSales" label="Inside Sales:"
size="10">
>
>
> <cfinput type="text" name="buyingGroupNumber" label="Buying Group:"
> size="10">
>
>
> <cfinput type="text" name="buyingGroupName" label="Buying Group Name:"
> size="10">
>
>
>
> </cfformgroup>
>
>                                     </cfformgroup>
>
>                                     <cfformgroup
> type="VBox" height="280" width="125">
>
>                                                 <cfformitem
> type="html">
>
>
> <b>Cust: </b>
>
>
> </cfformitem>
>
>
> <cfformgroup type="vertical">
>
>
> <cfinput type="Text" name="discountCM_cust" label="CM" size="5">
>
>
> <cfinput type="Text" name="discountDH_cust" label="DH" size="5">
>
>
> <cfinput type="Text" name="discountMS_cust" label="MS" size="5">
>
>
> <cfinput type="Text" name="discountNF_cust" label="NF" size="5">
>
>
> <cfinput type="Text" name="discountPD_cust" label="PD" size="5">
>
>
> <cfinput type="Text" name="discountPW_cust" label="PW" size="5">
>
>
> </cfformgroup>
>
>                                     </cfformgroup>
>
>                                     <cfformgroup
> type="VBox" height="280" width="125">
>
>                                                 <cfformitem
> type="html">
>
>
> <b>BuyGrp: </b>
>
>
> </cfformitem>
>
>
> <cfformgroup type="vertical">
>
>
> <cfinput type="Text" name="discountCM_bg" label="CM" size="5">
>
>
> <cfinput type="Text" name="discountDH_bg" label="DH" size="5">
>
>
> <cfinput type="Text" name="discountMS_bg" label="MS" size="5">
>
>
> <cfinput type="Text" name="discountNF_bg" label="NF" size="5">
>
>
> <cfinput type="Text" name="discountPD_bg" label="PD" size="5">
>
>
> <cfinput type="Text" name="discountPW_bg" label="PW" size="5">
>
>
> </cfformgroup>
>
>                                     </cfformgroup>
>
>
>
>                         </cfformgroup>
>
>             </cfformgroup>
>
>             <cfformgroup type="horizontal">
>
>                         <cfinput type="submit" name="submit"
width="100"
> value="Show Results">
>
>                         <cfinput type="reset" name="reset" width="100"
> value="Reset Fields">
>
>             </cfformgroup>
>
> </cfform>
>
>
>
> </body>
>
> </html>
>
>
>
>
------------------------------------------------------------------------
----------------------------------------
>
>
>
>
> Ron Mast
>
> Truth Hardware
>
> Webmaster
>
> 507-444-4693
>
>  ________________________________
>
>
> From: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
[mailto:[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>]
> On Behalf Of Ron Mast
>  Sent: Thursday, August 09, 2007 2:11 PM
>
>  To: Dallas/Fort Worth ColdFusion User Group Mailing List
>  Subject: RE: [DFW CFUG] auto populate cfinput using javascript
>
>
>
>
> I get a javascript error: 'document.getElementById(...)' is null or
not an
> object.
>
>
>
>
> Ron Mast
>
> Truth Hardware
>
> Webmaster
>
> 507-444-4693
>
>  ________________________________
>
>
> From: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
[mailto: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>]
> On Behalf Of Ron Mast
>  Sent: Thursday, August 09, 2007 2:06 PM
>  To: Dallas/Fort Worth ColdFusion User Group Mailing List
>  Subject: RE: [DFW CFUG] auto populate cfinput using javascript
>
>
>
> Exactly what I'm trying to do but that's not working for
me...hmmm...try it
> again.
>
>
>
>
> Ron Mast
>
> Truth Hardware
>
> Webmaster
>
> 507-444-4693
>
>  ________________________________
>
>
> From: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
[mailto: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>]
> On Behalf Of Dave Shuck
>  Sent: Thursday, August 09, 2007 2:05 PM
>  To: Dallas/Fort Worth ColdFusion User Group Mailing List
>  Subject: Re: [DFW CFUG] auto populate cfinput using javascript
>
>
>
> Ron, you treat it just like a typical input.  Give it an ID (example:
"Foo")
> and do:
>
>  document.getElementById("Foo").value = "your awesome value";
>
>  Am I missing something here or is that what you are trying to do?
>
>
> On 8/9/07, Ron Mast <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:
>
>
>
> Not binding...triggering a javascript function to populate a <cfinput>
text
> box...J
>
>
>
>
> Ron Mast
>
> Truth Hardware
>
> Webmaster
>
> 507-444-4693
>
>  ________________________________
>
>
> From: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> [mailto:
[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>]
> On Behalf Of John.ivanoff
>  Sent: Thursday, August 09, 2007 1:50 PM
>  To: Dallas/Fort Worth ColdFusion User Group Mailing List
>  Subject: Re: [DFW CFUG] auto populate cfinput using javascript
>
>
>
>
>
> Like type ahead?
>
>  John Ivanoff
>
>
>
>  On Aug 9, 2007, at 1:22 PM, Ron Mast <[EMAIL PROTECTED]<mailto:[EMAIL 
> PROTECTED]> > wrote:
>
>
>
>
> Hi All,
>
>
>
> Can I automatically populate <cfinput> using javascript? If so how?
>
>
>
> I'm using CFMX 7.
>
>
>
> Thanks in advance,
>
>
>
> Ron Mast
>
> Truth Hardware
>
> Webmaster
>
> 507-444-4693
>
>
>
>
>
> _______________________________________________
>  Reply to DFWCFUG:
>    [email protected]<mailto:[email protected]>
>  Subscribe/Unsubscribe:
>    http://lists1.safesecureweb.com/mailman/listinfo/list
>  List Archives:
>     http://www.mail-archive.com/list%40list.dfwcfug.org/
>
>     http://www.mail-archive.com/list%40dfwcfug.org/
>  DFWCFUG Sponsors:
>   www.instantspot.com/<http://www.instantspot.com/>
>   www.teksystems.com/<http://www.teksystems.com/>
>
>
>  _______________________________________________
>  Reply to DFWCFUG:
>   [email protected]<mailto:[email protected]>
>  Subscribe/Unsubscribe:
>   http://lists1.safesecureweb.com/mailman/listinfo/list
>  List Archives:
>      http://www.mail-archive.com/list%40list.dfwcfug.org/
>     http://www.mail-archive.com/list%40dfwcfug.org/
>  DFWCFUG Sponsors:
>   www.instantspot.com/<http://www.instantspot.com/>
>     www.teksystems.com/<http://www.teksystems.com/>
>
>
>
>
>  --
>  ~Dave Shuck
>  [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
>   http://daveshuck.instantspot.com
> _______________________________________________
> Reply to DFWCFUG:
>   [email protected]<mailto:[email protected]>
> Subscribe/Unsubscribe:
>   http://lists1.safesecureweb.com/mailman/listinfo/list
> List Archives:
>     http://www.mail-archive.com/list%40list.dfwcfug.org/
>   http://www.mail-archive.com/list%40dfwcfug.org/
> DFWCFUG Sponsors:
>   www.instantspot.com/<http://www.instantspot.com/>
>   www.teksystems.com/<http://www.teksystems.com/>
>
>


--
http://grumpee.instantspot.com/blog

_______________________________________________
Reply to DFWCFUG:
  [email protected]<mailto:[email protected]>
Subscribe/Unsubscribe:
   http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
    http://www.mail-archive.com/list%40list.dfwcfug.org/
   http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
  www.instantspot.com/<http://www.instantspot.com/>
  www.teksystems.com/<http://www.teksystems.com/>

_______________________________________________
Reply to DFWCFUG:
  [email protected]<mailto:[email protected]>
Subscribe/Unsubscribe:
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
    http://www.mail-archive.com/list%40list.dfwcfug.org/
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
  www.instantspot.com/<http://www.instantspot.com/>
  www.teksystems.com/<http://www.teksystems.com/>

_______________________________________________
Reply to DFWCFUG:
  [email protected]<mailto:[email protected]>
Subscribe/Unsubscribe:
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
    http://www.mail-archive.com/list%40list.dfwcfug.org/
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
  www.instantspot.com/<http://www.instantspot.com/>
  www.teksystems.com/<http://www.teksystems.com/>



--
~Dave Shuck
[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
http://daveshuck.instantspot.com
_______________________________________________
Reply to DFWCFUG: 
  [email protected]
Subscribe/Unsubscribe: 
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives: 
    http://www.mail-archive.com/list%40list.dfwcfug.org/             
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors: 
  www.instantspot.com/
  www.teksystems.com/

Reply via email to