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
Author: Sumit Surai
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
Freeware For Web Developer
We all know that piracy is not good. So if you cannot afford the commercial software, go for a good freeware alternative. Please do not go for cracks. I have tried to list the freeware for a web developer. I think some of them are better than any commercial offering. Let me know your views.… Continue reading Freeware For Web Developer
PHP :: Single And Double Quote Difference
We all use plenty of ‘ {single quote} and ” {double quote} in our PHP code. As a beginner a lot of us use them without knowing the difference and use it according to our personal choice. The confusion starts to build up when we start using variables. And a lot of time is lost… Continue reading PHP :: Single And Double Quote Difference
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
Magento Admin Login Problem
From Magento version 1.2.1 you will notice that suddenly you cannot log in to the admin panel after you have installed Magento. And this happens only when you install it locally and use http://localhost/ The reason is Magento have implemented a security check to see the domain is a valid one with dots in it.… Continue reading Magento Admin Login Problem
Create New Layout In Magento
Magento comes in-built with a few page layouts like 1 column, 2 columns with left bar, 2 columns with right bar etc.If you want to add new layouts of your own follow these steps. 1. Open file /app/etc/local.xml2. Just before the </global> tag add the following Home Page page/home-page.phtml home_page If you are using the… Continue reading Create New Layout In Magento
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