Re: cfform adding url params upon submit? Argh

2012-01-02 Thread Matt Quackenbush

I'm not sure I'm completely following you here, because the code you've
shown won't behave in the manner described, no matter what the operating
system. How are you determining that the URL params are being passed?

Sent from my Samsung Galaxy SII
On Jan 2, 2012 3:35 PM, Wayne Gregor w...@sfnet.com wrote:


 I just converted from CF windows to Linux (hurray for me!)

 Remarkably... most everything works great (was the little
 issue of upper vs lower case).

 One thing that is goofy is this.

 I have a link to a form that has some URL params

 http://www.gregorigroup.com/inforequest.cfm?mls=40544266start=1
 http://www.gregorigroup.com/inforequest.cfm?mls=40544266start=1

 when I click the submit button all the URL parameters are
 returned with the url.

 How can I suppress the url params upon return?

 My cfform tag looks like this

 cfform action=inforequest.cfm method=post


 thanks!
 --
 *Wayne Gregori*
 Office: 510-895-1066
 Cell: 510-219-3887
 w...@sfnet.com


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349291
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Spam:********, Re: cfform adding url params upon submit? Argh

2012-01-02 Thread Wayne Gregor

Thanks for waking me up Matt I dug into my code a bit and found the 
problem.

thanks,
Wayne

On Monday, January 02, 2012 2:03:11 PM, Matt Quackenbush wrote:

 I'm not sure I'm completely following you here, because the code you've
 shown won't behave in the manner described, no matter what the operating
 system. How are you determining that the URL params are being passed?

 Sent from my Samsung Galaxy SII
 On Jan 2, 2012 3:35 PM, Wayne Gregorw...@sfnet.com  wrote:


 I just converted from CF windows to Linux (hurray for me!)

 Remarkably... most everything works great (was the little
 issue of upper vs lower case).

 One thing that is goofy is this.

 I have a link to a form that has some URL params

 http://www.gregorigroup.com/inforequest.cfm?mls=40544266start=1
 http://www.gregorigroup.com/inforequest.cfm?mls=40544266start=1

 when I click the submit button all the URL parameters are
 returned with the url.

 How can I suppress the url params upon return?

 My cfform tag looks like this

 cfform action=inforequest.cfm method=post


 thanks!
 --
 *Wayne Gregori*
 Office: 510-895-1066
 Cell: 510-219-3887
 w...@sfnet.com




 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349295
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CFFORM or Jquery Form Validation

2011-08-30 Thread Al Musella, DPM

Note that even if you used my example (which you are welcome to use 
of course), you still need to confirm it on the server side when the 
form is submitted.. some people turn off javascript, and others will 
play around with tools like fiddler to mess you up:)
Best way is to use both - check on the client side to make it easier 
for the user and check on the server to make sure you have what you need,


At 03:06 PM 8/29/2011, you wrote:

Al,
Now that's what I call perfection.

Thank you very much and I am not going to copy your code as I already
finished Sunday
My old school method. I too am not great with javascript or jquery, but am
starting to try getting into it
So I don't get left completely behind.
I have no use for frameworks at this time so the method you provided is just
perfect and I can get me old head around it.

Terry

-Original Message-
From: Al Musella, DPM [mailto:muse...@virtualtrials.com]
Sent: Monday, August 29, 2011 10:22 AM
To: cf-talk
Subject: RE: CFFORM or Jquery Form Validation


Terry,
I see nobody gave a simple example.. here is one:
http://virtualtrials.com/testjquery.cfmhttp://virtualtrials.com/testjquery
.cfm

view page source to see how it works.
Try submitting it first with nothing entered, then with something in
one of the fields
I am not great with javascript or jquery but it works:)
I stripped out everything unneeded.
You can also easily do it without jquery just using javascript... but
the jquery syntax is easier to remember.

Al



At 11:10 PM 8/28/2011, you wrote:

 Cameron,
 I did as you said and downloaded the framework.
 I read the quick start and the pdf and it is way over this guy's head.
 I ended up using cfform and checkboxes which passed the list onto the next
 page
 To a loop which then displayed the text input for which ever the user
 checked off.
 Works fine and is old school yes, but I am not yet into frameworks as you
 obviously
 Are, but I did learn something today. I am a 70 year old guy who loves all
 this stuff
 And do not want to just have something given to me to copy their work, but
 instead to
 See a working example to learn from. I did learn that grouping fields is an
 option
 I hadn't thought about and am going to go deeper into that.
 
 Thank you very much for your input, just try and remember an example is
just
 that,
 Something to learn by.
 
 Terry
 
 -Original Message-
 From: Cameron Childress [mailto:camer...@gmail.com]
 Sent: Sunday, August 28, 2011 2:51 PM
 To: cf-talk
 Subject: Re: CFFORM or Jquery Form Validation
 
 
 
 There are many many examples available for ValidateThis.  You'd asked for
 more than one.  The download contains a whole bunch. If you meant what you
 said when you claimed you want learn something new today, I would look at
 ValidateThis.
 
 If instead, you want someone to link to a solution for you so you can
 cut/paste code to solve your exact problem, someone else will surely
provide
 it shortly.
 
 
 
 
 





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347134
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFFORM or Jquery Form Validation

2011-08-29 Thread Cameron Childress

On Sun, Aug 28, 2011 at 11:10 PM, Terry Troxel terry.tro...@gmail.comwrote:

 Are, but I did learn something today. I am a 70 year old guy who loves all
 this stuff


That's pretty cool actually.  You get a pass.  :)

Glad you got things working.

-Cameron

-- 
Cameron Childress
--
p:   678.637.5072
im: cameroncf
facebook http://www.facebook.com/cameroncf |
twitterhttp://twitter.com/cameronc |
google+ https://profiles.google.com/u/0/117829379451708140985


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347096
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CFFORM or Jquery Form Validation

2011-08-29 Thread Al Musella, DPM

Terry,
   I see nobody gave a simple example.. here is one:
http://virtualtrials.com/testjquery.cfmhttp://virtualtrials.com/testjquery.cfm
 

view page source to see how it works.
Try submitting it first with nothing entered, then with something in 
one of the fields
I am not great with javascript or jquery but it works:)
I stripped out everything unneeded.
You can also easily do it without jquery just using javascript... but 
the jquery syntax is easier to remember.

Al



At 11:10 PM 8/28/2011, you wrote:

Cameron,
I did as you said and downloaded the framework.
I read the quick start and the pdf and it is way over this guy's head.
I ended up using cfform and checkboxes which passed the list onto the next
page
To a loop which then displayed the text input for which ever the user
checked off.
Works fine and is old school yes, but I am not yet into frameworks as you
obviously
Are, but I did learn something today. I am a 70 year old guy who loves all
this stuff
And do not want to just have something given to me to copy their work, but
instead to
See a working example to learn from. I did learn that grouping fields is an
option
I hadn't thought about and am going to go deeper into that.

Thank you very much for your input, just try and remember an example is just
that,
Something to learn by.

Terry

-Original Message-
From: Cameron Childress [mailto:camer...@gmail.com]
Sent: Sunday, August 28, 2011 2:51 PM
To: cf-talk
Subject: Re: CFFORM or Jquery Form Validation



There are many many examples available for ValidateThis.  You'd asked for
more than one.  The download contains a whole bunch. If you meant what you
said when you claimed you want learn something new today, I would look at
ValidateThis.

If instead, you want someone to link to a solution for you so you can
cut/paste code to solve your exact problem, someone else will surely provide
it shortly.






~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347105
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CFFORM or Jquery Form Validation

2011-08-29 Thread Terry Troxel

Al,
Now that's what I call perfection.

Thank you very much and I am not going to copy your code as I already
finished Sunday
My old school method. I too am not great with javascript or jquery, but am
starting to try getting into it
So I don't get left completely behind.
I have no use for frameworks at this time so the method you provided is just
perfect and I can get me old head around it.

Terry

-Original Message-
From: Al Musella, DPM [mailto:muse...@virtualtrials.com] 
Sent: Monday, August 29, 2011 10:22 AM
To: cf-talk
Subject: RE: CFFORM or Jquery Form Validation


Terry,
   I see nobody gave a simple example.. here is one:
http://virtualtrials.com/testjquery.cfmhttp://virtualtrials.com/testjquery
.cfm 

view page source to see how it works.
Try submitting it first with nothing entered, then with something in 
one of the fields
I am not great with javascript or jquery but it works:)
I stripped out everything unneeded.
You can also easily do it without jquery just using javascript... but 
the jquery syntax is easier to remember.

Al



At 11:10 PM 8/28/2011, you wrote:

Cameron,
I did as you said and downloaded the framework.
I read the quick start and the pdf and it is way over this guy's head.
I ended up using cfform and checkboxes which passed the list onto the next
page
To a loop which then displayed the text input for which ever the user
checked off.
Works fine and is old school yes, but I am not yet into frameworks as you
obviously
Are, but I did learn something today. I am a 70 year old guy who loves all
this stuff
And do not want to just have something given to me to copy their work, but
instead to
See a working example to learn from. I did learn that grouping fields is an
option
I hadn't thought about and am going to go deeper into that.

Thank you very much for your input, just try and remember an example is
just
that,
Something to learn by.

Terry

-Original Message-
From: Cameron Childress [mailto:camer...@gmail.com]
Sent: Sunday, August 28, 2011 2:51 PM
To: cf-talk
Subject: Re: CFFORM or Jquery Form Validation



