Re: cfform Flash and value

2009-09-10 Thread Cutter (ColdFusion)

Phillip,

To prepopulate the form elements of the Flash Form, you'd have to use 
the 'value' attribute of your various form tags:

cfinput type=text name=FirstName value=#REQUEST.myQuery.FirstName# /

You cannot use JavaScript to populate or validate a Flash Form. You can 
use ActionScript to validate a Flash Form, as outlined in this post from 
Ray:

http://www.coldfusionjedi.com/index.cfm/2005/9/20/Ask-a-Jedi-Flash-Form-Custom-Validation

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com


On 9/9/2009 11:21 PM, Phillip Vector wrote:
 I get that value is not a part of the cfinput if the cfform is set to flash.

 So how do I populate the form with the values from the query I have set up?

 Right now, I have..

   cfform format=flash width=100% height=300 
 method=post
 action=#myself#CalendarAdmin.UpdateInfo
   cfformgroup type=tabnavigator
   cfformgroup type=page label=Main 
 Information
   cfinput label=Notes: 
 name=Note type=text required=false
 message= id=Note size=50 value=#AllConventions.Note# /
   /cfformgroup
   /cfformgroup
   /cfform

 A cfdump shows AllConventions has 1 record. So how do I prepopulate the field?

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326191
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfform Flash and value

2009-09-10 Thread Phillip Vector

On Thu, Sep 10, 2009 at 6:57 AM, Cutter (ColdFusion)
cold.fus...@cutterscrossing.com wrote:
 To prepopulate the form elements of the Flash Form, you'd have to use
 the 'value' attribute of your various form tags:

 cfinput type=text name=FirstName value=#REQUEST.myQuery.FirstName# /

Umm.. How is that different from..

cfinput label=Notes: name=Note type=text required=false
message= id=Note size=50 value=#AllConventions.Note# /

I don't see anywhere that I'm using javascript to populate the fields.
AllConventions is the name of the query and Note is a column in said
query.

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326192
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfform Flash and value

2009-09-10 Thread Cutter (ColdFusion)

Hmmm. Yeah, I missed that part of your email. Sorry about that.

If the query has a record, then I would think your use case would work. 
Did you dump it prior to the form? Is the form in a cfoutput statement? 
I'd like to help, but honestly I never use cfform in anything other than 
rapid prototyping, and even then I never use the 'flash' type form.

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com


On 9/10/2009 9:00 AM, Phillip Vector wrote:
 On Thu, Sep 10, 2009 at 6:57 AM, Cutter (ColdFusion)
 cold.fus...@cutterscrossing.com  wrote:

 To prepopulate the form elements of the Flash Form, you'd have to use
 the 'value' attribute of your various form tags:

 cfinput type=text name=FirstName value=#REQUEST.myQuery.FirstName# /
  
 Umm.. How is that different from..

 cfinput label=Notes: name=Note type=text required=false
 message= id=Note size=50 value=#AllConventions.Note# /

 I don't see anywhere that I'm using javascript to populate the fields.
 AllConventions is the name of the query and Note is a column in said
 query.

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326193
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfform Flash and value

2009-09-10 Thread Cutter (ColdFusion)

One other thing. Did you view source for the page? Are your values 
getting passed in to the call to create the Flash movie?

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com


On 9/10/2009 9:00 AM, Phillip Vector wrote:
 On Thu, Sep 10, 2009 at 6:57 AM, Cutter (ColdFusion)
 cold.fus...@cutterscrossing.com  wrote:

 To prepopulate the form elements of the Flash Form, you'd have to use
 the 'value' attribute of your various form tags:

 cfinput type=text name=FirstName value=#REQUEST.myQuery.FirstName# /
  
 Umm.. How is that different from..

 cfinput label=Notes: name=Note type=text required=false
 message= id=Note size=50 value=#AllConventions.Note# /

 I don't see anywhere that I'm using javascript to populate the fields.
 AllConventions is the name of the query and Note is a column in said
 query.

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326195
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfform Flash and value

2009-09-10 Thread Phillip Vector

On Thu, Sep 10, 2009 at 7:08 AM, Cutter (ColdFusion)
cold.fus...@cutterscrossing.com wrote:

 Hmmm. Yeah, I missed that part of your email. Sorry about that.

No worries. :) I appreciate the help.

 If the query has a record, then I would think your use case would work.

That's what I would think as well.

 Did you dump it prior to the form?

Yes. It has exactly 1 record.

 Is the form in a cfoutput statement?

No since it's cfform. But I tried it that way anyway and it still didn't work.

 I'd like to help, but honestly I never use cfform in anything other than
 rapid prototyping, and even then I never use the 'flash' type form.

