All posts by Morshed Alam
Custom prompt window using JavaScript
Below is a simple JavaScript code to create a custom prompt pop-up to get user input and set it to target field. /** * Open a custom prompt window to get user input * @param l String, Input label * @param v String, Default value of input box * @param len Integer, Max length of…
Import contacts from Address Book
For one of my PHP project, I have written a class to import contacts from Gmail and Hotmail address book and at the same time search in web for others email provider such as Gmail, Hotmail etc. to save my time. Then I found an excellent open source plugins to import contacts (address book) named…
Implementation of fly-out flash message in your application
Now a days usability is one of the major issues for web application. Many web applications with good functionality did not get enough popularity because lack of usability. Flash message is one of the most important things of any application which may improve usability of an application. Here, I have explain steps for implementing fly-out…
Ruby on Rails in Bangladesh
Ruby on Rails has created a buzz in the web development though everything is changing continuously in all over the world. It is open-source, free and highly productive technology which is creating a new highway to connect WEB. It facilitates web-developers to write good code and providing a beautiful atmosphere with the considerable decrease in…
How to print a hidden block of an HTML page?
One of my previous blog I have written “How to prevent printing a block of an HTML page?” then some of my blog readers wanted to know how he/she can print a hidden block? That’s why I have written this one. Anyone can do it by using simple css which is described below: First, Have…
Out of range value adjusted for column error
This is a known bug of MySql5 which I got while customizing one of my PHP projects. In the older version of MySql offered lots of freedom to developers. Previously anything can insert/modify into its tables but it does not seem to be practical anymore. No need to worry about the error. You can fix…
Sprint review meeting is very helpful in Agile/Scrum process for project development
From April 2007 I am working for Code71 and developed all projects by using Agile/Scrum software development process. Also we have developed Agile project management and collaboration tool during this time. Our sprint review meeting is very helpful in my point of view which is held on the test release day though agile suggest it…
Disable right click to prevent page content
Some web developers and client want to disable the right click to prevent the theft their web content specially image. It can do by using a simple line of html code below though it can bypass in many ways. <body oncontextmenu=”return false;”> Update: I have got a best reference below: No Right Click Script
Disable text selection on website by using javascript
Sometimes you may need to disable text selection of an HTML page. It is very easy way how you can do it. Below is the source codes: <script type=”text/javascript” language=”JavaScript”>function disableText(e){ return false;}function reEnable(){ return true;}//For browser IE4+document.onselectstart = new Function (“return false”);//For browser NS6if (window.sidebar){ document.onmousedown = disableText; document.onclick = reEnable;}</script> Just copy the…
Most useful htaccess tips and tricks
An .htaccess is a simple file which is being detected and executed by Apache Web Server. You may need to CHMOD the .htaccess file to 644. This makes the file usable by the server, but prevents it from being read by a browser, which can seriously compromise your security. Always you have to place .htaccess…