Popular Posts
jQuery serialize form to json $.fn.serializeObject = function() {     var o = {};     var a = this.serializeArray();     $.each(a, function() {         if (o[this.name]) ... Eclipse axis sample package tw.gov.cp.sample; import java.util.Scanner; import org.apache.axis.message.MessageElement; import org.w3c.dom.Element; import tw.... Create barcode import java.io.File; import java.io.FileNotFoundException; import net.sourceforge.barbecue.Barcode; import net.sourceforge.barbecue.Barcode...
Stats
Call validator on client
var Flood = {
    confirmUpdate: function(validateGroup, confirmMessage, fn) {
        if (typeof (fn) == "undefined") fn = true;
        if (Page_ClientValidate(validateGroup)) {
            return fn && confirm(confirmMessage);
        }
        return true;
    },
    isAllNullOrEmpty: function(clientIDs) {
        switch (clientIDs.constructor) {
            case String:
                return !(document.getElementById(clientIDs) && document.getElementById(clientIDs).value.length > 0);
            case Array:
                for (var i = 0; i < clientIDs.length; i++) {
                    if (document.getElementById(clientIDs[i]) && document.getElementById(clientIDs[i]).value.length > 0)
                        return false;
                }
                break;
            default:
                throw new Exception("Invalid parameters");
        }
        return true;
    }
};