validate plugin - customising error message with ajax return data
I want to use the remote ajax call to determine something about the content of my input text box. I then want to use some of the ajax response in the error message, but I cannot see a way to connect something I do in the success function of the ajax call into the message. Could I iterate over errorList to find the structure for my fieldname and remote method and then dynamically replace the message? Would this work?
I have read adding your own method for many articles mentioning overriding the message, and also the addition of a "validators:" section in the method initialisation. However I cannot find any reference to this in the docs? It might be part of the solution perhaps?
Any help or pointers appreciated as usual,Thx Paul