Skip to main content

Posts

Showing posts from May 3, 2007

Improve your website's user interface using javascript

Hi friends, This is after a very long time. I was so busy now the days. Now i am sharing some client side javascript functions. Now the days most of the companies wants to give the as much as possible functionalite in the web applications like desktop applications. & one can achive this with the help of javascript. Another thing that comes into picture is AJAX. But now i will not talk about AJAX in this article. here i will describe some javascript techniques by which you can improve your web sites user interface & create it more user friendly. Lets start some basic tests: Blank String Test: String.prototype.IsBlank=function(){ var flag=true; for(var i=0;i<this.length;i++){var temp=this.substring(i,i+1); if(temp != " "){ flag=false; break; } } if(flag==true){return true;} else {return false;} }; Another Blank String Test: Enter Your Name: String.prototype.CheckBlank=function(fname){if(this.IsBlank()){alert(fname+genblnk);return true;}return false;}; String Revers...