I am passing some parameters from one page to another through session ,problem what I am facing is each parameters is getting reflected in the URL,which I think is not a correct way. So I want to remove all the parameters from the URL,while navigating to other page.
Please suggest me some way to archive so.
This is the URL what I am getting http://localhost:58736/index.html#bankedit//10000422%20%20%20%20%20%20%20%20%20%20%20%20?PayeeId=4&BankName=State%20Bank%20%20
Code what I am using to navigate is:
cellTemplate: function (container, options) {$('<a/>').addClass('hyperlink')
.text('Edit |')
.on('click', function () {
var Edit;
Demo.app.navigate("bankedit/?AccountNumber=" + options.data.AccountNumber + "&PayeeId=" + options.data.PayeeId + "&BankName=" + options.data.BankName );
sessionStorage.setItem('AccountNumber', options.data.AccountNumber);
sessionStorage.setItem('PayeeId', options.data.PayeeId);
sessionStorage.setItem('BankName', options.data.BankName);
sessionStorage.setItem('Type', "Edit");
})
.appendTo(container);
$('<a/>').addClass('hyperlink')
.text(' Delete')
.on('click', function () {
options.component.removeRow(options.rowIndex);
})
.appendTo(container);
}
And for retrieval of parameter values:
sessionStorage.getItem("BankName"),
in bankedit.js page