<rule type="custom" failureMessage="That UserName is already taken. Please try a different one."> <param name="methodname" value="validateDuplicateUserName" /> <param name="remoteURL" value="validateDuplicateUserName.cfm"/> </rule>
I'm using a CFC...
<rule type="custom" contexts="*" failureMessage="The filename violates one or more of our filename rules (see below).">
<param name="methodname" value="checkfilename" />
<param name="remoteURL" value="http://localhost/compliance_admin/oceft/remoteproxy.cfc" />
</rule>
But when I submit that in Firebug I see:
http://localhost/compliance_admin/oceft/remoteproxy.cfc?file=162212.pdf
I was expecting remoteproxy.cfc?methodname=checkfilename&file=162212.pdf
It seems like I don't even need the methodName? I can declare it in the URL:
<rule type="custom" contexts="*" failureMessage="The filename violates one or more of our filename rules (see below).">
<param name="remoteURL" value="http://localhost/compliance_admin/remoteproxy.cfc?methodname=checkfilename" />
</rule>
Yup,
remoteURL is the URL you want the client side validation to call (as an AJAX request)
methodName is what is called server site.
You can omit the remoteURL is you want (maybe for security or some other reason).
- John--
You received this message because you are subscribed to the Google Groups "ValidateThis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to validatethis...@googlegroups.com.
To post to this group, send email to valida...@googlegroups.com.
Visit this group at http://groups.google.com/group/validatethis?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Jim
--