15/01/2009
› Experimental, Tutorial › Tags: AJAX, Internet, Javascript, Scripting, Tutorial
No Comments —
Posted by Aryo Pinandito
Annoyed with form submitters that keep fills the email form field with an invalid email? You can use javascript’s regular expressions to validate it. There’s so many regular expressions form to validate e-mail on the internet but many of them is very long and difficult to understand to modify to suit my need. The regular expressions is expressed below:
/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,60})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

07/11/2008
› Experimental, Tutorial › Tags: Internet, Javascript, Scripting, Tutorial
No Comments —
Posted by Aryo Pinandito
Based on W3C Recommendation Document on XHTML 1.0 (Review Section: C.4. Embedded Style Sheets and Scripts), XHTML document don’t allow you to have any embedded stylesheet and/or script which using < or & or ]] or -- . We should use external stylesheet and/or script if we use any of those symbols, so XHTML parser could parse the XHTML document correctly.