There are many many examples available for ValidateThis.  You'd asked for
more than one.  The download contains a whole bunch. If you meant what you
said when you claimed you want learn something new today, I would look at
ValidateThis.

If instead, you want someone to link to a solution for you so you can
cut/paste code to solve your exact problem, someone else will surely
provide
it shortly.








~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347110
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFFORM or Jquery Form Validation

2011-08-28 Thread Cameron Childress

On Sun, Aug 28, 2011 at 1:19 PM, Terry Troxel terry.tro...@gmail.comwrote:

 I would like to know how to accomplish this using JQUERY, CF AJAX or
 CFFORM, so I can learn something new today.

 I would like to see as many examples as I can if possible.


Check out ValidateThis:

http://www.validatethis.org/

Server side validaiton and also generates client side validation for use
with jQuery (compatible with other jsLibs too) .  Very powerful and worth
spending an afternoon with it if you are in the mood to learn something new.

-Cameron

-- 
Cameron Childress
--
p:   678.637.5072
im: cameroncf
facebook http://www.facebook.com/cameroncf |
twitterhttp://twitter.com/cameronc |
google+ https://profiles.google.com/u/0/117829379451708140985


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347071
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFFORM or Jquery Form Validation

2011-08-28 Thread Terry Troxel

Cameron,
Thank you for your reply.
I went to their demo and tried out the list box, but it only allows ONE
selection.

I am lookning for at least one ir: email and phone1.
And then if I got that I guess I could submit to another page and show
whatever fields they requested
and make those required.
I am really looking to do it in one form with 3 text fields and at least one
being required but accepting all if text is entered.
Am I explaining myself properly?

Terry
On Sun, Aug 28, 2011 at 1:46 PM, Cameron Childress camer...@gmail.comwrote:


 On Sun, Aug 28, 2011 at 1:19 PM, Terry Troxel terry.tro...@gmail.com
 wrote:
 
  I would like to know how to accomplish this using JQUERY, CF AJAX or
  CFFORM, so I can learn something new today.
 
  I would like to see as many examples as I can if possible.
 

 Check out ValidateThis:

 http://www.validatethis.org/

 Server side validaiton and also generates client side validation for use
 with jQuery (compatible with other jsLibs too) .  Very powerful and worth
 spending an afternoon with it if you are in the mood to learn something
 new.

 -Cameron

 --
 Cameron Childress
 --
 p:   678.637.5072
 im: cameroncf
 facebook http://www.facebook.com/cameroncf |
 twitterhttp://twitter.com/cameronc |
 google+ https://profiles.google.com/u/0/117829379451708140985


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347072
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFFORM or Jquery Form Validation

2011-08-28 Thread Maureen

http://stackoverflow.com/questions/1300994/jquery-validate-require-at-least-one-field-in-a-group-to-be-filled

On Sun, Aug 28, 2011 at 10:19 AM, Terry Troxel terry.tro...@gmail.com wrote:

  I have 3 form fields: Phone1, phone2, email.

 Can someone point me to or give me an example how to:
 I have always used an cfif statement to validate that at least ONE contact
 method is provided.
 This is so old school, but it works.
 I would like to know how to accomplish this using JQUERY, CF AJAX or CFFORM,
 so I can learn something new today.

 I would like to see as many examples as I can if possible

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347073
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFFORM or Jquery Form Validation

2011-08-28 Thread Cameron Childress

On Sun, Aug 28, 2011 at 5:03 PM, Terry Troxel terry.tro...@gmail.comwrote:

 I went to their demo and tried out the list box, but it only allows ONE
 selection.


There are many many examples available for ValidateThis.  You'd asked for
more than one.  The download contains a whole bunch. If you meant what you
said when you claimed you want learn something new today, I would look at
ValidateThis.

If instead, you want someone to link to a solution for you so you can
cut/paste code to solve your exact problem, someone else will surely provide
it shortly.

-Cameron

-- 
Cameron Childress
--
p:   678.637.5072
im: cameroncf
facebook http://www.facebook.com/cameroncf |
twitterhttp://twitter.com/cameronc |
google+ https://profiles.google.com/u/0/117829379451708140985


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347074
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CFFORM or Jquery Form Validation

2011-08-28 Thread Terry Troxel

Cameron,
I did as you said and downloaded the framework.
I read the quick start and the pdf and it is way over this guy's head.
I ended up using cfform and checkboxes which passed the list onto the next
page
To a loop which then displayed the text input for which ever the user
checked off.
Works fine and is old school yes, but I am not yet into frameworks as you
obviously
Are, but I did learn something today. I am a 70 year old guy who loves all
this stuff
And do not want to just have something given to me to copy their work, but
instead to
See a working example to learn from. I did learn that grouping fields is an
option
I hadn't thought about and am going to go deeper into that.

Thank you very much for your input, just try and remember an example is just
that,
Something to learn by.

Terry

-Original Message-
From: Cameron Childress [mailto:camer...@gmail.com] 
Sent: Sunday, August 28, 2011 2:51 PM
To: cf-talk
Subject: Re: CFFORM or Jquery Form Validation



There are many many examples available for ValidateThis.  You'd asked for
more than one.  The download contains a whole bunch. If you meant what you
said when you claimed you want learn something new today, I would look at
ValidateThis.

If instead, you want someone to link to a solution for you so you can
cut/paste code to solve your exact problem, someone else will surely provide
it shortly.




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347077
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cfform issue within cflayout - cflayoutarea

2010-09-20 Thread Stephens, Larry V

Well, this is interesting. I set up a very simple set of pages.

Test.cfm

cflayout type=tab
cflayoutarea name=test title=Test
cfform action=testResponse.cfm method=post
cfinput type=text name=test size=10
input type=submit /
/cfform
/cflayoutarea
/cflayout


testResponse.cfm

cfparam name=FORM.test default=

cfoutput#FORM.test#/cfoutput

cflocation url=testTarget.cfm?show=#FORM.test#


testTarget.cfm

cfparam name=URL.show default=
cfoutput#URL.show#/cfoutput
pI came here/p


When I enter some value in the input the program does indeed return to test.cfm 
and my tab but prints everything from testTarget.cfm 


The issue seems to be in how the form tag is processed by CF. I set up 
another file, test2, using form tags instead of cfform

When you use cfform it's translated to:
form name=CFForm_1 id=CFForm_1 action=testResponse.cfm method=post 
onsubmit=return ColdFusion.Ajax.checkForm(this, _CF_checkCFForm_1,'test') 

Using form there is no translation/processing. It looks like the culprit is 
the onsubmit statement. It works differently than  
ColdFusion.Ajax.submitForm().  The callback function for 
ColdFusion.Ajax.submitForm() returns everything on the target page including 
tags, header info, etc. where this is showing only what I actually output - but 
back into the cflayout area.

And this is where it **really** gets weird: Run the code (test.cfm not 
test2.cfm) and what I see on the screen is my test tab and what I output in 
testTarget.cfm - I see no input box or submit button. BUT, if you view the code 
it's identical to the code before you do the submit. So where are the form 
elements?

Some Ajax guru needs to help with this and tell us how you handle this. (I 
suppose one possibiity is to never actually use a submit button but handle it 
all with ColdFusion.Ajax.submitForm().  )


Larry Stephens







 

-Original Message-
From: Joe None [mailto:drue...@comcast.net] 
Sent: Friday, September 17, 2010 2:20 PM
To: cf-talk
Subject: Re: cfform issue within cflayout - cflayoutarea


Yes I do. 


 Just curious - do you end your processing page with cflocation ? 
 
 Larry Stephens
 




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337229
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cfform issue within cflayout - cflayoutarea

2010-09-17 Thread Stephens, Larry V

Just curious - do you end your processing page with cflocation ? 

Larry Stephens
 

-Original Message-
From: Joe None [mailto:drue...@comcast.net] 
Sent: Friday, September 17, 2010 10:29 AM
To: cf-talk
Subject: cfform issue within cflayout - cflayoutarea


Is there a way to use cfform within a cflayoutarea so that when it's finished 
processing it doesn't reload itself back into the original cflayoutarea? 

I'm using a cfform within a cflayoutarea, I submit my cfform to a processing 
page and after the processing, I TRY to load another page altogether. 
Unfortunately it reloads back into the cflayoutarea (showing two of my cfforms 
and throwing an error). If I use a normal form tag I won't have this issue. 
Using a target with cfform doesn't work. 

Is there a work-around for this issue? Thanks 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337191
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfform issue within cflayout - cflayoutarea

2010-09-17 Thread Joe None

Yes I do. 


 Just curious - do you end your processing page with cflocation ? 
 
 Larry Stephens
 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337195
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfform won't submit

2010-05-04 Thread Anene Isioma Wealth

let me see the code that defines your form

 Sincerely, 
Chuka I.W. Anene
Chief Software Eng./CEO




From: Steve Logan st...@sagescholars.com
To: cf-talk cf-talk@houseoffusion.com
Sent: Tue, May 4, 2010 11:12:55 PM
Subject: cfform won't submit


I must be missing something obvious here.  I have a simple user enrollment form 
that submits fine on the first submit, but can't seem to be submitted a 2nd 
time.  There is no submit once validation.  For example, if I test it with a 
username that I know is in use, it quickly submits and generates and error 
message stating that the username is in use.  If I select a username that's 
good and resubmit, it just hangs.  In the browser status bar it simple sits at 
waiting for test.server.com until it times out with a connection reset error. 
 I installed a Firefox plugin to watch the HTTP traffic and it seems to confirm 
