javascript - Dojo caching issue in Spring -
I am having a problem where dojo wants to html cache and then it is not shown properly if I This function works well once, and this parameter works on all subsequent calls when it is unique. If I call it twice with duplicate parameters, then there is not necessarily anything. I appreciate any help
combine function (name, page) {var id = dojo.byId ("userId"); Dojo.byId ("Result"). InnerHTML = "& lt; b & gt; Loading ... & lt; / b & gt;"; Dojo.xhrGet ({url: "/test.html?pName="+name+"id="+id.value+"&&page=+ Page, Weight: Function (Data, ioargs) {dojo.byId (" Result "). WinnerHTML = data;}, error: function (error, ioargs) {warning (error);}})}
It does not appear that the dojo is caching HTML, but your browser or your web server is probably caching the result.
Try to stop the blocking : True to your property object for dojo. XhrGet:
dojo.xhrGet ({url: "/ Test.html? Pname =" + name + "id =" + id.val Ue + "& amp; page =" + Page, stop: stop: correct, load: function (data, ioargs) {dojo.byId ("result"). InnerHTML = data;}, error: function (error, ioargs) { Warning (error);}});
Comments
Post a Comment