I need to post some data to server in ajax call. I am binding data into json format and posting it to server:
var BookMarkData = JSON.stringify(postData);
self.app.router.navigate('#hotels/' + BookMarkData, true);
I want to show only 4 elements from postdata JSONArray in the url. But I need to pass entire data to server.
fetchResults: function(PostData) {
var self = this;
var postData = JSON.parse(hashedPostData);
.......
}
How can I pass entire information to fetch results by hiding some information in the url?