Javascript


It took me a little long to get this , which i wanted. This is made up of simple Jquery and CSS. I have mixed up few things which i got from internet and after modifications and merging , i got what i want. Hope This might help you.   […]

Javascript / Jquery Session Logout Timer Clock for Ideal user, ...


In good old days, developers used to try all kinds of tricks to find the hostname, path, protocol and port etc. There were combinations of string manipulation functions and then there were regular expressions. The evolution of frameworks made the task rather simpler by providing in-build variables and/or constants for […]

Javascript : hostname and port number, if available


$(document).ready(function(){ jQuery.validator.addMethod( "intgrt0", function(value, element) { return value.match(/^([1-9]{1}[0-9]*)$/); }, "Please enter a quantity greater then 0 & it should not start with 0" ); /*email*/ jQuery.validator.addMethod( "emailproper", function(value, element) { return value.match(/^[A-Za-z0-9]+\w*([\.-]\w+)*@\w+([\.][A-Za-z0-9]{2,3})+$/); }, "Please enter proper email like abc@domain.com" ); /*Letters only*/ jQuery.validator.addMethod("lettersonly", function(value, element) { return this.optional(element) || /^[a-zA-Z\s]+$/i.test(value); […]

jquery validate addon functions