This is NOT the problem.
I was thinking that too, and I tried, same error with :
var pkykValidationRules1 = {'email': {required: 1,required_msg: 'L
\'email est obligatoire',validators: {sfEmailValidator: {parameters:
{email_error: 'Format
[EMAIL PROTECTED]'}}sfPropelUniqueValidator: {parameters:
{class: 'sfGuardUser',column: 'username',unique_error: 'Ce mail existe
en base, te fous pas de ma gueule !'}}}},'motdepasse': {required:
1,required_msg: 'Mot de passe obligatoire'}};

Could it be the ',' missing before sfPropelUniqueValidator ?
(regarding the code, i don't know how it couldn't be there...)

So, l join all the generated code, just in case...

<script language="javascript" type="text/javascript">//<![CDATA[
var pkykValidationRules1 = {'email': {required: 1,required_msg: 'L
\'email est obligatoire',validators: {sfEmailValidator: {parameters:
{email_error: 'Format
[EMAIL PROTECTED]'}}sfPropelUniqueValidator: {parameters:
{class: 'sfGuardUser',column: 'username',unique_error: 'Ce mail existe
en base, te fous pas de ma gueule !'}}}},'motdepasse': {required:
1,required_msg: 'Mot de passe obligatoire'}};
pkykConf = new Object();
pkykConf.on = "1";
pkykConf.debug = "";
pkykConf.checkOnBlur = "1";
pkykConf.checkOnSubmit = "1";
pkykConf.displayBlurInlineErrors = "1";
pkykConf.displaySubmitInlineErrors = "";
pkykConf.inlineErrorId = "error_for_";
pkykConf.inlineErrorClass = "form_error";
pkykConf.displayBlurGlobalErrors = "";
pkykConf.displaySubmitGlobalErrors = "";
pkykConf.globalErrorClass = "form_error";
pkykConf.globalErrorTitle = "The following form information has been
completed but it contains errors:";
pkykConf.globalErrorTitleClass = "pkyk_global_title";
pkykConf.globalErrorFocus = "true;";
pkykConf.errorPrefix = " &darr;&nbsp;";
pkykConf.errorSuffix = " &nbsp;&darr;";
Event.observe(window, "load", initValidator, false);
function initValidator() {if(pkykConf.on){var validator1 = new
PokeYoke( pkykValidationRules1 );}}
//]]></script>

On Sep 7, 4:40 pm, Fabian Lange <[EMAIL PROTECTED]> wrote:
> Hi,
> yes looks simple. It seems that the quote in L'email est obligatoire gets 
> escaped correctly,
> but the ones in Format '[EMAIL PROTECTED]' seem not to be escaped. you could 
> for a quick fix remove the single quotes.
>
> That should be resolvable pretty easy. Ill check that tonight
> .: Fabian
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> Gesendet: 07.09.07 16:28:34
> An: symfony users <[email protected]>
> CC: [EMAIL PROTECTED]
> Betreff: [symfony-users] Problem with sfPokaYoke
>
> Hi,
> I have an error with the latest version of sfPokaYoke.
>
> When generating the pokajoke js, I have this on javascript error
> console  :
> "missing } after property list"
> On this line :
> "var pkykValidationRules1 = {'email': {required: 1,required_msg: 'L
> \'email est obligatoire',validators: {sfEmailValidator: {parameters:
> {email_error: 'Format
> '[EMAIL PROTECTED]''}}sfPropelUniqueValidator: {parameters:
> {class: 'sfGuardUser',column: 'username',unique_error: 'Ce mail existe
> en base, te fous pas de ma gueule !'}}}},'motdepasse': {required:
> 1,required_msg: 'Mot de passe obligatoire'}};
>
> My validate.yml :
> fields:
>  email:
>   required:
>    msg: L'email est obligatoire
>   sfEmailValidator:
>    email_error: Format '[EMAIL PROTECTED]'
>   sfPropelUniqueValidator:
>    class: sfGuardUser
>    column: username
>    unique_error: Ce mail existe en base, te fous pas de ma gueule !
>  motdepasse:
>   required:
>    msg: Mot de passe obligatoire
>
> fillin:
>  enabled: true
>  param:
>   exclude_types: [hidden, password]
>
> Any idea ???
>
> _______________________________________________________________________
> Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
> kostenlos testen.http://www.pc-sicherheit.web.de/startseite/?mc=022220


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to