Internet is growing Every Seconds :: Industry is growing Every Year

Saturday, June 18, 2005

How people scan web pages

How people scan web pages


- The users usually scanned in the centre area first, then the left area and then the right column
- The users would only investigate the left and right column when looking for additional information
- The users quickly learned to look where they would expect to find relevant content and avoid areas which was unimportant to their current task, such as banner ads
- The users would only re-evaluate their scan strategies when they detected changes in the layout of pages
- The users where able to determine if surrounding content was relevant before looking directly at it, suggesting that peripheral vision plays a central role in the interaction with the web pages
- Ads attracted users only when they related to the current task – even if the content interested users

Friday, June 17, 2005

client side validation

Following Functions are used to validate the Data in client side .Following Function are interdependant.

function IsEmpty(ctrl,mess)
It accepts 2 arguments, namely ctrl and mess
ctrl – Name of the control name (Text box).
mess – Message ( Enter First name)
It returns the Boolean values
If the condition is satisfied it returns True otherwise false





function isEmailAddr(email)
function InvalidEmail(ctrl,mess)
function IsEmpty(ctrl,mess)
function validEmail(formField,fieldLabel,required)
function validNum(formField,fieldLabel,required)
function validRequired(formField,fieldLabel)
function validDate(formField,fieldLabel,required)
function allDigits(str)
function inValidCharSet(str,charset)



function isEmailAddr(email)
{
var str = email;
var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid
var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/; // valid
if (!reg1.test(str) && reg2.test(str)) { // if syntax is valid
return true;
}
return false;
}

function InvalidEmail(ctrl,mess)
{
var str = ctrl.value;
var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid
var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/; // valid
if (!reg1.test(str) && reg2.test(str)) { // if syntax is valid
return false;
}
alert(mess);
ctrl.focus();
return true;
}

function IsEmpty(ctrl,mess)
{
var name=ctrl.value;
for(i=0;i {
if (name.charAt(i) !=" ")
return false;
}

alert(mess);
ctrl.focus();
return true;
}

function validEmail(formField,fieldLabel,required)
{
var result = true;

if (required && !validRequired(formField,fieldLabel))
result = false;

if (result && ((formField.value.length < 3) || !isEmailAddr(formField.value)) )
{
alert("Please enter a complete email address in the form: yourname@yourdomain.com");
formField.focus();
result = false;
}

return result;

}



function validNum(formField,fieldLabel,required)
{
var result = true;

if (required && !validRequired(formField,fieldLabel))
result = false;

if (result)
{
if (!allDigits(formField.value))
{
alert('Please enter a number for the "' + fieldLabel +'" field.');
formField.focus();
result = false;
}
}

return result;
}

function validRequired(formField,fieldLabel)
{
var result = true;

if (formField.value == "")
{
alert('Please enter a value for the "' + fieldLabel +'" field.');
formField.value=Trim(formField.value);
file://alert('d');
formField.focus();
result = false;
return result;
}

if (IsEmpty(formField,"Please enter a value for "+fieldLabel))
{
formField.value=Trim(formField.value);
result = false;
}

return result;


}

function validDate(formField,fieldLabel,required)
{
var result = true;

if (required && !validRequired(formField,fieldLabel))
result = false;

if (result)
{
if (isDate(formField.value)==false)
{
result=false;
// alert('Please enter a date in the format MM/DD/YYYY for the "' + fieldLabel +'" field.');
formField.focus();
}
}

return result;
}
function allDigits(str)
{
return inValidCharSet(str,"0123456789");
}

function inValidCharSet(str,charset)
{
var result = true;

// Note: doesn't use regular expressions to avoid early Mac browser bugs
for (var i=0;i if (charset.indexOf(str.substr(i,1))<0)
{

result = false;
break;
}

return result;
}

Friday, June 03, 2005

How to improve landing pages

How to improve landing pages


- Eliminate unneeded elements that can distract visitors
- Make the landing page match the creative
- Remove navigation that isn't important to the conversion process
- Avoid the urge to promote or link to other areas of your site
- Place important elements above the "fold"