Hi

I have a dilema between jquery validate and jqueryyav.

I am using validate which offers great flexibility in the error placement,
because I can pass a function to it :

errorPlacement: function(error, element){ ....

jqueryYAV offers the "implies" that I need, but I cannot pass a function to
the error placement.
Its showError method looks like that :

evalText = "jQuery('#"+ objError.id +"')." + params.errorPosition +
        "(\"" +
        "<" + params.errorTag + " class='"+params.errorClass+"'>" +
objError.msg + "</" + params.errorTag + ">"
        + "\")";


Is there a miracle solution ? ;-)
Will "implies" be integrated anytime soon in validate ?
Is jqueryYAV's code easily hackable in order to pass a function to the
errorPosition ?

-Olivier



PS: here is my actual errorPlacement code just to let know the sort of thing
I'm doing :

    errorPlacement: function(error, element){
      element.after("<div class=\"error_exclamation_mark\"></div><div
class=\"errorBox clearfix\"><div
class=\"errorBoxTitle\">Error</div></div>");
          $left = element.offset
().left+element.width()+element.next(".error_exclamation_mark").width();
          $top = element.offset().top;
      element.siblings("div.errorBox").css('position',
'absolute').css('left', $left).css('top', $top);
      error.appendTo(element.siblings("div.errorBox"));
      if ($.browser.msie) element.wrap("<div
id=\"wrap_select_for_ie\"></div>");
    }

Reply via email to