When doing a partial refresh, a lock is set in the XSP object which stops all partialRefreshes until the current running refresh is completed or specific time is up (20 s by default).
To change this behaviour you can do two things:
- change the intervall
- allow a resubmition
But in both cases, this is NOT a good choice for your problem with the intervaled refresh, because this would just flood the server with useless requests while the server is still processing a already sent request.
Instead, you should recall your refreshes when your refreshes are completed (or failed). Something like this:
<xp:scriptBlock id="scriptBlock1">
<xp:this.value>
<![CDATA[
function doIt(){
XSP.partialRefreshGet("#{id:refreshPanel}", {
onError: "restart()",
onComplete: function() {
XSP.partialRefreshGet("#{id:refreshPanel2}", {
onComplete: "restart()",
onError: "restart()"
});
}
});
}
function restart(){
window.setTimeout( "doIt()", 1000 );
}
doIt();
]]>
</xp:this.value>
P.S.
I typed this from my brain w/o checking the code on a computer.