I have a page where a user submits multiple keywords before finding resources based on those keywords. I have a jQuery array that loads all the keywords and I want to pass that jQuery array to the next results page. I'm trying to figure out the best method to do this. I've tried putting the array into the string and passing it through the URL, but was unable to properly URLEncode it. I've also tried using window.location but this has been not working well either. This seems simple but I'm going in circles. It is a one dimensional array that I want to hold in memory then pass it to the next aspx page. What's the best method? Below is my code as it stands now which is not correct.
//When get resources button clicked show current array values
$("#nihSearch_btnResults").click(function () {
//get number of tabs in the holder
gettabs = $("div#keys > div.tab").size();
output = "";
//loop through the tabs
$("div.tab span").each(function () {
//get the text of the tab
var kw = $(this).text();
//add it to the array
keywords.push(kw);
});
var jsonstring = JSON.stringify(keywords);
alert(jsonstring);
});