that there's no response from the server on the 2nd submit.  Yet if I open up 
countless new browsers and tabs, the server is working fine.

Any ideas?? 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:35
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfform won't submit

2010-05-04 Thread William Seiter

Without seeing your full application, my assumption would be that the code that 
is running (after the username unique validation) is not returning to the 
browser any data.  I would take a look at any querries you are running and 
possibly add a timeout to them so you can see if they are running, unusually 
long.

William


--
William E. Seiter


On May 4, 2010, Steve Logan st...@sagescholars.com wrote: 


I must be missing something obvious here.  I have a simple user enrollment form 
that submits fine on the first submit, but can't seem to be submitted a 2nd 
time.  There is no submit once validation.  For example, if I test it with a 
username that I know is in use, it quickly submits and generates and error 
message stating that the username is in use.  If I select a username that's 
good and resubmit, it just hangs.  In the browser status bar it simple sits at 
waiting for test.server.com until it times out with a connection reset error. 
 I installed a Firefox plugin to watch the HTTP traffic and it seems to confirm 
that there's no response from the server on the 2nd submit.  Yet if I open up 
countless new browsers and tabs, the server is working fine.

Any ideas?? 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:37
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfform validate onsubmit issue

2010-03-15 Thread Dave Watts

 Googled extensively and searched the docs - forgive me if I'm missing
 something.

 Have a cfform on a secure subdomain with its own certificate using
 validateat=onSubmit for several text fields, which is being skipped.
 It also doesn't work on the secure subdomain if the request is not
 secure (http). validate=onServer does work in these instances.

 validateat=onSubmit for this form works on a local development box
 (non https) and on a non-secure development subdomain (same top-level
 domain as the secure). It works (both secure and non-secure) on the www
 of the same domain.

 Javascript is not disabled in any browser I'm using, and other
 javascript being called works fine.

Does the URL http://your_server/CFIDE/scripts/cfform.js resolve
properly in production?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
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:331768
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfform validate onsubmit issue

2010-03-15 Thread Mark Atkinson

Dang! Of course! It's Monday.
Created a virtual directory under the secure subdomain pointing to the 
local path to that directory.
Many thanks.

-- 
Mark Atkinson
AOCS Web | www.aocs.org
217-693-4839



Dave Watts wrote:
 Googled extensively and searched the docs - forgive me if I'm missing
 something.

 Have a cfform on a secure subdomain with its own certificate using
 validateat=onSubmit for several text fields, which is being skipped.
 It also doesn't work on the secure subdomain if the request is not
 secure (http). validate=onServer does work in these instances.

 validateat=onSubmit for this form works on a local development box
 (non https) and on a non-secure development subdomain (same top-level
 domain as the secure). It works (both secure and non-secure) on the www
 of the same domain.

 Javascript is not disabled in any browser I'm using, and other
 javascript being called works fine.
 

 Does the URL http://your_server/CFIDE/scripts/cfform.js resolve
 properly in production?

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/

 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.

 

~|
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:331769
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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


Re: cfform javascript reference

2009-06-30 Thread Azadi Saryev

you do not even need to have any function. you can just use:
a href=javascript:void(0); onclick=...


Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/


On 29/06/2009 03:15, David McGuigan wrote:
 a href= javascript: functionThatExistsButReturnsFalse( );  onclick= etc(
 ); etc/a
 
 So, accessible to your page you'd have a
 
 function mute( ){ return false( ); }
 
 And then your buttons could be:
 
 a href= javascript: mute( ); 
 onclick=document.getElementById('form').reset()clear/a
 a href= javascript: mute( ); 
 onclick=document.getElementById('form').submit()send/a
 
 You may be able to return false directly in the href, I can't remember.
 
 
 On Sun, Jun 28, 2009 at 12:33 PM, Matthew Smith chedders...@gmail.comwrote:
 
 I have a cfform with the following for reset and submit:
 a href=## onclick=document.getElementById('form').reset()clear/a
 a href=## onclick=document.getElementById('form').submit()send/a

 Clicking the reset button clears the form but the goes to domain.com/#, as
 does the submit button.

 I can change it to this, and it works properly, but hovering over the
 button does not change the pointer.
 a onclick=document.getElementById('form').reset()clear/a
 a onclick=document.getElementById('form').submit()send/a

 Any way to do this?

 Thanks.



 
 

~|
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:324098
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 javascript reference

2009-06-28 Thread David McGuigan

a href= javascript: functionThatExistsButReturnsFalse( );  onclick= etc(
); etc/a

So, accessible to your page you'd have a

function mute( ){ return false( ); }

And then your buttons could be:

a href= javascript: mute( ); 
onclick=document.getElementById('form').reset()clear/a
a href= javascript: mute( ); 
onclick=document.getElementById('form').submit()send/a

You may be able to return false directly in the href, I can't remember.


On Sun, Jun 28, 2009 at 12:33 PM, Matthew Smith chedders...@gmail.comwrote:


 I have a cfform with the following for reset and submit:
 a href=## onclick=document.getElementById('form').reset()clear/a
 a href=## onclick=document.getElementById('form').submit()send/a

 Clicking the reset button clears the form but the goes to domain.com/#, as
 does the submit button.

 I can change it to this, and it works properly, but hovering over the
 button does not change the pointer.
 a onclick=document.getElementById('form').reset()clear/a
 a onclick=document.getElementById('form').submit()send/a

 Any way to do this?

 Thanks.


 

~|
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:324032
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 javascript reference

2009-06-28 Thread David McGuigan

Er,

function mute( ){ return false; }

Not false( );


On Sun, Jun 28, 2009 at 2:15 PM, David McGuigan davidmcgui...@gmail.comwrote:

 a href= javascript: functionThatExistsButReturnsFalse( );  onclick=
 etc( ); etc/a

 So, accessible to your page you'd have a

 function mute( ){ return false( ); }

 And then your buttons could be:

 a href= javascript: mute( ); 
 onclick=document.getElementById('form').reset()clear/a
 a href= javascript: mute( ); 
 onclick=document.getElementById('form').submit()send/a

 You may be able to return false directly in the href, I can't remember.



 On Sun, Jun 28, 2009 at 12:33 PM, Matthew Smith chedders...@gmail.comwrote:


 I have a cfform with the following for reset and submit:
 a href=## onclick=document.getElementById('form').reset()clear/a
 a href=## onclick=document.getElementById('form').submit()send/a

 Clicking the reset button clears the form but the goes to domain.com/#,
 as does the submit button.

 I can change it to this, and it works properly, but hovering over the
 button does not change the pointer.
 a onclick=document.getElementById('form').reset()clear/a
 a onclick=document.getElementById('form').submit()send/a

 Any way to do this?

 Thanks.


 

~|
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:324033
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 METADATA

2009-06-11 Thread Dave Watts

 Does anyone know if there is a way to get metadata about form fields in a 
 cfform? I want
 to be able to identify which fields are text fields when I pass the FORM 
 struct into a cfc.

That information isn't passed when your form is submitted. If you want
to pass that information, you can capture it in form fields and pass
those along with the existing form fields.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
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:323403
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 METADATA

2009-06-11 Thread Byte Me

Thanks for the information. Are you saying to use javascript to get the type, 
and then initialize a hidden field with that info? 

~|
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:323405
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 METADATA

2009-06-11 Thread Ian Skinner

Byte Me wrote:
 Thanks for the information. Are you saying to use javascript to get the type, 
 and then initialize a hidden field with that info? 

You could, I suppose.  But since HTML form elements don't just magically 
morph, it would probably be a lot easier to just code that in at the 
time when the html form element is coded.



~|
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:323407
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 METADATA

2009-06-11 Thread Dave Watts

 Thanks for the information. Are you saying to use javascript to get the type, 
 and then
 initialize a hidden field with that info?

Yeah, pretty much. I think I'd just have one hidden field with a list
of names and types of the other fields. Ian's suggestion is also good,
unless you're aiming for a generalized form handler of some sort.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
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:323412
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 METADATA

2009-06-11 Thread Byte Me

What about using a java object. I would prefer not to have any type of code, 
that is accessible to the user that could be altered. Since the cfinput tag 
describes what the field type is (and is already on the server), is there a 
java metadata object that could access this info on the server? 

~|
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:323413
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 METADATA

2009-06-11 Thread Ian Skinner

Byte Me wrote:
 What about using a java object. I would prefer not to have any type of code, 
 that is accessible to the user that could be altered. Since the cfinput tag 
 describes what the field type is (and is already on the server), is there a 
 java metadata object that could access this info on the server? 

It is probably important to ask here if you understand that all the 
cfform... cfinput... cfselect... tags are only code widgets that 
generate standard HTML and JavaScript for the developer.  They do not do 
anything that a developer could not do on their own.  There is nothing 
that will live on the server after the HTML and JavaScript has been 
generated and the response has been sent to the client.

If you want to save the form meta information is session or a database 
rather then send it to the client, that would be possible and would work 
just like saving in HTML form fields.  But it is still up to you to 
develop this logic when the HTML form is built.  There is no back door 
to the stateless nature of HTTP requests and response, only work arounds.


~|
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:323414
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 METADATA

2009-06-11 Thread Dave Watts

 What about using a java object. I would prefer not to have any type of code, 
 that is
 accessible to the user that could be altered. Since the cfinput tag describes 
 what the field
 type is (and is already on the server), is there a java metadata object that 
 could access
 this info on the server?

