Index: lams_learning/web/includes/presence.js =================================================================== RCS file: /usr/local/cvsroot/lams_learning/web/includes/Attic/presence.js,v diff -u -r1.1 -r1.2 --- lams_learning/web/includes/presence.js 16 Oct 2008 06:46:10 -0000 1.1 +++ lams_learning/web/includes/presence.js 20 Oct 2008 05:03:40 -0000 1.2 @@ -297,20 +297,25 @@ } } function handleError(e) { - //debug statement for error� - //alert("error" + e.getAttribute("code")); - if(FROMFLASH){ // notify flash flashProxy.call("sendMessageToFlash", "Code: " + e.getAttribute("code") + " Type: " + e.getAttribute("type")); - } - - switch(e.getAttribute("code")){ + + switch(e.getAttribute("code")){ // unauthorized, try register case "401": - doLogin(null, null, null, null, null, null, true, null); + flashProxy.call("attemptRegistration"); break; + } } + else{ + switch(e.getAttribute("code")){ + // unauthorized, try register + case "401": + attemptRegistration(); + break; + } + } } function breakPoint() {