~Holly ZekhipisonnivuJul 12, 2011, 4:10 PM64 PostsRe: Dojo Dialog problem after refresh- Try doing this in onload, if you aren't. Either: dojo.addOnLoad(function() { your code }); or XSP.addOnLoad(function() { your code });
~Vijay EkboosizennivuJul 14, 2011, 8:36 AM2 PostsRe: Dojo Dialog problem after refreshThanks for suggestion.I've noted that when the page is first loaded the length property of node is 2, but after full refresh is 1.var inputNode4 = dojo.query('[id$="lblNome"]');if(inputNode4!=null && inputNode4.length>0) { inputNode4[inputNode4.length-1].innerHTML = value;}The script works only when length=2.So I've added:XSP.addOnLoad(function() { code });with this code:var mynode = dojo.query('[id$="lblNome"]');if(mynode!=null && mynode.length!=2) { var frame = dojo.query('[id$="frame"]'); if(frame!=null && frame.length>0) XSP.partialRefreshGet(frame[0].id);}note: 'frame' is the main panel which include all controls.Now this works! Thank you!