In general it seems to me that the rule
is that once a user is on a server, they are on the same server. Define
complex data. I potentially see structures and possibly an occasional
object in the shared scope, but honestly I don't know yet. We don't
officially have any code written.
mcg
Just
as an aside - you can still store complex structures in client variables but
you'll have to wddx them into a string and then store them into the client
variable. Also, if you do this and you have your client variables stored
in the database, you'll want to make sure your datasource is
Complex data would be arrays, structures, queries, objects ..etc.Client variables can store simple data like strings, integers, boolean ...etc.I hope that makes sense,Teddy
On 9/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
In general it seems to me that the rule
is that once a user is on a
Any reason why my CF form validation only work some times?
If I change Validateat to On Blur it seems to work. I does work sometimes for
some reason so I dont think its a mapping issue.
cfinput name=user_student_id
type=text
id=
user_student_id
required=yes
Allen made a good point about WDDX. I tend to overlook CFWDDX.cfwddx action = "" input = #session# output=client.foo
cfdump var=#client.foo# can dump your session into foo variable stored into the client scope.Your result in the DB would look similar to:foo=wddxPacket
When do you want to validate and what type of cfform are you using?You want to validate prior to the form submitting or after a submit event?Most forms work well with a submit validation, but highly recommended with any validation you choose that you then in turn validate yet again on the action
When do you want to
validate and what type of cfform are you using?
When the
user hits the submit button.
This is
the cfform..
cfform
id=form1 name=form1 method=post
action="">
I have another
page of this form and the validation works fine.
You want to validate prior to
The field is inside of a CFIF, does that
make a difference?
cfif isdefined('url.edit')
cfinput
name=user_student_id
type=text
id=user_student_id
required=yes
message=Please
Enter a Student ID
value=#getuser.user_student_id#
/
cfelse
cfinput
Well then, you won't really need to specify validation locations on your individual form controls. Let the cfform do the client side first and then you can manipulate the server side on your action page.The issue you may be having is having the required attribute with the validate attribute in the
This makes sense but still not working. I
tried using the validate and that has no effect. It just passes over all the
required fields and goes right to the action page.
I tried this…
cfinput
name=user_student_id
required
=yes
Which version of ColdFusion are you using? I am not sure that you specified. TeddyOn 9/27/06, Chris C. Cooper
[EMAIL PROTECTED] wrote:
This makes sense but still not working. I
tried using the validate and that has no effect. It just passes over all the
required fields and goes
CF7
-
Chris C. Cooper
Cooper e.Business Solutions
Atlanta, Georgia
404.691.4816
Cooper e.business Solutions – http://www.cooperebusiness.com
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Teddy
Payne
Make certain you have a CFIDE virtual directory in
place.
John
[EMAIL PROTECTED]
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Chris C. CooperSent: Wednesday, September 27,
2006 12:12 PMTo: discussion@acfug.orgSubject: RE: [ACFUG
Discuss] Form Validation
CF7
The server side of things is definitely
not my forte. The powers that be here are trying to do a few nutty
things. One, they want to run multiple instances of CF off of one
instance of JRun (same cluster setup from earlier). Two, they want
to combine the CF and Java app hosting into one server
Well, sounds like someone is getting paid big bucks in the architecture seat. hehe.'One, they want to run multiple instances of CF off of one
instance of JRun 'I suppose that is doable, I've never seen it before though myself, nor have I heard anyone doing this. I don't see a real advantage. Maybe
MC
Tell them they can contract with me. I've successfully connected my
refrigirator, microwave and coffee pot to my CF server. Jeremy once
connected a toaster to his PC. I'm sure between the two of us we could
take care of things for them. :)
Seriously, what is the justification for
16 matches
Mail list logo