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 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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

Reply via email to