From: Argiris K. <be...@us...> - 2006-02-06 01:39:44
|
Update of /cvsroot/magicajax/magicajax/Core/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7629/Core/script Modified Files: AjaxCallObject.js Log Message: --Fixed client validation for 2.0 --At AjaxPanel.ReflectUpdatedFormValues and Util.GetHtmlWithClearedFormValues methods I replaced Hashtable.Add with Hashtable[]= to avoid exceptions when there are attributes with the same name at the same tag (badly formed html) Index: AjaxCallObject.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** AjaxCallObject.js 27 Jan 2006 23:59:09 -0000 1.52 --- AjaxCallObject.js 6 Feb 2006 01:39:35 -0000 1.53 *************** *** 7,10 **** --- 7,11 ---- __TraceWindows = new Array(); __ClockID = 0; + __IsOpera = false; __Netscape8AndUp = false; __ClickX = __ClickY = 0; *************** *** 218,221 **** --- 219,223 ---- { __Netscape8AndUp = navigator.appName == "Netscape" && navigator.vendor == "Netscape" && parseInt(navigator.appVersion) >= 5; + __IsOpera = window.opera ? true : false; this.AddEventListener(document.forms[0], "submit", this.OnFormSubmit); *************** *** 261,264 **** --- 263,277 ---- return false; } + + if (e.getPreventDefault) + { + if (e.getPreventDefault() == true) + return false; + } + else if (!__IsOpera && "returnValue" in e) + { + if (e.returnValue == false) + return false; + } // Empty the cached html of RenderedByScript controls |