Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  JavaScript validation trouble

phpMyEdit General     JavaScript validation trouble
Odoslať novú tému   Odpovedať na tému    
 
phuizinga     Založený: 28.11.2011   Príspevky: 1  
Príspevok Zaslal: 2011-11-28 12:30
Návrat hore  Odpovedať s citátom     

I am having difficulties getting JS validation to actually do something. Please consider this code snippet:
Kód:
$opts['fdd']['kvk'] = array(
  'tab'      => 'Bedrijfsgegevens',
  'name'     => 'KvK nr',
  'options'  => 'LACPV',
  'help'     => 'Kamer van Koophandel dossiernummer',
  'select'   => 'N',
  'maxlen'   => 11,
  'js'       => array(
    'required' => true,
    'regexp'   => '\d{1,11}',
    'hint'     => 'KvK nummer moet uit cijfers bestaan.'
  ),
  'sort'     => true
);


I test this with an empty entry but there is no error. Same with other (text) fields. It would appear the checks are not carried out at all.

Am I overlooking something? Do I need to turn something on in my server configuration for this to work?

By the way, thanks for a great productivity tool. I love it.

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2011-11-28 15:21
Návrat hore  Odpovedať s citátom     

I don't use regular expressions very often.
http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.javascript-validation.html
Wondering if the missing opening and closing slash (/) characters are the problem.

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov