mirco2 Mirco Multishop newbie Topic creator registered since: 06.05.2012 Posts: 4 | Hi there, I recently noticed that the address form freezes if the email address is too long. It doesn't freeze suddenly. After one entered about 25 characters the forms' response time gets uncomfortably long while checking if the address is correct. Two or three characters later it feels like the form doesn't react anymore. I'm using most recent version 2.0.31 Looking forward to your answers. Best regards, Mirco |
Written on: 06. 05. 2012 [17:29] |
mirco2 Mirco Multishop newbie Topic creator registered since: 06.05.2012 Posts: 4 | do you have any suggestions? |
Written on: 13. 05. 2012 [11:32] |
bas Bas van Beek Multishop guru registered since: 12.05.2010 Posts: 644 | The jQuery validate regex is giving troubles. Open checkout_address.php and find: $regex = "/^[^\\W][a-zA-Z0-9\\_\\-\\.]+([a-zA-Z0-9\\_\\-\\.]+)*\\@[a-zA-Z0-9\\_\\-\\.]+([a-zA-Z0-9\\_\\-\\.]+)*\\.[a-zA-Z]{2,4}$/"; Change it to: $regex = '/^[-a-z0-9~!$%^&*_=+}{\'?]+(\.[-a-z0-9~!$%^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?$/i'; |
Written on: 13. 05. 2012 [17:49] |
mirco2 Mirco Multishop newbie Topic creator registered since: 06.05.2012 Posts: 4 | Hi, the problem remains even with your suggestion. I chose a very basic regex, which fits my needs: $regex = '/^[a-zA-Z0-9-_]+@[a-zA-Z0-9-_]+\.[a-zA-Z0-9-_]+$/i'; Thanks for your help! Best regards, Mirco |
Written on: 13. 05. 2012 [21:40] |
bas Bas van Beek Multishop guru registered since: 12.05.2010 Posts: 644 | Always nice to see developers improving things. |
Written on: 14. 05. 2012 [22:41] |