I use a table decorator to create checkboxes. I need to do a submit via the onclick of these checkboxes so as to maintain their state. How can I generate the correct paging parameter to return me to the same page of my table (ex. d-1588-p=2)?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
// Examine a query string and attempt to return an object that may// be used as a map (JavaScript associative array) where each key in// the query string is a property of the object property having the// same value inidicated by the key of the same name in the query// string. Psuedo JavaScript may help explain. Given a call that// is effectively something like//// map = getQueryStringMap( '?bar=baz&homer=doh' );//// then//// map['bar'] would return 'baz'//// and//// map['homer'] would return 'doh'//
function getQueryStringMap( queryString ) {
var arrayOfKeyedValues = parseKeyValues( queryString );
var map = parseKeyValuesIntoAssocativeArray( arrayOfKeyedValues );
return map;
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use a table decorator to create checkboxes. I need to do a submit via the onclick of these checkboxes so as to maintain their state. How can I generate the correct paging parameter to return me to the same page of my table (ex. d-1588-p=2)?
We found the work around using the Javascript. Here is the javascript that you need to call in your onclick event of your checkbox
function saveProcess() {
var urlpath = '/myProject/do/SaveProcess?';
HTMLTableElement
var dprtElement = document.getElementById( 'displayTable' );
}
function getQueryStringMap( queryString ) {
var arrayOfKeyedValues = parseKeyValues( queryString );
var map = parseKeyValuesIntoAssocativeArray( arrayOfKeyedValues );
return map;
}