From: webERP D. <web...@li...> - 2013-07-17 06:52:40
|
*Hi, Phil:* I've checked the html5 transaction page. And it seems that the current gating issue is the number validation. I've studied Tim's js function. The function only validate users' input by single character. A pattern is a must to ensure the correct input. I've made one as following: pattern="(?:^\d{1,3}(?:\.?\d{3})*(?:,\d{1,})?$)|(?:^\d{1,3}(?:,?\d{3})*(?:\.\d{1,})?$)|(?:^\d{1,3}(?:\s?\d{3})*(?:\.\d{1,})?$)|(?:^\d{1,3}(?:\s?\d{3})*(?:,\d{1,})?$)|(?:^(\d{1,2},)?(\d{2},)*(\d{3})(\.\d+)?|(\d{1,3})(\.\d+)?$)" It used to validate number format pattern as described in webERP's languageArray.inc. It is tested OK in firefox and js regex on line. But it seems that it does not work in Chrome. Any comments are welcome! Thanks and best regards! Exson -- View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Intention-to-roll-up-new-version-and-future-plans-tp4656547p4656589.html Sent from the web-ERP-developers mailing list archive at Nabble.com. |