How to force using new jsp session attributes after jQuery AJAX loading? -
for question trying show relevant code (please, see below). result of calling user.jsp in function loaduser session attributes change. these session attributes used in jquery function loadactions loads actions.jsp
however, only if internet explorer set check newer versions of stored pages every visit webpage change in session attributes visible in actions.jsp. otherwise, these session attributes not change @ after calling loaduser several times.
mozilla seems working properly.
is there possibility force using new session attributes in function loadactions?
$(document).ready(function () { loaduser(); }); var loaduser = function () { $.ajax({ url: 'user.jsp', data: {…}, success: function (data) {…}, error: function (data) {…}, complete: function () { loadactions(); } }); } var loadactions = function () { $('#actionslist').load('actions.jsp #print, #letters'); }
add unique parameter call ie doesn't think page can cached:
$('#actionslist').load('actions.jsp?' + (new date()).gettime() + ' #print, #letters');
Comments
Post a Comment