Update of /cvsroot/magicajax/magicajax/Core/script
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25472/Core/script
Modified Files:
AjaxCallObject.js
Log Message:
--Fix for incompatibility with flash applets
--Fix for an Opera bug
Index: AjaxCallObject.js
===================================================================
RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** AjaxCallObject.js 3 Jan 2006 01:49:09 -0000 1.41
--- AjaxCallObject.js 5 Jan 2006 11:26:00 -0000 1.42
***************
*** 397,401 ****
curElem = theform.elements[i];
eName = curElem.name;
! if( eName && eName != '')
{
if( eName == '__EVENTTARGET' || eName == '__EVENTARGUMENT' )
--- 397,401 ----
curElem = theform.elements[i];
eName = curElem.name;
! if( eName && eName != '' && curElem.tagName != "EMBED")
{
if( eName == '__EVENTTARGET' || eName == '__EVENTARGUMENT' )
***************
*** 534,537 ****
--- 534,544 ----
AjaxCallObject.prototype.OnError = function(status, statusText, responseText)
{
+ if (status==200)
+ {
+ // a weird bug of Opera sometimes invokes OnError when there's no error
+ this.OnComplete(responseText);
+ return;
+ }
+
if (__bTracing)
{
|