No worries. I figure someone here may be able to.

 Steve Cutter Blades
 Adobe Certified Professional
 Advanced Macromedia ColdFusion MX 7 Developer

 Co-Author of Learning Ext JS
 http://www.packtpub.com/learning-ext-js/book
 _
 http://blog.cutterscrossing.com


 On 9/10/2009 9:00 AM, Phillip Vector wrote:
 On Thu, Sep 10, 2009 at 6:57 AM, Cutter (ColdFusion)
 cold.fus...@cutterscrossing.com  wrote:

 To prepopulate the form elements of the Flash Form, you'd have to use
 the 'value' attribute of your various form tags:

 cfinput type=text name=FirstName value=#REQUEST.myQuery.FirstName# /

 Umm.. How is that different from..

 cfinput label=Notes: name=Note type=text required=false
 message= id=Note size=50 value=#AllConventions.Note# /

 I don't see anywhere that I'm using javascript to populate the fields.
 AllConventions is the name of the query and Note is a column in said
 query.



 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326196
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfform Flash and value

2009-09-10 Thread Phillip Vector

I'm not sure..

It just shows the flash player being loaded in the source.

On Thu, Sep 10, 2009 at 7:10 AM, Cutter (ColdFusion)
cold.fus...@cutterscrossing.com wrote:

 One other thing. Did you view source for the page? Are your values
 getting passed in to the call to create the Flash movie?

 Steve Cutter Blades
 Adobe Certified Professional
 Advanced Macromedia ColdFusion MX 7 Developer

 Co-Author of Learning Ext JS
 http://www.packtpub.com/learning-ext-js/book
 _
 http://blog.cutterscrossing.com


 On 9/10/2009 9:00 AM, Phillip Vector wrote:
 On Thu, Sep 10, 2009 at 6:57 AM, Cutter (ColdFusion)
 cold.fus...@cutterscrossing.com  wrote:

 To prepopulate the form elements of the Flash Form, you'd have to use
 the 'value' attribute of your various form tags:

 cfinput type=text name=FirstName value=#REQUEST.myQuery.FirstName# /

 Umm.. How is that different from..

 cfinput label=Notes: name=Note type=text required=false
 message= id=Note size=50 value=#AllConventions.Note# /

 I don't see anywhere that I'm using javascript to populate the fields.
 AllConventions is the name of the query and Note is a column in said
 query.



 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326197
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfform Flash and value

2009-09-10 Thread Cutter (ColdFusion)

If you don't see something like name/value pairs, for the fields and 
your values, in the source as flashvars in the object creation call, 
then I can't see how it would ever load your data.

UPDATE: I just checked cfquickdocs, and discovered the following 
information regarding the 'value' attribute of cfinput, in conjuction 
with the 'flash' cfform type:

'Flash: optional; specifies text for button type inputs: button, submit, 
and image.'

That seems to suggest that you would *not* be able to set the value of 
the field of a Flash Form (it says, basically, the HTML works as expected).

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com


On 9/10/2009 9:18 AM, Phillip Vector wrote:
 I'm not sure..

 It just shows the flash player being loaded in the source.

 On Thu, Sep 10, 2009 at 7:10 AM, Cutter (ColdFusion)
 cold.fus...@cutterscrossing.com  wrote:

 One other thing. Did you view source for the page? Are your values
 getting passed in to the call to create the Flash movie?

 Steve Cutter Blades
 Adobe Certified Professional
 Advanced Macromedia ColdFusion MX 7 Developer

 Co-Author of Learning Ext JS
 http://www.packtpub.com/learning-ext-js/book
 _
 http://blog.cutterscrossing.com


 On 9/10/2009 9:00 AM, Phillip Vector wrote:
  
 On Thu, Sep 10, 2009 at 6:57 AM, Cutter (ColdFusion)
 cold.fus...@cutterscrossing.comwrote:


 To prepopulate the form elements of the Flash Form, you'd have to use
 the 'value' attribute of your various form tags:

 cfinput type=text name=FirstName value=#REQUEST.myQuery.FirstName# 
 /

  
 Umm.. How is that different from..

 cfinput label=Notes: name=Note type=text required=false
 message= id=Note size=50 value=#AllConventions.Note# /

 I don't see anywhere that I'm using javascript to populate the fields.
 AllConventions is the name of the query and Note is a column in said
 query.




  
 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326199
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfform Flash and value

2009-09-10 Thread Phillip Vector

I've noticed that as well. The thing is, I've seen flash form do this.

So how do they do it?

On Thu, Sep 10, 2009 at 7:54 AM, Cutter (ColdFusion)
cold.fus...@cutterscrossing.com wrote:

 UPDATE: I just checked cfquickdocs, and discovered the following
 information regarding the 'value' attribute of cfinput, in conjuction
 with the 'flash' cfform type:

 'Flash: optional; specifies text for button type inputs: button, submit,
 and image.'

 That seems to suggest that you would *not* be able to set the value of
 the field of a Flash Form (it says, basically, the HTML works as expected).

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326200
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4