I was actually placing the error messages differently, too.
Using this code:
errorPlacement: function(error, element) {
error.appendTo("#" + element.attr('id') + "_error");
},
To place the error messages in this HTML:
<td id="Email_Confirm_error"></td>
I'll just stick some kind of if statement inside the <td> above
for server-side messages:
<td id="Email_Confirm_error"><CFIF
IsDefined("Form_Error.Email_Confirm_error")><CFOUTPUT>#Form_Error.Email_Conf
irm_error#</CFOUTPUT></CFIF></td>
-----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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275743
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4