No, that's the whole point. When a form is submitted, all the server
gets is name-value pairs in a URL-encoded string. It doesn't matter if
you're using Java or CF or anything else on the server - that's just
how HTML forms work.

While CFINPUT does describe what the field type is, this information
is just used to generate an HTML form. CF doesn't remember anything
about the form after it's been rendered.

If you're delivering the form itself to the user, you could keep track
of the field types on the server before you deliver the form.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
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:323415
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 METADATA

2009-06-11 Thread Byte Me

I guess keeping track of the field types at the time the form is created is 
better than what I'm doing now. My field names are coded, so I loop through 
FORM.fieldNames looking for a keyword which triggers the correct type of 
validation. I could save the field name and field type in a session variable, 
then I wouldn't have to worry about the type being altered. 

~|
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:323416
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 METADATA

2009-06-11 Thread William Seiter

 I guess keeping track of the field types at the time the form is 
 created is better than what I'm doing now. My field names are coded, 
 so I loop through FORM.fieldNames looking for a keyword which triggers 
 the correct type of validation. I could save the field name and field 
 type in a session variable, then I wouldn't have to worry about the 
 type being altered. 


~|
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:323420
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 METADATA

2009-06-11 Thread William Seiter

Since the form submit won't inherently send the 'type' of the field that was 
sent, you could use a method of naming your fields according to the type of 
form field that was used.  eg.  select name=sel_stateoption...
or input type=text name=txt_Name_First
or textarea name=tarea_comments

Just a thought.

William

 Does anyone know if there is a way to get metadata about form fields 
 in a cfform? I want to be able to identify which fields are text 
 fields when I pass the FORM struct into a cfc.
 
 thanks 


~|
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:323422
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 METADATA

2009-06-11 Thread Gerald Guido

You may find this handy for grouping form fields.

http://formutils.riaforge.org/



On Thu, Jun 11, 2009 at 2:41 PM, Byte Me byteme...@verizon.net wrote:


 I guess keeping track of the field types at the time the form is created is
 better than what I'm doing now. My field names are coded, so I loop through
 FORM.fieldNames looking for a keyword which triggers the correct type of
 validation. I could save the field name and field type in a session
 variable, then I wouldn't have to worry about the type being altered.

 

~|
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:323421
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 METADATA

2009-06-11 Thread William Seiter

 I guess keeping track of the field types at the time the form is 
 created is better than what I'm doing now. My field names are coded, 
 so I loop through FORM.fieldNames looking for a keyword which triggers 
 the correct type of validation. I could save the field name and field 
 type in a session variable, then I wouldn't have to worry about the 
 type being altered.
--sorry if this is a repost, the first one didn't seem to go through--

Since the form submit won't inherently send the 'type' of the field that was 
sent, you could use a method of naming your fields according to the type of 
form field that was used.  eg.  lt;select name=sel_statelt;option...
or lt;input type=text name=txt_Name_First
or lt;textarea name=tarea_comments

Just a thought.

William 

~|
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:323423
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 METADATA

2009-06-11 Thread Byte Me

 Since the form submit won't inherently send the 'type' of the field 
 that was sent, you could use a method of naming your fields according 
 to the type of form field that was used.  eg.  lt;select 
 name=sel_statelt;option...
 or lt;input type=text name=txt_Name_First
 or lt;textarea name=tarea_comments
 
 Just a thought.
 
 William 

That's what I had been doing, but I realized that this method left me 
vulnerable to tampering, since keywords in the field name are sent to the user. 
The keywords could be changed, thus bypassing the validation. I now realize, 
from the responses above, that saving the name and type (on the server, in a 
session variable) is the answer. I can continue to used coded field names, but 
also do a comparison of what was sent, to what was returned, and if anything 
was changed in the field name, I can simply abort, better yet, I will know that 
there was an attempt to tamper with the form, and I can block the IP (for an 
one hour, five hours, a day, etc., etc.).


~|
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:323428
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 METADATA

2009-06-11 Thread Gerald Guido

 method left me vulnerable to tampering,

I am not sure what you are trying to accomplish. It seems rather vague. Are
you trying to prevent people from submitting their own forms to your site?

G?



On Thu, Jun 11, 2009 at 5:27 PM, Byte Me byteme...@verizon.net wrote:


  Since the form submit won't inherently send the 'type' of the field
  that was sent, you could use a method of naming your fields according
  to the type of form field that was used.  eg.  lt;select
  name=sel_statelt;option...
  or lt;input type=text name=txt_Name_First
  or lt;textarea name=tarea_comments
 
  Just a thought.
 
  William

 That's what I had been doing, but I realized that this method left me
 vulnerable to tampering, since keywords in the field name are sent to the
 user. The keywords could be changed, thus bypassing the validation. I now
 realize, from the responses above, that saving the name and type (on the
 server, in a session variable) is the answer. I can continue to used coded
 field names, but also do a comparison of what was sent, to what was
 returned, and if anything was changed in the field name, I can simply abort,
 better yet, I will know that there was an attempt to tamper with the form,
 and I can block the IP (for an one hour, five hours, a day, etc., etc.).


 

~|
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:323431
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 METADATA

2009-06-11 Thread Dave Watts

 That's what I had been doing, but I realized that this method left me 
 vulnerable to tampering,
 since keywords in the field name are sent to the user. The keywords could be 
 changed,
 thus bypassing the validation.

Why not just validate the values you receive against the constraints
of your database field types? What difference does it make whether a
value comes from an HTML INPUT vs some other field type?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
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:323432
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

2009-05-14 Thread Will Swain

Your previous button is a submit button - it's submitting the form so
running the validation code. You need to use a button instead.  

-Original Message-
From: Priya Koya [mailto:priya23...@gmail.com] 
Sent: 14 May 2009 17:02
To: cf-talk
Subject: cfform


I have a quick question. 

I have a required radio button in the form with the cfoutput group up with
the query:
cfform
cfoutput Query=Qry1 group=EmpName
cfinput type=radio name=Prod1 value=#ID# required=true message=You
need to select option/#EmpName# /cfoutput cfinput type=submit
name=btn_Previous value=Previousnbsp;nbsp;nbsp;nbsp;
nbsp;nbsp;nbsp;nbsp;cfinput type=submit name=btn_Submit
value=Continue/td/tr 
/cfform

cfif Isdefined(form.btn_Submit)
cflocation url =addinfo.cfm addtoken=no /cfif

cfif isdefined(form.btn_Previous)
cflocation url=index.cfm
/cfif
I have the Previous button on that page and the continue button.
If I click on the previous button it shows the alert message to select
option.
Is there anyways we can do that if we hit the previous button , it should
not show alert even if we dont select the option and if we hit the continue
button it should show an alert if option not selected.

Thanks,
Priya 



~|
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:322506
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

2009-05-14 Thread Priya Koya

Thanks for your response but if I use button it is not going to the previous 
page.

Priya.

Your previous button is a submit button - it's submitting the form so
running the validation code. You need to use a button instead.  

I have a quick question. 

I have a required radio button in the form with the cfoutput group up with
the query:
cfform
cfoutput Query=Qry1 group=EmpName
cfinput type=radio name=Prod1 value=#ID# required=true message=You
need to select option/#EmpName# /cfoutput cfinput type=submit
name=btn_Previous value=Previousnbsp;nbsp;nbsp;nbsp;
nbsp;nbsp;nbsp;nbsp;cfinput type=submit name=btn_Submit
value=Continue/td/tr
/cfform

cfif Isdefined(form.btn_Submit)
   cflocation url =addinfo.cfm addtoken=no /cfif

cfif isdefined(form.btn_Previous)
   cflocation url=index.cfm
/cfif
I have the Previous button on that page and the continue button.
If I click on the previous button it shows the alert message to select
option.
Is there anyways we can do that if we hit the previous button , it should
not show alert even if we dont select the option and if we hit the continue
button it should show an alert if option not selected.

Thanks,
Priya 

~|
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:322510
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

2009-05-14 Thread Will Swain

Can you not assign an action to the button using js?

function previousPage() {
window.location.href = index.cfm;
} 

input type=button value=Previous onClick=previousPage()

-Original Message-
From: Priya Koya [mailto:priya23...@gmail.com] 
Sent: 14 May 2009 17:45
To: cf-talk
Subject: Re: cfform


Thanks for your response but if I use button it is not going to the previous
page.

Priya.

Your previous button is a submit button - it's submitting the form so 
running the validation code. You need to use a button instead.

I have a quick question. 

I have a required radio button in the form with the cfoutput group up 
with the query:
cfform
cfoutput Query=Qry1 group=EmpName cfinput type=radio 
name=Prod1 value=#ID# required=true message=You need to select 
option/#EmpName# /cfoutput cfinput type=submit
name=btn_Previous value=Previousnbsp;nbsp;nbsp;nbsp;
nbsp;nbsp;nbsp;nbsp;cfinput type=submit name=btn_Submit
value=Continue/td/tr
/cfform

cfif Isdefined(form.btn_Submit)
   cflocation url =addinfo.cfm addtoken=no /cfif

cfif isdefined(form.btn_Previous)
   cflocation url=index.cfm
/cfif
I have the Previous button on that page and the continue button.
If I click on the previous button it shows the alert message to select 
option.
Is there anyways we can do that if we hit the previous button , it 
should not show alert even if we dont select the option and if we hit 
the continue button it should show an alert if option not selected.

