On Sat, 05 Aug 2006 11:54:37 -0400, Brett Patterson <[EMAIL PROTECTED]> wrote:
> Martin Marques wrote:
>> Before setting up beta2, could someone more into JS and AJAX take a look
> at this bug I just reported: #1483932
>>
>>
>>
>>
> Not sure if I helped or not, but I replied to the ticket with some info
> of why it *may* be happening. As I'm not a JS or AJAX guru, I can't say
> for sure, but I can say that it most probably is that ;)
How would this work out? As I said, I'm not a JS or AJAX expert, but this looks
resonable seeing the same problems other had with this error.
svn diff program/js/app.js
Index: program/js/app.js
===================================================================
--- program/js/app.js (revisión: 293)
+++ program/js/app.js (copia de trabajo)
@@ -3828,14 +3828,20 @@
else if(this.xmlhttp.readyState == 4)
{
- if(this.xmlhttp.status == 0)
- this.onabort(this);
- else if(this.xmlhttp.status == 200)
- this.oncomplete(this);
- else
- this.onerror(this);
-
- this.busy = false;
+ try
+ {
+ if(this.xmlhttp.status == 0)
+ this.onabort(this);
+ else if(this.xmlhttp.status == 200)
+ this.oncomplete(this);
+ else
+ this.onerror(this);
+
+ this.busy = false;
+ } catch(err){
+ this.onerror(this);
+ this.busy = false;
+ }
}
}
--
---------------------------------------------------------
Lic. Martín Marqués | SELECT 'mmarques' ||
Centro de Telemática | '@' || 'unl.edu.ar';
Universidad Nacional | DBA, Programador,
del Litoral | Administrador
---------------------------------------------------------