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  »  How to force numerical input? (Not allow text to be written)

phpMyEdit General     How to force numerical input? (Not allow text to be written)
Odoslať novú tému   Odpovedať na tému    
 
lanbo     Založený: 08.01.2004   Príspevky: 4  
Príspevok Zaslal: 2004-01-14 14:04
Návrat hore  Odpovedať s citátom     

Hi all,

I'm already using the option below, but I can Change or Add a field and input text within the box. Then this text is automatically transformed to the default integer value, but I wonder if there is an option to force a Javascript warning or anything.
Thanks!

$opts['fdd']['col_name']['select'] = 'N'; // numeric

 
hbernard     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2004-01-14 20:16
Návrat hore  Odpovedať s citátom     

Well, AFAIK, there currently no javascript validation on the type level.

But you may use triggers, like in
http://opensource.platon.sk/forum/projects/viewtopic.php?t=183
(and see this nice link from Doug : http://phpvs.com/misc/forum1.php)

This is not exactly what you want, but it can be a workaround.

 
hbernard     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2004-01-14 22:13
Návrat hore  Odpovedať s citátom     

I just opened a bug about this kind of feature

See :

http://opensource.platon.sk/projects/bug_view_advanced_page.php?f_bug_id=161

The patch uploaded there is correctly working for me.

 
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