Thanks,
Priya



~|
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:322514
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

2009-05-14 Thread Priya Koya

sorry.. I was thinking something else... I got it by using Button...

Thanks,
Priya
Thanks for your response but if I use button it is not going to the previous 
page.

Priya.

Priya 

~|
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:322515
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 upload - Form Field contains no file

2009-04-02 Thread Fawzi Amadu

I have re-written the code and it is working, except that the renaming of the 
files (filefield=#variables.filename#) part is not working. When I dump (see 
code below) the session variable that I am assigning to filefield, I get the 
correct result, but the filename is not changed on upload when I check them at 
where there are stored.


!--- Assign the productID to a session variable ---
   
cflock timeout=20 scope=Session type=Exclusive
  cfset Session.ExtraProductImgName = URL.Cnsmr_ProductID
/cflock

!--testing for the value of session variable --
   cfdump var=#Session.ExtraProductImgName#


!---create variable to hold destination of uploaded files---
cfset upLoadDestination = #ExpandPath('images/consumer/')#
cfif isdefined(form.upload) 
  cfloop index=i from=1 to=#Session.numberoffields# step=1
   cfset filename = #Session.ExtraProductImgName#  #i#
 !--- cfif evaluate(variables.filename) neq  ---
  cffile action=UPLOAD destination=#upLoadDestination# 
nameconflict=makeunique filefield=#variables.filename#
 !---/cfif--- 
  /cfloop
   
   !--- Delete the session variable after uploading files related to 
this particular ProductID ---

   cflock timeout=20 scope=Session type=Exclusive
 cfset StructDelete(Session, ExtraProductImgName)
   /cflock
   

/cfif
/cfif !--- end extra upload processing ---

Fawzi,
Are you saying that you removed the nested cf-tags and the problem persists?
If that is what you are saying, please post your new code as edited, so we
can see what else might be wrong.

William



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321209
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 upload - Form Field contains no file

2009-04-02 Thread Azadi Saryev

