Blog Archives

For using javascript Calendar in web page

1. To use calendar in our page, we should include one JS file in our project on the same path of our page. 2. Paste the following line in <head> <SCRIPT LANGUAGE=”JavaScript” SRC=”CalendarPopup.js”></SCRIPT> <SCRIPT LANGUAGE=”JavaScript” ID=”js1″> var cal1 = new

Posted in Javascript Tagged with: ,

Detecting browser type using javascript

Many different browsers (e.g FireFox, IE,chrome,opera,safari)are available for displaying webpages. Each and every browser will have their own way of rendering content of webpage, and script (e.g javascript) execution also will vary based on the script engine implemented with them.

Posted in Javascript

Javascript validation for radio button in HTML form

HTML is having INPUT tag withradio as type to display radio button in the HTML form. Multiple input tags should be given same name to make it one group. Consider below code which will allow the user to select any one

Posted in Javascript Tagged with: ,

Handling Date and Time in PHP/MySQL

Date and time can be inserted into mysql table in specific format only. But php will support different types of date and time formats. So, we should convert the date and time from php into specific format before inserting the

Posted in MySQL, Php Tagged with: ,

Avoiding multiple lines in tag

In some situation (viewing in different browsers) the single <td> tag displays content in two lines. If you want to display sentence in single line always in all browsers then use <td> attributes ‘nowrap’ For example,you may want username/userid/Name to be

Posted in General Tagged with: ,

Steps for PHP installation

We can follow below steps for installing php with Apache server. Install Apache-2 while (installing it give domain name and server name as localhost) Create a folder inside Apache with name=”php”. Unzip the file “php-5.2.6-Win32.zip” inside the folder “php”. Rename the file “php.ini-recommanded”

Posted in Php Tagged with: ,

Google Analytics

Google Analytics is a free feature provided by Google. It will give statistics of the webpage in nice way. – We can see even how much time the visitor spent on particular page. – We can get details about browser/net

Posted in General

Focusing HTML element immediately after loading the web page

Focusing (i-e putting cursor) appropriate control/HTML element in a webpage will enhance the user experience. It should be done once after loading the page. We can use the below javascript code for doing this ononload event of window. This code should

Posted in General, Html

Cross browser web development

The important challenge for any web developer is making the website work in many different types of browsers(IE, FireFox, Safari, and Chrome) and also in different browser versions. To achieve this, we may need to write separate code for each

Posted in General, Html Tagged with: ,

Ways to improve user experience in any website

As of now, I can think about below things to improve user friendliness or user experience. Put the cursor (i-e give focus) in the appropriate HTML control/element immediately after loading the webpage. If possible provide appropriate/standard shortcut keys. When doing

Posted in General, Html Tagged with: ,