Get the URI passed to the ajax call
Get the URI passed to the ajax call
luca.g
Posts: 12Questions: 3Answers: 0
Is it possible to get the URI passed by the ajax
option? For instance, here:
var table = $('#events').DataTable({
"ajax": {
"url": "get_results.php",
"type": "get",
"data": function ( d ) {
return $.extend( {}, d, {
"search_location": localStorage.getItem('search_location'),
[other extra data I'm appending....]
} );
}
},
I see my XHR get call with all its parameters. I'd like to save that string to localStorage for using it later (e.g. for when the user returns to that page).
Replies
Would this work for you?
Allan
Thank you Allan, got it: