Tuesday, September 23, 2008

Handling the Javascript Errors

1.Method using onerror event

onerror=handleErrors; //Invoke the method here

//Method definition

function handleErrors(msg,url,lineno)
{
//Here we will get the error message along with page url with lineno so tracking the error will be easier
//Handle the error here
return true or false
}


2.Try and Catch block

try
{
//Run some code here
}
catch(err)
{
//Handle errors using error object
}

Tuesday, September 2, 2008

Creating a Secure PHP Login Script

This morning i was going through some article which tells about the methods that we can approach for secure login.You can check it in http://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script/