I'm late coming in here so sorry if this has already been hashed over. I
wanted to refer you to a post I wrote some time back on this topic:

http://www.coldfusionmuse.com/index.cfm/2006/3/16/server-side.client-side.va
lidation

In particular the comments at the bottom are interesting....

-mark 

-----Original Message-----
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 18, 2007 3:52 PM
To: CF-Talk
Subject: RE: Client-side validation or Server-side Validation?

Yes, I should have typed "client-side"...

And thanks for the confirmation of my understanding.

> Glad to see you're making some headway!

Oh, man, you don't know what a relief it is!  I started working with jQuery
about 4 weeks ago, and as soon as I would get some working, like client-side
validation, I would find out that it's insufficient.  Then I'm off to learn
something else, including how to work with Ajax.

It's had my head swirling and my productivity stalled.  I've got patient
clients, but work is backing up with more on the way!

Got to get *working* solutions implemented!  Maybe this will do it!

Thanks again,

Rick



-----Original Message-----
From: Josh Nathanson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 18, 2007 4:38 PM
To: CF-Talk
Subject: Re: Client-side validation or Server-side Validation?

> Is it accurate to say that once the submit button is clicked, Jorn's 
> plug-in validates everything server-side first based on the id of the 
> form, then once that's complete, with no errors, the form will be 
> submitted to the action page automatically, in this case 
> ex2_process.cfm, and perform the server-side validation?

Hi Rick, I think you meant to say "client-side" when mentioning Jorn's
plug-in, but you've got the flow correct.

The mechanism is the submit action of the button.  But if you have a client
side plugin working that is attached to the submit button, it will perform
the client-side validation BEFORE the form is submitted to the server.  If
there is no client side event handling attached to the submit button, or to
the "onSubmit" event of the form, it will go straight to the server.

Glad to see you're making some headway!

-- Josh


----- Original Message -----
From: "Rick Faircloth" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Wednesday, April 18, 2007 1:26 PM
Subject: RE: Client-side validation or Server-side Validation?


> Dan...
>
> Something I'm trying to figure out.
>
> What is the mechanism that moves the validation from client-side
> to server-side?  In other words, what causes the server-side validation
> to begin?
>
> Concerning this code:
>
> <form action="ex2_process.cfm" method="post" id="frmMailingList">
>
> Is it accurate to say that once the submit button is clicked, Jorn's 
> plug-in
> validates everything server-side first based on the id of the form,
> then once that's complete, with no errors, the form will be submitted to 
> the
> action page automatically, in this case ex2_process.cfm, and perform the
> server-side
> validation?
>
> I'm not quite sure of the flow of activity.
>
> Rick
>
> -----Original Message-----
> From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 18, 2007 1:58 PM
> To: CF-Talk
> Subject: RE: Client-side validation or Server-side Validation?
>
> Rick,
>
>>If it's client-side placing the message, it places by the id, e.g.
>>"id=errorMessage".
>>If it's server-side placing the message, you use a CFIF statement to
>>determine
>>that and place the error message in the same div via cfoutput.
>>
>>Correct to this point?
>
> Yes, if you look at my code, I've correctly formatted the <label /> tag 
> for
> Joern's plug-in.
>
> However, I think he was thinking about getting away from using the <label 
> />
> tag and was going to make some other changes, so I can't say the technique
> in that example page will always work.
>
> However, you can use Firebug in Firefox to inspect the DOM element that's
> automatically generated by Joern's plugin to get the correct syntax.
>
> -Dan
>
>
>
>
> 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

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

Reply via email to