scripts/legacy/legacy.js
function(array) {
                var sarr = [];

                var i = 0;
                for (i=0; i<array.length;i++) {
                    var a = array[i];
                    var o = {};
                    o.name = a.name;
                    o.value = a.value;
                    o.type = a.type;
                    if (a.type === "checkbox") {
                        o.value = (a.checked) ? "on" : "off";
                    }
                    sarr.push(o);
                }
                return sarr;
            }
function(array) {
                var sarr = [];

                var i = 0;
                for (i=0; i<array.length;i++) {
                    var a = array[i];
                    var o = {};
                    o.name = a.name;
                    o.value = a.value;
                    o.type = a.type;
                    if (a.type === "checkbox") {
                        o.value = (a.checked) ? "on" : "off";
                    }
                    sarr.push(o);
                }
                return sarr;
            }
function ( array ) { var sarr = [ ] ; var i = 0 ; for ( i = 0 ; i < array . length ; i ++ ) { var a = array [ i ] ; var o = { } ; o . name = a . name ; o . value = a . value ; o . type = a . type ; if ( a . type === "checkbox" ) { o . value = ( a . checked ) ? "on" : "off" ; } sarr . push ( o ) ; } return sarr ; }
Get form data.
Get form data .