cffile action=upload DOES NOT rename files. it just moves the
uploaded file from the temp upload dir on the server to the dir on the
server you specify in the DESTINATION attribute.
depending on the value of NAMECONFLICT attribute, this action will
either overwrite a file with the same name if it already exists in the
destination folder, or will append a sequential number to the file name.
to rename a file you should use cffile action=rename.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Fawzi Amadu wrote:
 I have re-written the code and it is working, except that the renaming of the 
 files (filefield=#variables.filename#) part is not working. When I dump 
 (see code below) the session variable that I am assigning to filefield, I get 
 the correct result, but the filename is not changed on upload when I check 
 them at where there are stored.


 !--- Assign the productID to a session variable ---

 cflock timeout=20 scope=Session type=Exclusive
 cfset Session.ExtraProductImgName = URL.Cnsmr_ProductID
 /cflock

 !--testing for the value of session variable --
cfdump var=#Session.ExtraProductImgName#


 !---create variable to hold destination of uploaded files---
 cfset upLoadDestination = #ExpandPath('images/consumer/')#
 cfif isdefined(form.upload) 
   cfloop index=i from=1 to=#Session.numberoffields# step=1
  cfset filename = #Session.ExtraProductImgName#  #i#
!--- cfif evaluate(variables.filename) neq  ---
 cffile action=UPLOAD destination=#upLoadDestination# 
 nameconflict=makeunique filefield=#variables.filename#
!---/cfif--- 
 /cfloop
  
  !--- Delete the session variable after uploading files related to 
 this particular ProductID ---

  cflock timeout=20 scope=Session type=Exclusive
cfset StructDelete(Session, ExtraProductImgName)
/cflock
  
 
 /cfif
 /cfif !--- end extra upload processing ---

   
 Fawzi,
 Are you saying that you removed the nested cf-tags and the problem persists?
 If that is what you are saying, please post your new code as edited, so we
 can see what else might be wrong.

 William

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321210
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 upload - Form Field contains no file

2009-03-31 Thread Adrian Lynch

Take the cfoutputs out of the cfinput tag.

Adrian

 -Original Message-
 From: Fawzi Amadu [mailto:abd...@gmail.com]
 Sent: 31 March 2009 16:54
 To: cf-talk
 Subject: Cfform upload - Form Field contains no file
 
 
 My code is throwing an error the baffles me. With the code below, when
 I select the files I need to be uploaded, the server returns an error
 that says that the field contained no file, while I had been able to
 select a file for that field. What is wrong with my code:
 
 cfform action=uploadExtraConsumerProductImages.cfm
 enctype=multipart/form-data method=post
 cfloop index=i from=1 to=#Session.numberoffields#
 step=1
   cfset filename = #Session.ExtraProductImgName#  #i#
   !--- Set the respective file name for the uploaded image ---
cfinput type=File
 name=cfoutput#variables.filename#/cfoutput /br /
 /cfloop
cfinput type=Submit name=upload value=upload /
 /cfform


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321120
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 upload - Form Field contains no file

2009-03-31 Thread Azadi Saryev

this:
cfinput type=File name=cfoutput#variables.filename#/cfoutput /

is just wrong. you can't nest cf tags like that, and you do not need to:
cf automatically evaluates variables in cf tag attributes:

cfinput type=file name=#variables.filename# will do just fine.

whay cf throws that error is a different issue. my guess would be
because you are giving a wrong value to FILEFIELD attribute of cffile
tag on the form's action page...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Fawzi Amadu wrote:
 My code is throwing an error the baffles me. With the code below, when I 
 select the files I need to be uploaded, the server returns an error that says 
 that the field contained no file, while I had been able to select a file for 
 that field. What is wrong with my code:

 cfform action=uploadExtraConsumerProductImages.cfm 
 enctype=multipart/form-data method=post
 cfloop index=i from=1 to=#Session.numberoffields# step=1 
   cfset filename = #Session.ExtraProductImgName#  #i#
   !--- Set the respective file name for the uploaded image ---
cfinput type=File 
 name=cfoutput#variables.filename#/cfoutput /br /
 /cfloop   
cfinput type=Submit name=upload value=upload /
 /cfform
   

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321121
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 upload - Form Field contains no file

2009-03-31 Thread Fawzi Amadu

I had posted my full code earlier but got no response. I would appreciate it if 
you can look at it as see whether your thinking about giving a wrong value to 
the FILEFIELD is correct. The code is at: 
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:59106

Thanks for your help.


this:
cfinput type=File name=cfoutput#variables.filename#/cfoutput /

is just wrong. you can't nest cf tags like that, and you do not need to:
cf automatically evaluates variables in cf tag attributes:

cfinput type=file name=#variables.filename# will do just fine.

whay cf throws that error is a different issue. my guess would be
because you are giving a wrong value to FILEFIELD attribute of cffile
tag on the form's action page...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Fawzi Amadu wrote:
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321135
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 upload - Form Field contains no file

2009-03-31 Thread Fawzi Amadu

I had posted my full code earlier but got no response. I would appreciate it if 
you can look at it as see whether your thinking about giving a wrong value to 
the FILEFIELD is correct. The code is at: 
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:59106

Thanks for your help.


this:
cfinput type=File name=cfoutput#variables.filename#/cfoutput /

is just wrong. you can't nest cf tags like that, and you do not need to:
cf automatically evaluates variables in cf tag attributes:

cfinput type=file name=#variables.filename# will do just fine.

whay cf throws that error is a different issue. my guess would be
because you are giving a wrong value to FILEFIELD attribute of cffile
tag on the form's action page...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Fawzi Amadu wrote:
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321136
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 upload - Form Field contains no file

2009-03-31 Thread William Seiter

Fawzi,
Are you saying that you removed the nested cf-tags and the problem persists?
If that is what you are saying, please post your new code as edited, so we
can see what else might be wrong.

William

-Original Message-
From: Fawzi Amadu [mailto:abd...@gmail.com] 
Sent: Tuesday, March 31, 2009 3:39 PM
To: cf-talk
Subject: Re: Cfform upload - Form Field contains no file


I had posted my full code earlier but got no response. I would appreciate it
if you can look at it as see whether your thinking about giving a wrong
value to the FILEFIELD is correct. The code is at:
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:59106

Thanks for your help.


this:
cfinput type=File name=cfoutput#variables.filename#/cfoutput /

is just wrong. you can't nest cf tags like that, and you do not need to:
cf automatically evaluates variables in cf tag attributes:

cfinput type=file name=#variables.filename# will do just fine.

whay cf throws that error is a different issue. my guess would be
because you are giving a wrong value to FILEFIELD attribute of cffile
tag on the form's action page...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Fawzi Amadu wrote:
 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321137
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 upload - Form Field contains no file

2009-03-31 Thread Azadi Saryev

 filefield=#variables.filename#

the FILEFIELD attribute of cffile tag must contain the NAME of your
input type=file form element.
NOT the VALUE of that field, or some arbitrary value - just the name of
file input field.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Fawzi Amadu wrote:
 I had posted my full code earlier but got no response. I would appreciate it 
 if you can look at it as see whether your thinking about giving a wrong value 
 to the FILEFIELD is correct. The code is at: 
 http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:59106

 Thanks for your help.

   

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321154
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 onsubmit issue

2009-03-06 Thread Azadi Saryev

when you use cfform, cf automatically creates a js function named
_CF_Check[your cfform's NAME attribute value] to validate your form, and
adds the onsubmit attribute to the form tag.  i guess it overwrites any
onsubmit you put in the tag while doing this...
one way i managed to have custom validation work with cfform is to NOT
use a SUBMIT button, but a regular button that fires off a custom
validation js function and calls submit() at the end if the form validates.
if you ALSO want to use cf's built-in validation alongside your custom
validation, just call the _CF_Check[you form's name] function at the end
of your custom validation function - iirc the cf's autogenerated js
validation already includes the submit() part...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Gerald Guido wrote:
 Anyone seen this before?

 On Thu, Mar 5, 2009 at 12:04 PM, Gerald Guido gerald.gu...@gmail.comwrote:

   
 I have some custom validation code that I want to include using onsubmit on
 CFForm and the validation function is not being called

 I am calling it like this
 cfform action=#script_name# method=post enablecab=no name=Myform
 onsubmit=return(checkForm(this)  false);

 But the rendered HTML looks like this.

 form name=Myform action=/OKGEARUP/EventAdmin/events.cfm method=post
 onsubmit=return _CF_checkMyform(this)

 This is the first time I mixed regular JS with CFform. I RTFM and I am not
 seeing anything about problems with Mix and match

 Am I missing something here?

 As always TIA.

 G!
 --
 Gerald Guido
 http://www.myinternetisbroken.com


 To invent, you need a good imagination and a pile of junk.
 -- Thomas A. Edison



 


   

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320159
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 onsubmit issue

2009-03-06 Thread Gerald Guido

Thank you very much. I wanted to avoid rolling my own validation for some 30
fields. Sometimes CF makes me lazy... errr... I mean productive.

G!

On Thu, Mar 5, 2009 at 11:11 PM, Azadi Saryev az...@sabai-dee.com wrote:


 when you use cfform, cf automatically creates a js function named
 _CF_Check[your cfform's NAME attribute value] to validate your form, and
 adds the onsubmit attribute to the form tag.  i guess it overwrites any
 onsubmit you put in the tag while doing this...
 one way i managed to have custom validation work with cfform is to NOT
 use a SUBMIT button, but a regular button that fires off a custom
 validation js function and calls submit() at the end if the form validates.
 if you ALSO want to use cf's built-in validation alongside your custom
 validation, just call the _CF_Check[you form's name] function at the end
 of your custom validation function - iirc the cf's autogenerated js
 validation already includes the submit() part...

 Azadi Saryev
 Sabai-dee.com
 http://www.sabai-dee.com/



 Gerald Guido wrote:
  Anyone seen this before?
 
  On Thu, Mar 5, 2009 at 12:04 PM, Gerald Guido gerald.gu...@gmail.com
 wrote:
 
 
  I have some custom validation code that I want to include using onsubmit
 on
  CFForm and the validation function is not being called
 
  I am calling it like this
  cfform action=#script_name# method=post enablecab=no
 name=Myform
  onsubmit=return(checkForm(this)  false);
 
  But the rendered HTML looks like this.
 
  form name=Myform action=/OKGEARUP/EventAdmin/events.cfm
 method=post
  onsubmit=return _CF_checkMyform(this)
 
  This is the first time I mixed regular JS with CFform. I RTFM and I am
 not
  seeing anything about problems with Mix and match
 
  Am I missing something here?
 
  As always TIA.
 
  G!
  --
  Gerald Guido
  http://www.myinternetisbroken.com
 
 
  To invent, you need a good imagination and a pile of junk.
  -- Thomas A. Edison
 
 
 
 
 
 
 

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320161
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 onsubmit issue

2009-03-05 Thread Gerald Guido

Anyone seen this before?

On Thu, Mar 5, 2009 at 12:04 PM, Gerald Guido gerald.gu...@gmail.comwrote:

 I have some custom validation code that I want to include using onsubmit on
 CFForm and the validation function is not being called

 I am calling it like this
 cfform action=#script_name# method=post enablecab=no name=Myform
 onsubmit=return(checkForm(this)  false);

 But the rendered HTML looks like this.

 form name=Myform action=/OKGEARUP/EventAdmin/events.cfm method=post
 onsubmit=return _CF_checkMyform(this)

 This is the first time I mixed regular JS with CFform. I RTFM and I am not
 seeing anything about problems with Mix and match

 Am I missing something here?

 As always TIA.

 G!
 --
 Gerald Guido
 http://www.myinternetisbroken.com


 To invent, you need a good imagination and a pile of junk.
 -- Thomas A. Edison





-- 
Gerald Guido
http://www.myinternetisbroken.com


To invent, you need a good imagination and a pile of junk.
-- Thomas A. Edison


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320153
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 and JS Script Source

2008-09-14 Thread denstar
Hey Les,

Hmmm... not the most elegant solution, but...

Sounds like you're doing multiple requests, right?  So even if you
stuck the scripts in the request scope, you'd have multiple copies.
(At first I was going to say, use a custom scriptSrc for the cfform,
and point it at a CF file that only spits out the JS once per
request-- for all I know, that's what CF does anyways).

So, dunno if it's the most elegant solution, but you could set the
scriptSrc for your cfforms to a blank url.  Just an empty page.

For all but one of the cfforms!  Vwalla!

Or, have them all be blank, and read in the JS at the top of your page.

That's about all I can figure.

-- 
Insane sects grow with the same rhythm as big organizations. It is the
rhythm of total destruction.
Theodor Adorno

On Fri, Sep 12, 2008 at 12:44 PM, Les Mizzell wrote:
 William Seiter wrote:
 in your cfinput/cfselect/cf[formtagname]
 add this parameter: onValidate


 William, I understand how to use validation in cffroms. The problem is
 that I need to have multiple forms on a single page, and each form wants
 to generate its' own block of javascript - so if you open up the page
 with the multiple forms in the browser, and do view the source, you'll
 see the _CF_checkform1(_CF_this) function repeated in the source for
 each form on the page.

 I'm trying to find a way around this and have all forms look at a single
 js source, without generating multiple copies on the same page 9which
 ultimately causes validation to fail...)

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312524
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 and JS Script Source

2008-09-12 Thread Claude Schneegans
 Here's the problem -

One of the reasons I stopped using CFFORM more than10 years ago
and developed my own tags and JS validation... ;-)

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312451
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 and JS Script Source

2008-09-12 Thread J.J. Merrick
Technically you could just use form and not cfform and see what HTML
is outputted. CF just creates regular forms and uses JS functions to
call the validation.


Or just use jQuery form library for server-side validation and stop
the headaches :-)


-J.J.

On Fri, Sep 12, 2008 at 10:40 AM, Les Mizzell [EMAIL PROTECTED] wrote:
 Is there any way to *force* CFFORM to use JS that *I* specify to be used
 for validation, and not the self-generated one?

 Here's the problem -

 I've got a bunch of related forms in a Spry tabbed panel set. But, each
 CFFORM tag is generating it's own JS, so if you do a view source, you've
 got the validation js repeated 10 times at the top of the page, and none
 of the validation works.

 I'm trying to find a way to include a single JS file, and get all the
 forms to reference that ONE js file and not generate multiples ...

 It's can't be one big form - each tab needs to be a separate (and
 sometimes multiple forms on one tab) form unique unto itself.

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312453
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 and JS Script Source

2008-09-12 Thread William Seiter
in your cfinput/cfselect/cf[formtagname]
add this parameter: onValidate

for instance:
cfinput name=firstname onValidate=textOnly value= message=Your First 
Name can only contain letters'

When the form validates this field, it will call the javascript function in 
that parameter (textOnly).  In your javascript function, you will have 3 values 
sent to it.  The form object, the field object as well as the field object's 
value.  You use that information to verify that the validation is accurate and 
then return either 'true' or 'false'.  Coldfusion does the rest.

William

Is there any way to *force* CFFORM to use JS that *I* specify to be used 
for validation, and not the self-generated one?

Here's the problem -

I've got a bunch of related forms in a Spry tabbed panel set. But, each 
CFFORM tag is generating it's own JS, so if you do a view source, you've 
got the validation js repeated 10 times at the top of the page, and none 
of the validation works.

I'm trying to find a way to include a single JS file, and get all the 
forms to reference that ONE js file and not generate multiples ...

It's can't be one big form - each tab needs to be a separate (and 
sometimes multiple forms on one tab) form unique unto itself. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312455
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 and JS Script Source

2008-09-12 Thread Les Mizzell
William Seiter wrote:
 in your cfinput/cfselect/cf[formtagname]
 add this parameter: onValidate


William, I understand how to use validation in cffroms. The problem is 
that I need to have multiple forms on a single page, and each form wants 
to generate its' own block of javascript - so if you open up the page 
with the multiple forms in the browser, and do view the source, you'll 
see the _CF_checkform1(_CF_this) function repeated in the source for 
each form on the page.

I'm trying to find a way around this and have all forms look at a single 
js source, without generating multiple copies on the same page 9which 
ultimately causes validation to fail...)

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312458
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 validation for newbie

2008-08-14 Thread Dave Phillips
Christine,

I believe you will need to do some custom javascript validation for this
(someone who has used cfform a lot can surely suggest otherwise).  Here's
how you could do it:

Add the following to cfform tag 'onsubmit=return doSubmit();

Then, inside your head tags, add the following:

script
vunction doSubmit() {
 var oForm = document.formname;
 if(oForm.discode.value != 'xyz123'  oForm.discode.value != 'abc1234') {
  alert('put your error message here');
  return false;
}
// if we are here, then one of the values were entered.
  if(oForm.discode.value == 'xyz123') {
oForm.paytype[0].checked = true;
  }
  else {
oForm.paytype[1].checked = true;
  }
  return true;
}
/script

This is as assuming that your first radio button is NAxyz123 and your second
radio button is NAabc1234.   You can adjust accordingly, but this should get
you on the right track.

DISCLAIMER:  I have not tested the above code - so it may not be bug free.
:)

Dave
-Original Message-
From: Christine Stephens [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2008 9:23 AM
To: CF-Talk
Subject: cfform validation for newbie

HI

I need assistance with cfform validation, please.

I have a text field 'discode' that is not required however if it is filled
out it can only have 2 possible answers in it: 'xyz123' or 'abc1234'.

And then if the 'discode' field is filled out correctly with 1 of those 2
values then another radion button field 'paytype' needs to be set to
'NA#discode#'.

can anyone help me? thank you. 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310968
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 validation for newbie

2008-08-14 Thread Christine Stephens
Hi Dave

the line -  if(oForm.discode.value != 'xyz123'  oForm.discode.value != 
'abc1234') { is giving an error - saying Expected ';'

also i wanted to claify - i might not have been so clear in my request...

the user could enter 1 of 2 possible entries into the non-required field... 
'xyz123' OR 'abc1234'

i only add that in because it looked like in the coding below - that it would 
only accept the answer of 'xyz123' - do you know how you could have it check 
for both?

Thank you!!

Christine,

I believe you will need to do some custom javascript validation for this
(someone who has used cfform a lot can surely suggest otherwise).  Here's
how you could do it:

Add the following to cfform tag 'onsubmit=return doSubmit();

Then, inside your head tags, add the following:

script
vunction doSubmit() {
 var oForm = document.formname;
 if(oForm.discode.value != 'xyz123'  oForm.discode.value != 'abc1234') {
  alert('put your error message here');
  return false;
}
// if we are here, then one of the values were entered.
  if(oForm.discode.value == 'xyz123') {
oForm.paytype[0].checked = true;
  }
  else {
oForm.paytype[1].checked = true;
  }
  return true;
}
/script

This is as assuming that your first radio button is NAxyz123 and your second
radio button is NAabc1234.   You can adjust accordingly, but this should get
you on the right track.

DISCLAIMER:  I have not tested the above code - so it may not be bug free.
:)

Dave
HI

I need assistance with cfform validation, please.

I have a text field 'discode' that is not required however if it is filled
out it can only have 2 possible answers in it: 'xyz123' or 'abc1234'.

And then if the 'discode' field is filled out correctly with 1 of those 2
values then another radion button field 'paytype' needs to be set to
'NA#discode#'.

can anyone help me? thank you. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311017
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 validation for newbie

2008-08-14 Thread Dave Phillips
Sorry, I thought the field was required.  Try this:

if(oForm.discode.value.length  0  !(oForm.discount.value == 'xyz123' ||
oForm.discount.value == 'abc1234')) {

This says if they enter a value, and that value is NOT 'xyz123' or
'abc1234', then display the error.

If they don't enter a value, it will never evaluate the comparison
condition.

See how that works.  If it doesn't work, post your code as you have it so we
can look at it all.

Dave

-Original Message-
From: Christine Stephens [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2008 3:01 PM
To: CF-Talk
Subject: Re: cfform validation for newbie

Hi Dave

the line -  if(oForm.discode.value != 'xyz123'  oForm.discode.value !=
'abc1234') { is giving an error - saying Expected ';'

also i wanted to claify - i might not have been so clear in my request...

the user could enter 1 of 2 possible entries into the non-required field...
'xyz123' OR 'abc1234'

i only add that in because it looked like in the coding below - that it
would only accept the answer of 'xyz123' - do you know how you could have it
check for both?

Thank you!!


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311019
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 in Spry Panels validation problem

2008-05-21 Thread Les Mizzell
 Why not just make it one big form? You can still use panels to separate form
 fields.

The forms are all related - but many are updating separate database 
tables and performing unrelated functions from each other. I have done 
Spry panels inside a single form before, and it worked great, but 
unfortunately isn't going to work in this application. Each panel needs 
to be it's own form.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305804
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 in Spry Panels validation problem

2008-05-21 Thread Dave Watts
  Why not just make it one big form? You can still use panels to 
  separate form fields.
 
 The forms are all related - but many are updating separate 
 database tables and performing unrelated functions from each 
 other. I have done Spry panels inside a single form before, 
 and it worked great, but unfortunately isn't going to work in 
 this application. Each panel needs to be it's own form.

There's no reason you can't build one form that can post different data to
different URLs for different functions, or a form that can post different
data to a single URL which can then figure out what to do with the data.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305806
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 in Spry Panels validation problem

2008-05-21 Thread Massimo Foti
You may take a look at version TMT Validator 2.0, it's a release candidate, 
I am polishing the documentation right now:
http://www.massimocorner.com/libraries/validator/

See it in action here:
http://www.massimocorner.com/libraries/validator/samples/index.htm


Massimo Foti, web-programmer for hire
Tools for ColdFusion, JavaScript and Dreamweaver:
http://www.massimocorner.com



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305811
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 in Spry Panels validation problem

2008-05-20 Thread Dave Watts
 I'm using a Spry tabbed panel set for a multi-form admin system.
 
 Problem I'm having - is that if I'm using validation on just 
 ONE form on any of the panels, validation works just fine.
 
 If I add validation to *another* form on another panel, the 
 validation breaks for everything.
 
 Viewing the source of the page in the browser - the generated 
 validation javascript is being duplicated once for each form 
 contained in the panels.
 
 Suggestions?

Why not just make it one big form? You can still use panels to separate form
fields.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305779
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 binding text field, visible to checkbox

2008-04-19 Thread Paul Ihrig
ok...
i can bind from the cftextarea...
but why cant i Len the chars?

cfinput type=text bind=LEN({descLong.text}) name=word_count
id=word_count style=border:0px; size=50 width=300 height=40
Characters remainingbr /

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303805
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 ie6 -press ok to continue loading the content of this page

2008-04-18 Thread Kevin Aebig
I originally wrote a custom tag to fix that, but I thought it had been fixed
directly in CF since.

Custom tag can be found:
http://www.keslabs.com/stuff/eolas/

!k

-Original Message-
From: Paul Ihrig [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 18, 2008 8:26 AM
To: CF-Talk
Subject: cfform flash ie6 -press ok to continue loading the content of this
page

ok, just found press ok to continue loading the content of this page
when using IE 6
its on a page that uses cfform flash and a 3 select realted thingy...

i have googled press ok to continue loading the content of this page
but am not finding what i would expect...

any one have a quick fix?
thanks
-paul



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303745
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 ie6 -press ok to continue loading the content of this page

2008-04-18 Thread Paul Ihrig
hey kevin.
am trying it but i still get the pop-up to allow item.
i see form below as normal, but once i click ok it vanishes!

every thig works fine in ie7 and ff

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303749
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 ie6 -press ok to continue loading the content of this page

2008-04-18 Thread Paul Ihrig
could it be a multiple ie's issue?

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303761
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 format=flash onload

2008-04-16 Thread James Blaha
Kevin,

I think I see what you mean now. Your code is working. I just need to click 
somwhere on the flash form to activate it. Can this be done on the onload of 
the body?

Thanks for all your help (All of You)!

-Jim 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303552
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 format=flash onload

2008-04-16 Thread James Blaha
Kevin,

http://www.webmasterworld.com/website_technology/3467406.htm

I think this is my issue, it applies to IE and FireFox though.

-Jim 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303553
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 format=flash onload

2008-04-16 Thread Kevin Aebig
Yep... that's what I was talking about.

Coldfusion is supposed to handle that by itself, but I can't recall what
version it was implemented in.

Can you supply a link to the page having the problem... I might be able to
help.

!k

-Original Message-
From: James Blaha [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 16, 2008 6:35 AM
To: CF-Talk
Subject: Re: cfform format=flash onload

Kevin,

http://www.webmasterworld.com/website_technology/3467406.htm

I think this is my issue, it applies to IE and FireFox though.

-Jim 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303567
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 format=flash onload

2008-04-16 Thread James Blaha
I'll post a link in the morning. Thanks Kevin. If I dont get it to work I give 
up at this point. I think I need to include some large JS to make it work. I 
dont want a hack in the code. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303598
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 format=flash onload

2008-04-16 Thread Kevin Aebig
Many people have found that the required JS file doesn't get loaded because
of an issue with the CFIDE mapping.

You can navigate to the script yourself and copy it to your websites
directory structure to include it yourself manually to fix this issue.

Take a look at the following page and specifically the scriptSrc attribute
of the CFForm tag.

http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p38.htm 

!k

-Original Message-
From: James Blaha [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 16, 2008 2:12 PM
To: CF-Talk
Subject: Re: cfform format=flash onload

I'll post a link in the morning. Thanks Kevin. If I dont get it to work I
give up at this point. I think I need to include some large JS to make it
work. I dont want a hack in the code. 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303599
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 format=flash onload

2008-04-15 Thread Jason Durham
I had this in the onload attribute of the form.

cfformitem type=script
function setupForm() {
Selection.setFocus(userLogin);
}
/cfformitem

This creates a soft glow around the input as if it's selected but you still 
have to click on it to type. From the testing/research I did... I don't think 
it's possible.  If you figure it out, I'd love to know the solution.


-Original Message-
From: James Blaha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 15, 2008 12:13 PM
To: CF-Talk
Subject: cfform format=flash onload

All,

Does anyone know the action script to setFocus and have the user be able to 
start typing into a cfinput text field?

-Jim

cfsavecontent variable=preSelect
_root.UserID.setFocus();
/cfsavecontent

cfform format=flash skin=haloblue onload=#preSelect#

 cfformgroup type=horizontal id=myUID
 
 cfinput name=UserID width=200 maxlength=50 required=yes 
value= type=text
  
 /cfformgroup
/cfform



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303447
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 format=flash onload

2008-04-15 Thread Greg Luce
James you might have to use creationComplete.
Something like:

cfsavecontent variable=onLoad

var myListener = {};
myListener.creationComplete = function() {
 _root.UserID.setFocus();
}
/cfsavecontent
Greg

On Tue, Apr 15, 2008 at 1:13 PM, James Blaha [EMAIL PROTECTED] wrote:

 All,

 Does anyone know the action script to setFocus and have the user be able
 to start typing into a cfinput text field?

 -Jim

 cfsavecontent variable=preSelect
_root.UserID.setFocus();
 /cfsavecontent

 cfform format=flash skin=haloblue onload=#preSelect#

 cfformgroup type=horizontal id=myUID

 cfinput name=UserID width=200 maxlength=50 required=yes
 value= type=text

 /cfformgroup
 /cfform

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303448
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 format=flash onload

2008-04-15 Thread James Blaha
Hi Jason,

Thanks I'm trying to get the dream option to work where you can just start 
typing.

I've been googling but no luck yet.

I'll post a solution if I get it working.

-Jim 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303449
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 format=flash onload

2008-04-15 Thread Greg Luce
Yes, it was kinda tricky. I forgot earlier to say you'll need a hidden input
to trigger it like this:

cfsavecontent
variable=onLoad
var myListener = {};
myListener.creationComplete = function() {
 _root.UserID.setFocus();
}
/cfsavecontent
cfsavecontent variable=triggerSetup
{triggerLoad.dispatchEvent({type:'change'})}
/cfsavecontent
cfinput
type=hidden name=trigger bind=#triggerSetup#

Greg

On Tue, Apr 15, 2008 at 2:21 PM, Jason Durham [EMAIL PROTECTED] wrote:

 I had this in the onload attribute of the form.

cfformitem type=script
function setupForm() {
Selection.setFocus(userLogin);
}
/cfformitem

 This creates a soft glow around the input as if it's selected but you
 still have to click on it to type. From the testing/research I did... I
 don't think it's possible.  If you figure it out, I'd love to know the
 solution.


 -Original Message-
 From: James Blaha [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 15, 2008 12:13 PM
 To: CF-Talk
 Subject: cfform format=flash onload

 All,

 Does anyone know the action script to setFocus and have the user be able
 to start typing into a cfinput text field?

 -Jim

 cfsavecontent variable=preSelect
_root.UserID.setFocus();
 /cfsavecontent

 cfform format=flash skin=haloblue onload=#preSelect#

 cfformgroup type=horizontal id=myUID

 cfinput name=UserID width=200 maxlength=50 required=yes
 value= type=text

 /cfformgroup
 /cfform



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303450
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 format=flash onload

2008-04-15 Thread James Blaha
Hi Greg,

So close: onload=_root.UserID.setFocus(); this just highlights the box.

I couldnt get what you sent to work.

-Jim

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303452
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 format=flash onload

2008-04-15 Thread James Blaha
Greg,

Could please post a small working example?

Thanks for your post!

-Jim 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303458
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 format=flash onload

2008-04-15 Thread Greg Luce
James,

I've never done the focus onLoad, but I have done other functions in the
onLoad event. Try this:

cfsavecontent variable=onLoad
   UserID.setFocus();
/cfsavecontent
cfsavecontent variable=binding
   {(trigger.text != '') ? trigger.dispatchEvent({type:'change'}) : 'init'}
/cfsavecontent
cfform format=flash skin=haloblue
  cfformgroup type=horizontal id=myUID
cfinput name=UserID width=200 maxlength=50 required=yes
value= type=text
cfinput type=text visible=false height='0' width=0 name=trigger
value=init onchange=#onLoad# bind=#binding#
  /cfformgroup
/cfform

Greg

On Tue, Apr 15, 2008 at 2:52 PM, James Blaha [EMAIL PROTECTED] wrote:

 Greg,

 Could please post a small working example?

 Thanks for your post!

 -Jim

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303467
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 format=flash onload

2008-04-15 Thread Kevin Aebig
The key is to set the selection in the text box as well... than the cursor
will be there.

!k

-Original Message-
From: James Blaha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 15, 2008 12:43 PM
To: CF-Talk
Subject: Re: cfform format=flash onload

Hi Greg,

So close: onload=_root.UserID.setFocus(); this just highlights the box.

I couldnt get what you sent to work.

-Jim



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303468
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 format=flash onload

2008-04-15 Thread James Blaha
Hi Kevin,

How do I set the selection? Can those statements both be in the onload=?

-Jim





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303481
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 format=flash onload

2008-04-15 Thread James Blaha
Greg,

When you run your code in your environment then do a page refresh is the cursor 
blinking in the text field?

-Jim 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303483
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 format=flash onload

2008-04-15 Thread Kevin Aebig
Selection.setFocus(username_txt);
Selection.setSelection(0, username_txt.text.length);

First line sets the focus which cover tabbing and non-mouse navigation. The
second line actually sets the cursor to be active inside the textfield.

!k

-Original Message-
From: James Blaha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 15, 2008 2:37 PM
To: CF-Talk
Subject: Re: cfform format=flash onload

Hi Kevin,

How do I set the selection? Can those statements both be in the onload=?

-Jim







~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303492
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 format=flash onload

2008-04-15 Thread Qasim Rasheed
This works for me on CF8

cfform format=flash skin=haloblue onload=password.setFocus()

cfformgroup type=horizontal id=myUID

cfinput name=UserID width=200 maxlength=50 required=yes
value= type=text

 cfinput name=password width=200 maxlength=50 required=yes
value= type=text
/cfformgroup
/cfform

On Tue, Apr 15, 2008 at 4:42 PM, James Blaha [EMAIL PROTECTED] wrote:

 Greg,

 When you run your code in your environment then do a page refresh is the
 cursor blinking in the text field?

 -Jim

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303495
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 format=flash onload

2008-04-15 Thread James Blaha
Kevin,

This works but I need to click on the flash form to get the cursor to be 
active. Is this what you were talking about?

-Jim

cfsavecontent variable=onLoad
   Selection.setFocus(UserID);
   Selection.setSelection(0, UserID.text.length);
/cfsavecontent

cfform format=flash skin=haloblue width=300 height=200 
onload=#onLoad#
  cfformgroup type=horizontal id=myUID
cfinput name=UserID width=200 maxlength=50 value= type=text
  /cfformgroup
/cfform 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303497
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 format=flash onload

2008-04-15 Thread James Blaha
Hi Qasim,

It only highlights the textbox onload. I need the user to be able to start 
typing right on the page load.

-Jim 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303500
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 format=flash onload

2008-04-15 Thread Greg Luce
James,

It does sometimes, really strange. I guess it's just a hack anyways. Maybe
Adobe will add onLoad event to cfform someday.

Greg
On Tue, Apr 15, 2008 at 4:42 PM, James Blaha [EMAIL PROTECTED] wrote:

 Greg,

 When you run your code in your environment then do a page refresh is the
 cursor blinking in the text field?

 -Jim

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303501
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 format=flash onload

2008-04-15 Thread Kevin Aebig
Are you having an issue with activating the SWF file in IE? If so, than
that's the problem you need to address to get the snippet I posted to work.

!k

-Original Message-
From: James Blaha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 15, 2008 3:31 PM
To: CF-Talk
Subject: Re: cfform format=flash onload

Kevin,

This works but I need to click on the flash form to get the cursor to be
active. Is this what you were talking about?

-Jim

cfsavecontent variable=onLoad
   Selection.setFocus(UserID);
   Selection.setSelection(0, UserID.text.length);
/cfsavecontent

cfform format=flash skin=haloblue width=300 height=200
onload=#onLoad#
  cfformgroup type=horizontal id=myUID
cfinput name=UserID width=200 maxlength=50 value= type=text
  /cfformgroup
/cfform 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303504
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 format=flash onload

2008-04-15 Thread James Blaha
I am using IE. The form shows up on page load just fine. Is that what you mean 
by activating the swf? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303507
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 format=flash onload

2008-04-15 Thread Kevin Aebig
Is there a border around the SWF with a Click here to activate this
control message showing?

!k

-Original Message-
From: James Blaha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 15, 2008 4:16 PM
To: CF-Talk
Subject: Re: cfform format=flash onload

I am using IE. The form shows up on page load just fine. Is that what you
mean by activating the swf? 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303508
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 format=flash onload

2008-04-15 Thread James Blaha
No the input field is showing and is also highlighted in blue, its just missing 
a blinking cursor. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303512
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 required field...

2008-04-07 Thread Paul Ihrig
there has to be a way
http://www.rittal-corp.com/sales/form/index.cfm

if i can force it with a disabled. then i should be able to force the
required to false.
this should work!
required={(gm_O.selected == 1)?0:1}

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302865
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


  1   2   3   4   5   6   >