I am developing a little riddle. Users click on image blocks and guess what kind of picture it is. I also count how many blocks they opened before sending. I am using the following jQuery AJAx code in VBScript / ASP
dataString = 'totalClick=' + totalClick ; $.ajax({ type: "POST", url: "puzzle3.asp", data: dataString, success: function() { alert('totalClick' + totalClick + "data: " + dataString ); window.location = "puzzle3.asp"; } });
My problem is that I want to get the value of the variable "totalClick" on the page "puzzle3.asp". After I move on to "puzzle3.asp", I want to use it there to solve some other material. But here, as soon as I get to puzzle3.asp through AJAX, I lost the value of the POST variable "totalClick".
Is it possible to use POST, go to the next page and use the vlaue variable there. Just like setting a session variable, but I understand that I cannot assign a session variable using JS.
Any help would be greatly appreciated.
source share