Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Quick one about form data


Message #1 by "Tom Lynch" <tlynch@e...> on Thu, 15 Feb 2001 20:42:27
function checkText(cText){
var a = new Array();

a = cText.split("//",1);
if (a[0].toUpperCase() == "HTTP:"){
    return true;
    }
else{
    return false;
	}
}

> how can i check a textbox value to see if it begins with "http://" and 
> trim it if it's there?
> 

  Return to Index