From: Argiris K. <be...@us...> - 2005-11-22 00:59:30
|
Update of /cvsroot/magicajax/magicajax/Core/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10664/Core/script Modified Files: AjaxCallObject.js Log Message: More testing revealed that an AjaxPanel that is invisible and not contained inside another AjaxPanel, cannot be made visible during AjaxCall correctly. To spare developers the confusion, an exception is thrown when this situation occurs. Index: AjaxCallObject.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** AjaxCallObject.js 21 Nov 2005 21:40:14 -0000 1.17 --- AjaxCallObject.js 22 Nov 2005 00:59:23 -0000 1.18 *************** *** 174,183 **** AjaxCallObject.prototype.OnPageBeforeUnload = function() { ! if (navigator.appName != "Microsoft Internet Explorer") ! { ! // Save the html of the form, so that it can be restored for the browser's "Back Button" ! // Note: Firefox only document.forms[0][__PageStateCacheName].value = "HTML:" + encodeURIComponent(document.forms[0].innerHTML); ! } if (__PreviousOnPageBeforeUnload != null) return __PreviousOnPageBeforeUnload(); --- 174,180 ---- AjaxCallObject.prototype.OnPageBeforeUnload = function() { ! if (document.forms[0][__PageStateCacheName] != null) document.forms[0][__PageStateCacheName].value = "HTML:" + encodeURIComponent(document.forms[0].innerHTML); ! if (__PreviousOnPageBeforeUnload != null) return __PreviousOnPageBeforeUnload(); *************** *** 357,360 **** --- 354,360 ---- AjaxCallObject.prototype.OnAbort = function() { + this.WriteTrace("<b>!!! AjaxCall was aborted !!!</b>"); + this.TraceWindow.document.close(); + if (waitElement) waitElement.style.visibility = 'hidden'; *************** *** 363,366 **** --- 363,369 ---- AjaxCallObject.prototype.OnError = function(status, statusText, responseText) { + this.WriteTrace("<b>!!! Server reported an Error !!!</b>"); + this.TraceWindow.document.close(); + if (waitElement) waitElement.style.visibility = 'hidden'; |