Great ! Thanks a lot.
It just work like you said. "foo [required: true]" breaks, but "[required:
true] foo" works like a charm.
PS: I'm amazed by the jquery mailing. Coolness and quality people.
Quite different to a php-pastry related I'm used too, where you never now
when and why it starts flamin
How about:
$.meta.cre = /((?!\[)(.*)(?=\]))/;
This will fail if you use class="foo [required: true]" but should be
fine with class="[required: true] foo"
For it to work like it does with {} (class names before and after are
ignored), the meta data plugin would probably be have to be modified.
I'll do that as a workaround if there is no nice solution.
Its just that inline validation seems easier to maintain in the futur in the
app I have because it is made of a lot of templates
and a maintainer that dont know the app well maybe lost at finding where the
validation come from.
On 8/28/07,
Is it an option for you to not use the meta data plugin? The rules can
be set without it too.
$("#Form").validate({rules: {inputname: "required"}});
--David
Olivier Percebois-Garve schreef:
Hi
I'm having an issue with the validation plugin. It conflicts with a
smarty-based php class nam
Thanks for your answers.
Emil you are right at saying that it is not a jquery issue.
Its even more a formsess issue than a smarty issue, and thats why your
solution
wont work.Because of the formsess filters it produces something like:
##FS_SMARTY_LDELIM##ldelim##FS_SMARTY_RDELIM##required:
true##
You could try adding this in $(document).ready, before calling the
validate plugin:
$.meta.cre = /(\[.*\])/;
$("#foo").validate();
Although that is not documented in the meta data plugin (maybe there
should be an option in it to do that).
On Aug 28, 9:05 am, "Olivier Percebois-Garve" <[EMAIL PR
This is more a smarty issue, than jquery/js.
There is a smarty tag {ldelim} for { and {rdelim} for }.
Also wrapping a piece of code with {literal}function() { code; } {/
literal} tells the parser to ignore the text between the tags.
Regards,
Emil Ivanov
On 28 Авг, 11:05, "Olivier Percebois-Garv
7 matches
Mail list logo