Javascript Email Validation With Regular Expression

First lets see the code Now the explanation /^([a-zA-Z0-9_\.\-])+\@+([a-zA-Z0-9\-]{2,})+\.+([a-zA-Z0-9\.]{2,6})$/ ^[a-zA-Z0-9_\.\-] = Matching the beginning of the stringAny character from a-z, A-Z, 0-9 and . – _ \@ = @ [a-zA-Z0-9\-]{2,} = Any character from a-z, A-Z, 0-9 and –Number of characters should be at least 2There are no upper limit on number of characters \.… Continue reading Javascript Email Validation With Regular Expression

Make Website Compatible in Internet Explorer 7 and 8

Making a website compatible with the main browsers is any UI developer’s nightmare. Specially with the weird behaviors if IE. Now to add to that pain IE 6, 7 and 8 all act differently. So, if you are an UI developer, here’s a little trick to make your life a bit happier. If have succeeded… Continue reading Make Website Compatible in Internet Explorer 7 and 8

Get Selected Index And Option Text With JavaScript

The below example shows how to get the value, selected index, selected text of a drop down with JavaScript. The HTML select is below Select a value First Option Second Option Third Option Fourth Option Now the JavaScript to get the values. Within the firejs function (that is fired with onchange event) the following can… Continue reading Get Selected Index And Option Text With JavaScript

Include Code in Blogger Posts With Syntax Highlighting

If you have tried to post a few lines of code on your Blogger post, you must have faced the problem. The best solution I have found till date is a JavaScript code syntax highlighter. Its written by Alex Gorbatchev and can be found here – http://alexgorbatchev.com/wiki/SyntaxHighlighter And if you cannot upload the js files… Continue reading Include Code in Blogger Posts With Syntax Highlighting

Opning phtml thtml ctp Files In Dreamweaver

To open and read the .phtml (Zend Framework) .thtml or .ctp (CakePHP) files in Dreamweaver just like the .php files follow these steps – 1. Open the file – C:\Program Files\Macromedia\{Dreamweaver Folder}\Configuration\DocumentTypes\MMDocumentTypes.xml (Replace C: with the drive name where your OS is installed) 2. Search “php,php3,php4,php5” (It will be line # 75). After php5 add… Continue reading Opning phtml thtml ctp Files In Dreamweaver

Zen Cart Multi Level Category Slide Out Menu

This hack is now available as a downloadable plugin from the Zen Cart site. Please visit this link to download it. The plugin uses separate files of its own and doesn’t need any of the existing files to be updated. The Zen Cart Category Menu shows only the sub categories of the currently selected category.… Continue reading Zen Cart Multi Level Category Slide Out Menu