ASP.net Client-side Validation

A couple of days ago, I faced a situation whereby I needed to add some form validation to an aspx page.

I had options of either JavaScript or ASP.net client side validation. JavaScript seemed like an easier solution…
<h5>Client-side JavaScript for form validation</h5>

<script language="javascript">
<!--
Function CheckForm(form)
{
 for(var intCtr = 0; intCtr <= (form.elements.length - 5); ++intCtr)
 {
 var temp = form.elements[intCtr];
 if(temp.type == "text" && temp.value == "")
 {
 alert("Please Enter All Information!");
 temp.focus();
 return false;
 }
 }
 return true;
}
//-->
</script>

(more…)

Add touch event to existing HTML

Hey guys and gals I’ve found this awesome Js plugin HAMMER.JS  that enables you to add Touch events to already existing HTML content. In our use case I am talking about those WOW Sliders and content sliders. Open this on your mobile device [button link=”http://www.themwebs.me/sandbox/add-touch-html/” size=”small” target=”self” Read more…

Detect Mobile Browsers

Here is a great open source mobile phone detection resource . [button link=”http://www.detectmobilebrowsers.com” size=”small” target=”self” color=”blue”]http://detectmobilebrowsers.com/[/button]