You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(204) |
Dec
(147) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(52) |
Feb
(33) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
From: Argiris K. <be...@us...> - 2005-12-05 18:44:38
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13470/Core Modified Files: MagicAjaxModule.cs Util.cs Log Message: If the html fingerprint of a 'html holder' doesn't change, AjaxPanel 'reflects' the form controls to the client. Index: Util.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/Util.cs,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** Util.cs 4 Dec 2005 03:25:15 -0000 1.13 --- Util.cs 5 Dec 2005 18:44:31 -0000 1.14 *************** *** 138,142 **** } ! public static ArrayList GetChildControlsOfType (Control parentControl, Type type, bool onlyVisible) { ArrayList list = new ArrayList(); --- 138,150 ---- } ! /// <summary> ! /// Gets all child controls of a specific type. ! /// </summary> ! /// <param name="parentControl">Control to search</param> ! /// <param name="searchType">The type to search for</param> ! /// <param name="notRecursiveType">If not null, the child controls of this type are not searched</param> ! /// <param name="onlyVisible">if true gets only the visible controls</param> ! /// <returns></returns> ! public static ArrayList GetChildControlsOfType (Control parentControl, Type searchType, Type notRecursiveType, bool onlyVisible) { ArrayList list = new ArrayList(); *************** *** 148,155 **** continue; ! if ( type.IsInstanceOfType(con) ) list.Add (con); ! list.AddRange (GetChildControlsOfType(con, type, onlyVisible)); } --- 156,164 ---- continue; ! if ( searchType.IsInstanceOfType(con) ) list.Add (con); ! if ( notRecursiveType == null || !notRecursiveType.IsInstanceOfType(con) ) ! list.AddRange (GetChildControlsOfType(con, searchType, notRecursiveType, onlyVisible)); } Index: MagicAjaxModule.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/MagicAjaxModule.cs,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** MagicAjaxModule.cs 2 Dec 2005 08:25:10 -0000 1.38 --- MagicAjaxModule.cs 5 Dec 2005 18:44:31 -0000 1.39 *************** *** 576,580 **** { // Restore the validators ! ArrayList validators = Util.GetChildControlsOfType(_magicAjaxContext.StoredPageInfo.Page, typeof(IValidator), false); foreach (IValidator valid in validators) _magicAjaxContext.StoredPageInfo.Page.Validators.Add(valid); --- 576,580 ---- { // Restore the validators ! ArrayList validators = Util.GetChildControlsOfType(_magicAjaxContext.StoredPageInfo.Page, typeof(IValidator), null, false); foreach (IValidator valid in validators) _magicAjaxContext.StoredPageInfo.Page.Validators.Add(valid); |
From: Argiris K. <be...@us...> - 2005-12-05 18:42:19
|
Update of /cvsroot/magicajax/magicajax/Core/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12978/Core/script Modified Files: Tag: STABLE AjaxCallObject.js Log Message: Added 'WriteFormat' and 'WriteLine' methods at AjaxCallHelper.cs Index: AjaxCallObject.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v retrieving revision 1.29 retrieving revision 1.29.2.1 diff -C2 -d -r1.29 -r1.29.2.1 *** AjaxCallObject.js 4 Dec 2005 03:25:15 -0000 1.29 --- AjaxCallObject.js 5 Dec 2005 18:42:05 -0000 1.29.2.1 *************** *** 251,260 **** var eName = ''; ! theData = '__EVENTTARGET=' + escape(eventTarget.split("$").join(":")) + '&'; theData += '__EVENTARGUMENT=' + this.EncodePostData(eventArgument) + '&'; theData += '__AJAXCALL=true&'; if ( ! __bPageIsStored ) ! theData += '__VIEWSTATE=' + escape(theform.__VIEWSTATE.value).replace(new RegExp('\\+', 'g'), '%2b') + '&'; for( var i=0; i<theform.elements.length; i++ ) --- 251,260 ---- var eName = ''; ! theData = '__EVENTTARGET=' + this.EncodePostData(eventTarget.split("$").join(":")) + '&'; theData += '__EVENTARGUMENT=' + this.EncodePostData(eventArgument) + '&'; theData += '__AJAXCALL=true&'; if ( ! __bPageIsStored ) ! theData += '__VIEWSTATE=' + this.EncodePostData(theform.__VIEWSTATE.value) + '&'; for( var i=0; i<theform.elements.length; i++ ) *************** *** 284,296 **** val = this.EncodePostData(val); ! if ( type == "select-multiple" ) { for (var j=0; j < theform.elements[i].options.length; j++) if (theform.elements[i].options[j].selected) ! theData = theData + escape(eName) + '=' + this.EncodePostData(theform.elements[i].options[j].value) + '&'; } else if ( (type != "checkbox" && type != "radio") || theform.elements[i].checked ) { ! theData = theData + escape(eName) + '=' + val; if( i != theform.elements.length - 1 ) theData = theData + '&'; --- 284,296 ---- val = this.EncodePostData(val); ! if ( type == "select-multiple" || type == "select-one" ) { for (var j=0; j < theform.elements[i].options.length; j++) if (theform.elements[i].options[j].selected) ! theData = theData + this.EncodePostData(eName) + '=' + this.EncodePostData(theform.elements[i].options[j].value) + '&'; } else if ( (type != "checkbox" && type != "radio") || theform.elements[i].checked ) { ! theData = theData + this.EncodePostData(eName) + '=' + val; if( i != theform.elements.length - 1 ) theData = theData + '&'; *************** *** 375,379 **** // Checking if the data were fully loaded, without being aborted ! var flag = "'AJAX_LOADING_OK';\r\n"; if (responseText.substr(responseText.length - flag.length) != flag) return false; --- 375,379 ---- // Checking if the data were fully loaded, without being aborted ! var flag = "'AJAX_LOADING_OK';"; if (responseText.substr(responseText.length - flag.length) != flag) return false; *************** *** 529,533 **** this.WriteTrace("Javascript code received from server (" + data.length + " characters):<br>"); this.WriteTrace("------------------------------</b><br>"); ! this.WriteTrace(this.EncodeTraceData(data)); this.WriteTrace("<b>------------------------------</b><br>"); this.CloseTrace(); --- 529,533 ---- this.WriteTrace("Javascript code received from server (" + data.length + " characters):<br>"); this.WriteTrace("------------------------------</b><br>"); ! this.WriteTrace(this.EncodeTraceData(data) + "<br>"); this.WriteTrace("<b>------------------------------</b><br>"); this.CloseTrace(); |
From: Argiris K. <be...@us...> - 2005-12-05 18:42:18
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12978/Core Modified Files: Tag: STABLE AjaxCallHelper.cs Log Message: Added 'WriteFormat' and 'WriteLine' methods at AjaxCallHelper.cs Index: AjaxCallHelper.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/AjaxCallHelper.cs,v retrieving revision 1.13 retrieving revision 1.13.2.1 diff -C2 -d -r1.13 -r1.13.2.1 *** AjaxCallHelper.cs 4 Dec 2005 03:25:15 -0000 1.13 --- AjaxCallHelper.cs 5 Dec 2005 18:42:04 -0000 1.13.2.1 *************** *** 92,102 **** } ! /// <summary> ! /// Increases the script writing level. ! /// </summary> ! /// <remarks> ! /// There must be a matching DecreaseWritingLevel call. ! /// See remarks of MergeUpperWritingLevelsWithCurrent method. ! /// </remarks> public static void IncreaseWritingLevel() { --- 92,102 ---- } ! /// <summary> ! /// Increases the script writing level. ! /// </summary> ! /// <remarks> ! /// There must be a matching DecreaseWritingLevel call. ! /// See remarks of MergeUpperWritingLevelsWithCurrent method. ! /// </remarks> public static void IncreaseWritingLevel() { *************** *** 370,375 **** } /// <summary> ! /// Writes to the Response. Included for convenience. /// </summary> /// <remarks> --- 370,385 ---- } + public static void WriteFormat( string format, params object[] args) + { + Write (String.Format(format, args)); + } + + public static void WriteLine( string text ) + { + Write (text + "\r\n"); + } + /// <summary> ! /// Writes javascript to Response during an AjaxCall. /// </summary> /// <remarks> *************** *** 382,390 **** /// </example> /// <param name="text"></param> ! public static void Write( string text) { // Use the string builder ! //Response.Write (text + "\r\n"); ! (_sbWritingLevels[_writingLevel] as StringBuilder).Append (text + "\r\n"); } --- 392,399 ---- /// </example> /// <param name="text"></param> ! public static void Write( string text ) { // Use the string builder ! (_sbWritingLevels[_writingLevel] as StringBuilder).Append (text); } |
From: Argiris K. <be...@us...> - 2005-12-05 18:42:18
|
Update of /cvsroot/magicajax/magicajax/Docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12978/Docs Modified Files: Tag: STABLE Changelog.html Log Message: Added 'WriteFormat' and 'WriteLine' methods at AjaxCallHelper.cs Index: Changelog.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Changelog.html,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** Changelog.html 4 Dec 2005 03:25:15 -0000 1.4 --- Changelog.html 5 Dec 2005 18:42:05 -0000 1.4.2.1 *************** *** 57,61 **** <p>Changes since 0.2.1</p> <ul> ! <li> Added check of browser type "NetScape5" for MagicAjaxContext's IsBrowserSupported --- 57,63 ---- <p>Changes since 0.2.1</p> <ul> ! <LI> ! Added 'WriteFormat' and 'WriteLine' methods at AjaxCallHelper.cs</LI> ! <LI> Added check of browser type "NetScape5" for MagicAjaxContext's IsBrowserSupported |
From: Argiris K. <be...@us...> - 2005-12-05 18:40:58
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12813/Core Modified Files: AjaxCallHelper.cs Log Message: Added 'WriteFormat' and 'WriteLine' methods at AjaxCallHelper.cs Index: AjaxCallHelper.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/AjaxCallHelper.cs,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** AjaxCallHelper.cs 4 Dec 2005 03:25:15 -0000 1.13 --- AjaxCallHelper.cs 5 Dec 2005 18:40:50 -0000 1.14 *************** *** 370,375 **** } /// <summary> ! /// Writes to the Response. Included for convenience. /// </summary> /// <remarks> --- 370,385 ---- } + public static void WriteFormat( string format, params object[] args) + { + Write (String.Format(format, args)); + } + + public static void WriteLine( string text ) + { + Write (text + "\r\n"); + } + /// <summary> ! /// Writes javascript to Response during an AjaxCall. /// </summary> /// <remarks> *************** *** 382,390 **** /// </example> /// <param name="text"></param> ! public static void Write( string text) { // Use the string builder ! //Response.Write (text + "\r\n"); ! (_sbWritingLevels[_writingLevel] as StringBuilder).Append (text + "\r\n"); } --- 392,399 ---- /// </example> /// <param name="text"></param> ! public static void Write( string text ) { // Use the string builder ! (_sbWritingLevels[_writingLevel] as StringBuilder).Append (text); } |
From: Argiris K. <be...@us...> - 2005-12-05 18:40:57
|
Update of /cvsroot/magicajax/magicajax/Core/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12813/Core/script Modified Files: AjaxCallObject.js Log Message: Added 'WriteFormat' and 'WriteLine' methods at AjaxCallHelper.cs Index: AjaxCallObject.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** AjaxCallObject.js 4 Dec 2005 03:25:15 -0000 1.29 --- AjaxCallObject.js 5 Dec 2005 18:40:50 -0000 1.30 *************** *** 251,260 **** var eName = ''; ! theData = '__EVENTTARGET=' + escape(eventTarget.split("$").join(":")) + '&'; theData += '__EVENTARGUMENT=' + this.EncodePostData(eventArgument) + '&'; theData += '__AJAXCALL=true&'; if ( ! __bPageIsStored ) ! theData += '__VIEWSTATE=' + escape(theform.__VIEWSTATE.value).replace(new RegExp('\\+', 'g'), '%2b') + '&'; for( var i=0; i<theform.elements.length; i++ ) --- 251,260 ---- var eName = ''; ! theData = '__EVENTTARGET=' + this.EncodePostData(eventTarget.split("$").join(":")) + '&'; theData += '__EVENTARGUMENT=' + this.EncodePostData(eventArgument) + '&'; theData += '__AJAXCALL=true&'; if ( ! __bPageIsStored ) ! theData += '__VIEWSTATE=' + this.EncodePostData(theform.__VIEWSTATE.value) + '&'; for( var i=0; i<theform.elements.length; i++ ) *************** *** 284,296 **** val = this.EncodePostData(val); ! if ( type == "select-multiple" ) { for (var j=0; j < theform.elements[i].options.length; j++) if (theform.elements[i].options[j].selected) ! theData = theData + escape(eName) + '=' + this.EncodePostData(theform.elements[i].options[j].value) + '&'; } else if ( (type != "checkbox" && type != "radio") || theform.elements[i].checked ) { ! theData = theData + escape(eName) + '=' + val; if( i != theform.elements.length - 1 ) theData = theData + '&'; --- 284,296 ---- val = this.EncodePostData(val); ! if ( type == "select-multiple" || type == "select-one" ) { for (var j=0; j < theform.elements[i].options.length; j++) if (theform.elements[i].options[j].selected) ! theData = theData + this.EncodePostData(eName) + '=' + this.EncodePostData(theform.elements[i].options[j].value) + '&'; } else if ( (type != "checkbox" && type != "radio") || theform.elements[i].checked ) { ! theData = theData + this.EncodePostData(eName) + '=' + val; if( i != theform.elements.length - 1 ) theData = theData + '&'; *************** *** 375,379 **** // Checking if the data were fully loaded, without being aborted ! var flag = "'AJAX_LOADING_OK';\r\n"; if (responseText.substr(responseText.length - flag.length) != flag) return false; --- 375,379 ---- // Checking if the data were fully loaded, without being aborted ! var flag = "'AJAX_LOADING_OK';"; if (responseText.substr(responseText.length - flag.length) != flag) return false; *************** *** 529,533 **** this.WriteTrace("Javascript code received from server (" + data.length + " characters):<br>"); this.WriteTrace("------------------------------</b><br>"); ! this.WriteTrace(this.EncodeTraceData(data)); this.WriteTrace("<b>------------------------------</b><br>"); this.CloseTrace(); --- 529,533 ---- this.WriteTrace("Javascript code received from server (" + data.length + " characters):<br>"); this.WriteTrace("------------------------------</b><br>"); ! this.WriteTrace(this.EncodeTraceData(data) + "<br>"); this.WriteTrace("<b>------------------------------</b><br>"); this.CloseTrace(); |
From: Argiris K. <be...@us...> - 2005-12-05 18:40:57
|
Update of /cvsroot/magicajax/magicajax/Docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12813/Docs Modified Files: Changelog.html Log Message: Added 'WriteFormat' and 'WriteLine' methods at AjaxCallHelper.cs Index: Changelog.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Changelog.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Changelog.html 4 Dec 2005 03:25:15 -0000 1.4 --- Changelog.html 5 Dec 2005 18:40:50 -0000 1.5 *************** *** 58,61 **** --- 58,63 ---- <ul> <li> + Added 'WriteFormat' and 'WriteLine' methods at AjaxCallHelper.cs + <LI> Added check of browser type "NetScape5" for MagicAjaxContext's IsBrowserSupported |
From: Argiris K. <be...@us...> - 2005-12-04 03:25:24
|
Update of /cvsroot/magicajax/magicajax/Docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31248/Docs Modified Files: Changelog.html Log Message: Merged the changes from STABLE to HEAD Index: Changelog.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Changelog.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Changelog.html 2 Dec 2005 18:59:59 -0000 1.3 --- Changelog.html 4 Dec 2005 03:25:15 -0000 1.4 *************** *** 58,73 **** <ul> <li> ! All clientside validators inside AjaxPanels are disabled (for NoStore mode only); This solves clientside validation script errors. <li> Fix for the clientside WaitElement. Now works for IE5.5, IE6 and FireFox. <li> Fixed the javascript errors the occured when the browser was not supported <li> ! An exception is thrown if MagicAjaxModule is not included in the HttpModules of web.config and the code tries to access MagicAjaxContext.Current <li> ! Added 'MagicAjaxContext' protected property in AjaxControl, AjaxPage and ! AjaxUserControl classes. ! </li> </ul> <p class="MainHeader" align="left">v0.2.1 (29 November 2005) - Maintenance Release</p> --- 58,90 ---- <ul> <li> ! Added check of browser type "NetScape5" for MagicAjaxContext's ! IsBrowserSupported ! <LI> ! Fixed a bug of AjaxCallObject.js; when DoAjaxCall was invoked with empty ! parameters, a HtmlInputButton was "clicked" on the server ! <LI> ! Fixed a bug of AjaxPanel; if it didn't contain any WebControls its contents ! were sent to client at each AjaxCall ! <LI> ! An exception is thrown when the AjaxCallHelper write methods are used outside ! of an AjaxCall ! <LI> ! All clientside validators inside AjaxPanels are disabled (for NoStore mode ! only); This solves clientside validation script errors. <li> Fix for the clientside WaitElement. Now works for IE5.5, IE6 and FireFox. <li> + Fixed a bug in AjaxCallObject.js regarding ClockID; + AjaxCallHelper.SetAjaxCallTimerInterval is working properly now + <LI> Fixed the javascript errors the occured when the browser was not supported <li> ! An exception is thrown if MagicAjaxModule is not included in the HttpModules of web.config and the code tries to access MagicAjaxContext.Current <li> ! Added 'MagicAjaxContext' protected property in AjaxControl, AjaxPage and ! AjaxUserControl classes. ! <LI> ! Minor enhancements</LI> </ul> <p class="MainHeader" align="left">v0.2.1 (29 November 2005) - Maintenance Release</p> *************** *** 75,80 **** <ul> <li> ! Fixed a bug in AjaxCallObject.js; when the server reported an exception and ! 'tracing' was disabled, instead of rendering the error page a 'this.TraceWindow.document is null or not an object' javascript error occured <li> --- 92,97 ---- <ul> <li> ! Fixed a bug in AjaxCallObject.js; when the server reported an exception and ! 'tracing' was disabled, instead of rendering the error page a 'this.TraceWindow.document is null or not an object' javascript error occured <li> |
From: Argiris K. <be...@us...> - 2005-12-04 03:25:24
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31248/Core Modified Files: AjaxCallHelper.cs MagicAjaxContext.cs PageFilter.cs StoredPageInfo.cs Util.cs Log Message: Merged the changes from STABLE to HEAD Index: PageFilter.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/PageFilter.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PageFilter.cs 2 Dec 2005 08:25:10 -0000 1.4 --- PageFilter.cs 4 Dec 2005 03:25:15 -0000 1.5 *************** *** 1,2 **** --- 1,23 ---- + #region LGPL License + /* + MagicAjax.NET Framework + Copyright (C) 2005 MagicAjax Project Team + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #endregion + using System; using System.IO; Index: StoredPageInfo.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/StoredPageInfo.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** StoredPageInfo.cs 23 Nov 2005 15:12:48 -0000 1.3 --- StoredPageInfo.cs 4 Dec 2005 03:25:15 -0000 1.4 *************** *** 1,2 **** --- 1,23 ---- + #region LGPL License + /* + MagicAjax.NET Framework + Copyright (C) 2005 MagicAjax Project Team + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #endregion + using System; using System.Web.UI; Index: AjaxCallHelper.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/AjaxCallHelper.cs,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** AjaxCallHelper.cs 30 Nov 2005 12:22:29 -0000 1.12 --- AjaxCallHelper.cs 4 Dec 2005 03:25:15 -0000 1.13 *************** *** 41,45 **** get { ! return (ArrayList)(HttpContext.Current.Items["_sbWritingLevels"]); } set --- 41,50 ---- get { ! ArrayList levels = HttpContext.Current.Items["_sbWritingLevels"] as ArrayList; ! if ( levels == null ) ! { ! throw new MagicAjaxException("Using the AjaxCallHelper write methods outside of an AjaxCall is not allowed."); ! } ! return levels; } set Index: Util.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/Util.cs,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** Util.cs 2 Dec 2005 08:25:10 -0000 1.12 --- Util.cs 4 Dec 2005 03:25:15 -0000 1.13 *************** *** 1,2 **** --- 1,23 ---- + #region LGPL License + /* + MagicAjax.NET Framework + Copyright (C) 2005 MagicAjax Project Team + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #endregion + using System; using System.Collections; Index: MagicAjaxContext.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/MagicAjaxContext.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** MagicAjaxContext.cs 30 Nov 2005 12:22:29 -0000 1.7 --- MagicAjaxContext.cs 4 Dec 2005 03:25:15 -0000 1.8 *************** *** 1,2 **** --- 1,23 ---- + #region LGPL License + /* + MagicAjax.NET Framework + Copyright (C) 2005 MagicAjax Project Team + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #endregion + using System; using System.Text; *************** *** 180,184 **** HttpBrowserCapabilities caps = HttpContext.Current.Request.Browser; ! if (caps.Browser != null && caps.EcmaScriptVersion.Major >= 1 && caps.W3CDomVersion.Major >= 1) { switch (caps.Browser.ToLower()) --- 201,205 ---- HttpBrowserCapabilities caps = HttpContext.Current.Request.Browser; ! if (caps.Browser != null && caps.EcmaScriptVersion.Major >= 1) { switch (caps.Browser.ToLower()) *************** *** 193,196 **** --- 214,220 ---- _isBrowserSupported = caps.MajorVersion >= 1; break; + case "netscape": + _isBrowserSupported = caps.MajorVersion >= 5; + break; //TODO: add support for Opera, Netscape and Safari } |
From: Argiris K. <be...@us...> - 2005-12-04 03:25:24
|
Update of /cvsroot/magicajax/magicajax/CustomControls/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31248/CustomControls/script Modified Files: AjaxLinkedPanelListScripts.js Log Message: Merged the changes from STABLE to HEAD Index: AjaxLinkedPanelListScripts.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/CustomControls/script/AjaxLinkedPanelListScripts.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AjaxLinkedPanelListScripts.js 14 Nov 2005 18:50:43 -0000 1.2 --- AjaxLinkedPanelListScripts.js 4 Dec 2005 03:25:15 -0000 1.3 *************** *** 1,14 **** ! var prev_AJAXCbo_Complete = AJAXCbo.OnComplete; ! var prev_AJAXCbo_Error = AJAXCbo.OnError; ! AJAXCbo.OnComplete = AjaxLinkedPanelList_AJAXCbo_Complete; ! AJAXCbo.OnError = AjaxLinkedPanelList_AJAXCbo_Error; - function AjaxLinkedPanelList_AJAXCbo_Complete(responseText, responseXML) - { - var result = prev_AJAXCbo_Complete(responseText, responseXML); if (result == false) return false; ! RemoveLoadingImages(); --- 1,29 ---- ! AjaxCallObject.prototype.OnComplete = function (responseText, responseXML) ! { ! if (__bTracing) ! { ! this.TraceReceivedData(responseText); ! } ! var result; ! // Checking if the data were fully loaded, without being aborted ! var flag = "'AJAX_LOADING_OK';\r\n"; ! if (responseText.substr(responseText.length - flag.length) != flag) ! { ! result = false; ! } ! else ! { ! eval(responseText); ! ! if (waitElement) ! waitElement.style.visibility = 'hidden'; ! ! result = true; ! } if (result == false) return false; ! RemoveLoadingImages(); *************** *** 32,41 **** } - function AjaxLinkedPanelList_AJAXCbo_Error(status, statusText, responseText) - { - RemoveLoadingImages(); - prev_AJAXCbo_Error(status, statusText, responseText); - } - function AjaxLinkedPanelList_Link_Click(linkTarget) { --- 47,50 ---- |
From: Argiris K. <be...@us...> - 2005-12-04 03:25:24
|
Update of /cvsroot/magicajax/magicajax/Core/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31248/Core/script Modified Files: AjaxCallObject.js Log Message: Merged the changes from STABLE to HEAD Index: AjaxCallObject.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** AjaxCallObject.js 2 Dec 2005 09:58:04 -0000 1.28 --- AjaxCallObject.js 4 Dec 2005 03:25:15 -0000 1.29 *************** *** 1,4 **** --- 1,5 ---- __AJAXCboList = new Array(); __bPageIsStored = false; + __bUnloadStoredPage = false; __bTracing = false; __PreviousOnFormSubmit = null; *************** *** 8,11 **** --- 9,13 ---- __PreviousOnPageUnload = null; __TraceWindows = new Array(); + __ClockID = 0; function AjaxCallObject() *************** *** 73,76 **** --- 75,79 ---- __bPageIsStored = bPageIsStored; + __bUnloadStoredPage = bUnloadStoredPage; __bTracing = bTracing; *************** *** 88,104 **** __PreviousOnPageBeforeUnload = window.onbeforeunload; window.onbeforeunload = this.OnPageBeforeUnload; - - __PreviousOnPageUnload = window.onunload; - window.onunload = function() { - AJAXCbo.ClearTracingWindows(); - if (__PreviousOnPageUnload != null) - __PreviousOnPageUnload(); - } - } - else - { - __PreviousOnPageUnload = window.onunload; - window.onunload = this.OnPageUnload; } } --- 91,98 ---- __PreviousOnPageBeforeUnload = window.onbeforeunload; window.onbeforeunload = this.OnPageBeforeUnload; } + + __PreviousOnPageUnload = window.onunload; + window.onunload = this.OnPageUnload; } *************** *** 180,184 **** if (__PreviousPostBack != null) { - AJAXCbo.ClearTracingWindows(); __PreviousPostBack(eventTarget, eventArgument); } --- 174,177 ---- *************** *** 196,200 **** if (html != "") { ! RBS_Controls[i].innerHTML = decodeURIComponent(html.substring(5, html.length)); RBS_Controls_Store[i].value = ""; } --- 189,193 ---- if (html != "") { ! RBS_Controls[i].innerHTML = html.substring(5, html.length); RBS_Controls_Store[i].value = ""; } *************** *** 212,216 **** { for (var i=0; i < RBS_Controls.length; i++) ! RBS_Controls_Store[i].value = "HTML:" + encodeURIComponent(RBS_Controls[i].innerHTML); } if (__PreviousOnPageBeforeUnload != null) --- 205,209 ---- { for (var i=0; i < RBS_Controls.length; i++) ! RBS_Controls_Store[i].value = "HTML:" + RBS_Controls[i].innerHTML; } if (__PreviousOnPageBeforeUnload != null) *************** *** 221,224 **** --- 214,220 ---- { AJAXCbo.ClearTracingWindows(); + + if ( !__bPageIsStored || !__bUnloadStoredPage ) + return; if (document.forms[0]["__AJAX_PAGEKEY"] == null) *************** *** 256,260 **** theData = '__EVENTTARGET=' + escape(eventTarget.split("$").join(":")) + '&'; ! theData += '__EVENTARGUMENT=' + encodeURIComponent(eventArgument) + '&'; theData += '__AJAXCALL=true&'; --- 252,256 ---- theData = '__EVENTTARGET=' + escape(eventTarget.split("$").join(":")) + '&'; ! theData += '__EVENTARGUMENT=' + this.EncodePostData(eventArgument) + '&'; theData += '__AJAXCALL=true&'; *************** *** 276,280 **** var val = theform.elements[i].value; ! if ( type == "submit" ) continue; --- 272,276 ---- var val = theform.elements[i].value; ! if ( type == "submit" || type == "button" ) continue; *************** *** 286,290 **** } ! val = encodeURIComponent(val); if ( type == "select-multiple" ) --- 282,286 ---- } ! val = this.EncodePostData(val); if ( type == "select-multiple" ) *************** *** 292,296 **** for (var j=0; j < theform.elements[i].options.length; j++) if (theform.elements[i].options[j].selected) ! theData = theData + escape(eName) + '=' + encodeURIComponent(theform.elements[i].options[j].value) + '&'; } else if ( (type != "checkbox" && type != "radio") || theform.elements[i].checked ) --- 288,292 ---- for (var j=0; j < theform.elements[i].options.length; j++) if (theform.elements[i].options[j].selected) ! theData = theData + escape(eName) + '=' + this.EncodePostData(theform.elements[i].options[j].value) + '&'; } else if ( (type != "checkbox" && type != "radio") || theform.elements[i].checked ) *************** *** 455,471 **** AjaxCallObject.prototype.TraceWindow = null; - AjaxCallObject.prototype.ClockID = 0; - AjaxCallObject.prototype.SetIntervalForAjaxCall = function(milliSec) { ! if (this.ClockID) this.ClearIntervalForAjaxCall(); ! this.ClockID = window.setInterval("AJAXCbo.DoAjaxCall('__AJAX_AJAXCALLTIMER','','async')", milliSec); } AjaxCallObject.prototype.ClearIntervalForAjaxCall = function() { ! window.clearInterval(this.ClockID); ! this.ClockID = 0; } --- 451,465 ---- AjaxCallObject.prototype.TraceWindow = null; AjaxCallObject.prototype.SetIntervalForAjaxCall = function(milliSec) { ! if (__ClockID != 0) this.ClearIntervalForAjaxCall(); ! __ClockID = window.setInterval("AJAXCbo.DoAjaxCall('__AJAX_AJAXCALLTIMER','','async')", milliSec); } AjaxCallObject.prototype.ClearIntervalForAjaxCall = function() { ! window.clearInterval(__ClockID); ! __ClockID = 0; } *************** *** 495,498 **** --- 489,493 ---- __TraceWindows.push(this.TraceWindow); } + this.TraceWindow.TraceFinished = false; } *************** *** 519,523 **** var fields = data.split("&"); for (var i=0; i < fields.length; i++) ! this.WriteTrace(decodeURIComponent(fields[i].split("<").join("<")) + "<br>"); this.WriteTrace("<b>------------------------------</b><br>"); --- 514,522 ---- var fields = data.split("&"); for (var i=0; i < fields.length; i++) ! { ! var parts = fields[i].split("="); ! this.WriteTrace("<b>" + parts[0] + "=</b>"); ! this.WriteTrace(this.EncodeTraceData(parts[1]) + "<br>"); ! } this.WriteTrace("<b>------------------------------</b><br>"); *************** *** 530,534 **** this.WriteTrace("Javascript code received from server (" + data.length + " characters):<br>"); this.WriteTrace("------------------------------</b><br>"); ! this.WriteTrace(data.split("<").join("<").split("\r\n").join("<br>")); this.WriteTrace("<b>------------------------------</b><br>"); this.CloseTrace(); --- 529,533 ---- this.WriteTrace("Javascript code received from server (" + data.length + " characters):<br>"); this.WriteTrace("------------------------------</b><br>"); ! this.WriteTrace(this.EncodeTraceData(data)); this.WriteTrace("<b>------------------------------</b><br>"); this.CloseTrace(); *************** *** 546,549 **** --- 545,558 ---- } + AjaxCallObject.prototype.EncodeTraceData = function(data) + { + return data.split("<").join("<").split(" ").join(" ").split("\r\n").join("<br>"); + } + + AjaxCallObject.prototype.EncodePostData = function(data) + { + return data.split("%").join("%25").split("=").join("%3d").split("&").join("%26").split("+").join("%2b"); + } + AjaxCallObject.prototype.SetAttributesOfControl = function(clientID, attributes) { |
From: Argiris K. <be...@us...> - 2005-12-04 03:25:23
|
Update of /cvsroot/magicajax/magicajax/Core/UI/Controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31248/Core/UI/Controls Modified Files: AjaxPanel.cs Log Message: Merged the changes from STABLE to HEAD Index: AjaxPanel.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/Controls/AjaxPanel.cs,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** AjaxPanel.cs 2 Dec 2005 08:25:10 -0000 1.27 --- AjaxPanel.cs 4 Dec 2005 03:25:15 -0000 1.28 *************** *** 401,411 **** foreach (Control con in this.Controls) { ! if (_controlState.ControlHtmlFingerprints.ContainsKey(con.ClientID)) ! { ! _controlHtmlFingerprints[con] = _controlState.ControlHtmlFingerprints[con.ClientID]; ! } ! else { ! _addedControls.Add (con); } } --- 401,414 ---- foreach (Control con in this.Controls) { ! if ( con is WebControl ) { ! if (_controlState.ControlHtmlFingerprints.ContainsKey(con.ClientID)) ! { ! _controlHtmlFingerprints[con] = _controlState.ControlHtmlFingerprints[con.ClientID]; ! } ! else ! { ! _addedControls.Add (con); ! } } } *************** *** 756,760 **** #endregion ! #region Validator methods /// <summary> /// Clears 'display' and 'visibility' styles from all the validators. --- 759,763 ---- #endregion ! #region Validators /// <summary> /// Clears 'display' and 'visibility' styles from all the validators. |
From: Argiris K. <be...@us...> - 2005-12-03 17:11:22
|
Update of /cvsroot/magicajax/magicajax/Docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16085/Docs Modified Files: Tag: STABLE Changelog.html Log Message: Added check of browser type "NetScape5" for MagicAjaxContext's IsBrowserSupported Index: Changelog.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Changelog.html,v retrieving revision 1.2.2.5 retrieving revision 1.2.2.6 diff -C2 -d -r1.2.2.5 -r1.2.2.6 *** Changelog.html 3 Dec 2005 16:38:09 -0000 1.2.2.5 --- Changelog.html 3 Dec 2005 17:11:14 -0000 1.2.2.6 *************** *** 58,61 **** --- 58,64 ---- <ul> <li> + Added check of browser type "NetScape5" for MagicAjaxContext's + IsBrowserSupported + <LI> Fixed a bug of AjaxCallObject.js; when DoAjaxCall was invoked with empty parameters, a HtmlInputButton was "clicked" on the server |
From: Argiris K. <be...@us...> - 2005-12-03 17:11:22
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16085/Core Modified Files: Tag: STABLE MagicAjaxContext.cs Log Message: Added check of browser type "NetScape5" for MagicAjaxContext's IsBrowserSupported Index: MagicAjaxContext.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/MagicAjaxContext.cs,v retrieving revision 1.7.2.1 retrieving revision 1.7.2.2 diff -C2 -d -r1.7.2.1 -r1.7.2.2 *** MagicAjaxContext.cs 3 Dec 2005 09:47:20 -0000 1.7.2.1 --- MagicAjaxContext.cs 3 Dec 2005 17:11:14 -0000 1.7.2.2 *************** *** 201,205 **** HttpBrowserCapabilities caps = HttpContext.Current.Request.Browser; ! if (caps.Browser != null && caps.EcmaScriptVersion.Major >= 1 && caps.W3CDomVersion.Major >= 1) { switch (caps.Browser.ToLower()) --- 201,205 ---- HttpBrowserCapabilities caps = HttpContext.Current.Request.Browser; ! if (caps.Browser != null && caps.EcmaScriptVersion.Major >= 1) { switch (caps.Browser.ToLower()) *************** *** 214,217 **** --- 214,220 ---- _isBrowserSupported = caps.MajorVersion >= 1; break; + case "netscape": + _isBrowserSupported = caps.MajorVersion >= 5; + break; //TODO: add support for Opera, Netscape and Safari } |
From: Argiris K. <be...@us...> - 2005-12-03 16:38:19
|
Update of /cvsroot/magicajax/magicajax/Docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9010/Docs Modified Files: Tag: STABLE Changelog.html Log Message: -Added EncodePostData function and replaced 'encodeUriComponents' with it -Fixed a bug, that caused a HtmlInputButton to be 'clicked' on server when DoAjaxCall was invoked with empty parameters. Index: Changelog.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Changelog.html,v retrieving revision 1.2.2.4 retrieving revision 1.2.2.5 diff -C2 -d -r1.2.2.4 -r1.2.2.5 *** Changelog.html 3 Dec 2005 13:00:09 -0000 1.2.2.4 --- Changelog.html 3 Dec 2005 16:38:09 -0000 1.2.2.5 *************** *** 58,61 **** --- 58,64 ---- <ul> <li> + Fixed a bug of AjaxCallObject.js; when DoAjaxCall was invoked with empty + parameters, a HtmlInputButton was "clicked" on the server + <LI> Fixed a bug of AjaxPanel; if it didn't contain any WebControls its contents were sent to client at each AjaxCall *************** *** 77,83 **** web.config and the code tries to access MagicAjaxContext.Current <li> ! Added 'MagicAjaxContext' protected property in AjaxControl, AjaxPage and ! AjaxUserControl classes. ! </li> </ul> <p class="MainHeader" align="left">v0.2.1 (29 November 2005) - Maintenance Release</p> --- 80,87 ---- web.config and the code tries to access MagicAjaxContext.Current <li> ! Added 'MagicAjaxContext' protected property in AjaxControl, AjaxPage and ! AjaxUserControl classes. ! <LI> ! Minor enhancements</LI> </ul> <p class="MainHeader" align="left">v0.2.1 (29 November 2005) - Maintenance Release</p> |
From: Argiris K. <be...@us...> - 2005-12-03 16:38:17
|
Update of /cvsroot/magicajax/magicajax/Core/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9010/Core/script Modified Files: Tag: STABLE AjaxCallObject.js Log Message: -Added EncodePostData function and replaced 'encodeUriComponents' with it -Fixed a bug, that caused a HtmlInputButton to be 'clicked' on server when DoAjaxCall was invoked with empty parameters. Index: AjaxCallObject.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v retrieving revision 1.27.2.3 retrieving revision 1.27.2.4 diff -C2 -d -r1.27.2.3 -r1.27.2.4 *** AjaxCallObject.js 3 Dec 2005 11:50:58 -0000 1.27.2.3 --- AjaxCallObject.js 3 Dec 2005 16:38:09 -0000 1.27.2.4 *************** *** 252,256 **** theData = '__EVENTTARGET=' + escape(eventTarget.split("$").join(":")) + '&'; ! theData += '__EVENTARGUMENT=' + encodeURIComponent(eventArgument) + '&'; theData += '__AJAXCALL=true&'; --- 252,256 ---- theData = '__EVENTTARGET=' + escape(eventTarget.split("$").join(":")) + '&'; ! theData += '__EVENTARGUMENT=' + this.EncodePostData(eventArgument) + '&'; theData += '__AJAXCALL=true&'; *************** *** 272,276 **** var val = theform.elements[i].value; ! if ( type == "submit" ) continue; --- 272,276 ---- var val = theform.elements[i].value; ! if ( type == "submit" || type == "button" ) continue; *************** *** 282,286 **** } ! val = encodeURIComponent(val); if ( type == "select-multiple" ) --- 282,286 ---- } ! val = this.EncodePostData(val); if ( type == "select-multiple" ) *************** *** 288,292 **** for (var j=0; j < theform.elements[i].options.length; j++) if (theform.elements[i].options[j].selected) ! theData = theData + escape(eName) + '=' + encodeURIComponent(theform.elements[i].options[j].value) + '&'; } else if ( (type != "checkbox" && type != "radio") || theform.elements[i].checked ) --- 288,292 ---- for (var j=0; j < theform.elements[i].options.length; j++) if (theform.elements[i].options[j].selected) ! theData = theData + escape(eName) + '=' + this.EncodePostData(theform.elements[i].options[j].value) + '&'; } else if ( (type != "checkbox" && type != "radio") || theform.elements[i].checked ) *************** *** 514,518 **** var fields = data.split("&"); for (var i=0; i < fields.length; i++) ! this.WriteTrace(decodeURIComponent(fields[i].split("<").join("<")) + "<br>"); this.WriteTrace("<b>------------------------------</b><br>"); --- 514,522 ---- var fields = data.split("&"); for (var i=0; i < fields.length; i++) ! { ! var parts = fields[i].split("="); ! this.WriteTrace("<b>" + parts[0] + "=</b>"); ! this.WriteTrace(this.EncodeTraceData(parts[1]) + "<br>"); ! } this.WriteTrace("<b>------------------------------</b><br>"); *************** *** 525,529 **** this.WriteTrace("Javascript code received from server (" + data.length + " characters):<br>"); this.WriteTrace("------------------------------</b><br>"); ! this.WriteTrace(data.split("<").join("<").split("\r\n").join("<br>")); this.WriteTrace("<b>------------------------------</b><br>"); this.CloseTrace(); --- 529,533 ---- this.WriteTrace("Javascript code received from server (" + data.length + " characters):<br>"); this.WriteTrace("------------------------------</b><br>"); ! this.WriteTrace(this.EncodeTraceData(data)); this.WriteTrace("<b>------------------------------</b><br>"); this.CloseTrace(); *************** *** 541,544 **** --- 545,558 ---- } + AjaxCallObject.prototype.EncodeTraceData = function(data) + { + return data.split("<").join("<").split(" ").join(" ").split("\r\n").join("<br>"); + } + + AjaxCallObject.prototype.EncodePostData = function(data) + { + return data.split("%").join("%25").split("=").join("%3d").split("&").join("%26").split("+").join("%2b"); + } + AjaxCallObject.prototype.SetAttributesOfControl = function(clientID, attributes) { |
From: Argiris K. <be...@us...> - 2005-12-03 13:00:20
|
Update of /cvsroot/magicajax/magicajax/Docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2264/Docs Modified Files: Tag: STABLE Changelog.html Log Message: Update of Change Log Index: Changelog.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Changelog.html,v retrieving revision 1.2.2.3 retrieving revision 1.2.2.4 diff -C2 -d -r1.2.2.3 -r1.2.2.4 *** Changelog.html 3 Dec 2005 12:46:32 -0000 1.2.2.3 --- Changelog.html 3 Dec 2005 13:00:09 -0000 1.2.2.4 *************** *** 58,61 **** --- 58,64 ---- <ul> <li> + Fixed a bug of AjaxPanel; if it didn't contain any WebControls its contents + were sent to client at each AjaxCall + <LI> An exception is thrown when the AjaxCallHelper write methods are used outside of an AjaxCall |
From: Argiris K. <be...@us...> - 2005-12-03 12:56:07
|
Update of /cvsroot/magicajax/magicajax/Core/UI/Controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1546/Core/UI/Controls Modified Files: Tag: STABLE AjaxPanel.cs Log Message: Fixed a bug. The AjaxPanel's contents were sent to client at each AjaxCall if it didn't contain any WebControls. Index: AjaxPanel.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/Controls/AjaxPanel.cs,v retrieving revision 1.26.2.1 retrieving revision 1.26.2.2 diff -C2 -d -r1.26.2.1 -r1.26.2.2 *** AjaxPanel.cs 2 Dec 2005 13:12:41 -0000 1.26.2.1 --- AjaxPanel.cs 3 Dec 2005 12:55:59 -0000 1.26.2.2 *************** *** 401,411 **** foreach (Control con in this.Controls) { ! if (_controlState.ControlHtmlFingerprints.ContainsKey(con.ClientID)) ! { ! _controlHtmlFingerprints[con] = _controlState.ControlHtmlFingerprints[con.ClientID]; ! } ! else { ! _addedControls.Add (con); } } --- 401,414 ---- foreach (Control con in this.Controls) { ! if ( con is WebControl ) { ! if (_controlState.ControlHtmlFingerprints.ContainsKey(con.ClientID)) ! { ! _controlHtmlFingerprints[con] = _controlState.ControlHtmlFingerprints[con.ClientID]; ! } ! else ! { ! _addedControls.Add (con); ! } } } |
From: Argiris K. <be...@us...> - 2005-12-03 12:46:40
|
Update of /cvsroot/magicajax/magicajax/Docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32275/Docs Modified Files: Tag: STABLE Changelog.html Log Message: Access to AjaxCallHelper write methods outside of an AjaxCall is not allowed. An exception is thrown. Index: Changelog.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Changelog.html,v retrieving revision 1.2.2.2 retrieving revision 1.2.2.3 diff -C2 -d -r1.2.2.2 -r1.2.2.3 *** Changelog.html 2 Dec 2005 19:00:16 -0000 1.2.2.2 --- Changelog.html 3 Dec 2005 12:46:32 -0000 1.2.2.3 *************** *** 58,74 **** <ul> <li> ! All clientside validators inside AjaxPanels are disabled (for NoStore mode only); This solves clientside validation script errors. <li> Fix for the clientside WaitElement. Now works for IE5.5, IE6 and FireFox. <li> ! Fixed a bug in AjaxCallObject.js regarding ClockID; AjaxCallHelper.SetAjaxCallTimerInterval is working properly now <LI> Fixed the javascript errors the occured when the browser was not supported <li> ! An exception is thrown if MagicAjaxModule is not included in the HttpModules of web.config and the code tries to access MagicAjaxContext.Current <li> ! Added 'MagicAjaxContext' protected property in AjaxControl, AjaxPage and AjaxUserControl classes. </li> --- 58,78 ---- <ul> <li> ! An exception is thrown when the AjaxCallHelper write methods are used outside ! of an AjaxCall ! <LI> ! All clientside validators inside AjaxPanels are disabled (for NoStore mode ! only); This solves clientside validation script errors. <li> Fix for the clientside WaitElement. Now works for IE5.5, IE6 and FireFox. <li> ! Fixed a bug in AjaxCallObject.js regarding ClockID; AjaxCallHelper.SetAjaxCallTimerInterval is working properly now <LI> Fixed the javascript errors the occured when the browser was not supported <li> ! An exception is thrown if MagicAjaxModule is not included in the HttpModules of web.config and the code tries to access MagicAjaxContext.Current <li> ! Added 'MagicAjaxContext' protected property in AjaxControl, AjaxPage and AjaxUserControl classes. </li> *************** *** 78,83 **** <ul> <li> ! Fixed a bug in AjaxCallObject.js; when the server reported an exception and ! 'tracing' was disabled, instead of rendering the error page a 'this.TraceWindow.document is null or not an object' javascript error occured <li> --- 82,87 ---- <ul> <li> ! Fixed a bug in AjaxCallObject.js; when the server reported an exception and ! 'tracing' was disabled, instead of rendering the error page a 'this.TraceWindow.document is null or not an object' javascript error occured <li> |
From: Argiris K. <be...@us...> - 2005-12-03 12:46:40
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32275/Core Modified Files: Tag: STABLE AjaxCallHelper.cs Log Message: Access to AjaxCallHelper write methods outside of an AjaxCall is not allowed. An exception is thrown. Index: AjaxCallHelper.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/AjaxCallHelper.cs,v retrieving revision 1.12 retrieving revision 1.12.2.1 diff -C2 -d -r1.12 -r1.12.2.1 *** AjaxCallHelper.cs 30 Nov 2005 12:22:29 -0000 1.12 --- AjaxCallHelper.cs 3 Dec 2005 12:46:32 -0000 1.12.2.1 *************** *** 41,45 **** get { ! return (ArrayList)(HttpContext.Current.Items["_sbWritingLevels"]); } set --- 41,50 ---- get { ! ArrayList levels = HttpContext.Current.Items["_sbWritingLevels"] as ArrayList; ! if ( levels == null ) ! { ! throw new MagicAjaxException("Using the AjaxCallHelper write methods outside of an AjaxCall is not allowed."); ! } ! return levels; } set |
From: Argiris K. <be...@us...> - 2005-12-03 11:51:14
|
Update of /cvsroot/magicajax/magicajax/Core/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22338/Core/script Modified Files: Tag: STABLE AjaxCallObject.js Log Message: Some minor fixes that "may" solve IE errors like 'Out of memory'. Index: AjaxCallObject.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v retrieving revision 1.27.2.2 retrieving revision 1.27.2.3 diff -C2 -d -r1.27.2.2 -r1.27.2.3 *** AjaxCallObject.js 2 Dec 2005 13:12:41 -0000 1.27.2.2 --- AjaxCallObject.js 3 Dec 2005 11:50:58 -0000 1.27.2.3 *************** *** 1,4 **** --- 1,5 ---- __AJAXCboList = new Array(); __bPageIsStored = false; + __bUnloadStoredPage = false; __bTracing = false; __PreviousOnFormSubmit = null; *************** *** 74,77 **** --- 75,79 ---- __bPageIsStored = bPageIsStored; + __bUnloadStoredPage = bUnloadStoredPage; __bTracing = bTracing; *************** *** 89,105 **** __PreviousOnPageBeforeUnload = window.onbeforeunload; window.onbeforeunload = this.OnPageBeforeUnload; - - __PreviousOnPageUnload = window.onunload; - window.onunload = function() { - AJAXCbo.ClearTracingWindows(); - if (__PreviousOnPageUnload != null) - __PreviousOnPageUnload(); - } - } - else - { - __PreviousOnPageUnload = window.onunload; - window.onunload = this.OnPageUnload; } } --- 91,98 ---- __PreviousOnPageBeforeUnload = window.onbeforeunload; window.onbeforeunload = this.OnPageBeforeUnload; } + + __PreviousOnPageUnload = window.onunload; + window.onunload = this.OnPageUnload; } *************** *** 181,185 **** if (__PreviousPostBack != null) { - AJAXCbo.ClearTracingWindows(); __PreviousPostBack(eventTarget, eventArgument); } --- 174,177 ---- *************** *** 197,201 **** if (html != "") { ! RBS_Controls[i].innerHTML = decodeURIComponent(html.substring(5, html.length)); RBS_Controls_Store[i].value = ""; } --- 189,193 ---- if (html != "") { ! RBS_Controls[i].innerHTML = html.substring(5, html.length); RBS_Controls_Store[i].value = ""; } *************** *** 213,217 **** { for (var i=0; i < RBS_Controls.length; i++) ! RBS_Controls_Store[i].value = "HTML:" + encodeURIComponent(RBS_Controls[i].innerHTML); } if (__PreviousOnPageBeforeUnload != null) --- 205,209 ---- { for (var i=0; i < RBS_Controls.length; i++) ! RBS_Controls_Store[i].value = "HTML:" + RBS_Controls[i].innerHTML; } if (__PreviousOnPageBeforeUnload != null) *************** *** 222,225 **** --- 214,220 ---- { AJAXCbo.ClearTracingWindows(); + + if ( !__bPageIsStored || !__bUnloadStoredPage ) + return; if (document.forms[0]["__AJAX_PAGEKEY"] == null) |
From: Argiris K. <be...@us...> - 2005-12-03 09:47:28
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4788/Core Modified Files: Tag: STABLE MagicAjaxContext.cs PageFilter.cs StoredPageInfo.cs Util.cs Log Message: Added the LGPL license statement in the new classes. Index: PageFilter.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/PageFilter.cs,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** PageFilter.cs 23 Nov 2005 19:34:23 -0000 1.2 --- PageFilter.cs 3 Dec 2005 09:47:20 -0000 1.2.2.1 *************** *** 1,2 **** --- 1,23 ---- + #region LGPL License + /* + MagicAjax.NET Framework + Copyright (C) 2005 MagicAjax Project Team + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #endregion + using System; using System.IO; Index: StoredPageInfo.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/StoredPageInfo.cs,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** StoredPageInfo.cs 23 Nov 2005 15:12:48 -0000 1.3 --- StoredPageInfo.cs 3 Dec 2005 09:47:20 -0000 1.3.2.1 *************** *** 1,2 **** --- 1,23 ---- + #region LGPL License + /* + MagicAjax.NET Framework + Copyright (C) 2005 MagicAjax Project Team + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #endregion + using System; using System.Web.UI; Index: Util.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/Util.cs,v retrieving revision 1.11 retrieving revision 1.11.2.1 diff -C2 -d -r1.11 -r1.11.2.1 *** Util.cs 25 Nov 2005 20:45:47 -0000 1.11 --- Util.cs 3 Dec 2005 09:47:20 -0000 1.11.2.1 *************** *** 1,2 **** --- 1,23 ---- + #region LGPL License + /* + MagicAjax.NET Framework + Copyright (C) 2005 MagicAjax Project Team + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #endregion + using System; using System.Collections; Index: MagicAjaxContext.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/MagicAjaxContext.cs,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** MagicAjaxContext.cs 30 Nov 2005 12:22:29 -0000 1.7 --- MagicAjaxContext.cs 3 Dec 2005 09:47:20 -0000 1.7.2.1 *************** *** 1,2 **** --- 1,23 ---- + #region LGPL License + /* + MagicAjax.NET Framework + Copyright (C) 2005 MagicAjax Project Team + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #endregion + using System; using System.Text; |
From: Dion O. <dol...@us...> - 2005-12-02 19:00:25
|
Update of /cvsroot/magicajax/magicajax/Docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv944/magicajax/Docs Modified Files: Tag: STABLE Changelog.html Log Message: update of changelog.html Index: Changelog.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Changelog.html,v retrieving revision 1.2.2.1 retrieving revision 1.2.2.2 diff -C2 -d -r1.2.2.1 -r1.2.2.2 *** Changelog.html 1 Dec 2005 01:16:25 -0000 1.2.2.1 --- Changelog.html 2 Dec 2005 19:00:16 -0000 1.2.2.2 *************** *** 58,70 **** <ul> <li> ! Fixed a bug in AjaxCallObject.js regarding ClockID; AjaxCallHelper.SetAjaxCallTimerInterval is working properly now <LI> Fixed the javascript errors the occured when the browser was not supported <li> ! An exception is thrown if MagicAjaxModule is not included in the HttpModules of web.config and the code tries to access MagicAjaxContext.Current <li> ! Added 'MagicAjaxContext' protected property in AjaxControl, AjaxPage and AjaxUserControl classes. </li> --- 58,74 ---- <ul> <li> ! All clientside validators inside AjaxPanels are disabled (for NoStore mode only); This solves clientside validation script errors. ! <li> ! Fix for the clientside WaitElement. Now works for IE5.5, IE6 and FireFox. ! <li> ! Fixed a bug in AjaxCallObject.js regarding ClockID; AjaxCallHelper.SetAjaxCallTimerInterval is working properly now <LI> Fixed the javascript errors the occured when the browser was not supported <li> ! An exception is thrown if MagicAjaxModule is not included in the HttpModules of web.config and the code tries to access MagicAjaxContext.Current <li> ! Added 'MagicAjaxContext' protected property in AjaxControl, AjaxPage and AjaxUserControl classes. </li> *************** *** 74,79 **** <ul> <li> ! Fixed a bug in AjaxCallObject.js; when the server reported an exception and ! 'tracing' was disabled, instead of rendering the error page a 'this.TraceWindow.document is null or not an object' javascript error occured <li> --- 78,83 ---- <ul> <li> ! Fixed a bug in AjaxCallObject.js; when the server reported an exception and ! 'tracing' was disabled, instead of rendering the error page a 'this.TraceWindow.document is null or not an object' javascript error occured <li> |
From: Dion O. <dol...@us...> - 2005-12-02 19:00:10
|
Update of /cvsroot/magicajax/magicajax/Docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv684/magicajax/Docs Modified Files: Changelog.html Log Message: update of changelog.html Index: Changelog.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Changelog.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Changelog.html 30 Nov 2005 12:22:29 -0000 1.2 --- Changelog.html 2 Dec 2005 18:59:59 -0000 1.3 *************** *** 58,67 **** <ul> <li> Fixed the javascript errors the occured when the browser was not supported <li> ! An exception is thrown if MagicAjaxModule is not included in the HttpModules of web.config and the code tries to access MagicAjaxContext.Current <li> ! Added 'MagicAjaxContext' protected property in AjaxControl, AjaxPage and AjaxUserControl classes. </li> --- 58,71 ---- <ul> <li> + All clientside validators inside AjaxPanels are disabled (for NoStore mode only); This solves clientside validation script errors. + <li> + Fix for the clientside WaitElement. Now works for IE5.5, IE6 and FireFox. + <li> Fixed the javascript errors the occured when the browser was not supported <li> ! An exception is thrown if MagicAjaxModule is not included in the HttpModules of web.config and the code tries to access MagicAjaxContext.Current <li> ! Added 'MagicAjaxContext' protected property in AjaxControl, AjaxPage and AjaxUserControl classes. </li> *************** *** 71,76 **** <ul> <li> ! Fixed a bug in AjaxCallObject.js; when the server reported an exception and ! 'tracing' was disabled, instead of rendering the error page a 'this.TraceWindow.document is null or not an object' javascript error occured <li> --- 75,80 ---- <ul> <li> ! Fixed a bug in AjaxCallObject.js; when the server reported an exception and ! 'tracing' was disabled, instead of rendering the error page a 'this.TraceWindow.document is null or not an object' javascript error occured <li> |
From: Dion O. <dol...@us...> - 2005-12-02 13:12:50
|
Update of /cvsroot/magicajax/magicajax/Core/UI/Controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13526/magicajax/Core/UI/Controls Modified Files: Tag: STABLE AjaxPanel.cs Log Message: Fix that sets the 'EnableClientScript' property of all validators inside a AjaxPanel to 'false' for NoStore mode. This solves the clientside validation script errors. + Fix for the clientside WaitElement. Now works for IE5.5, IE6 and FireFox. Index: AjaxPanel.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/Controls/AjaxPanel.cs,v retrieving revision 1.26 retrieving revision 1.26.2.1 diff -C2 -d -r1.26 -r1.26.2.1 *** AjaxPanel.cs 30 Nov 2005 12:22:29 -0000 1.26 --- AjaxPanel.cs 2 Dec 2005 13:12:41 -0000 1.26.2.1 *************** *** 242,245 **** --- 242,251 ---- Page.RegisterHiddenField (ControlCollectionState.GetControlFingerprintsField(this.ClientID), String.Empty); } + + if (IsPageNoStoreMode) + { + //disabling clientside validation inside AjaxPanels (not yet handled correctly) + DisableClientValidators(); + } } #endregion *************** *** 750,754 **** #endregion ! #region InitValidators /// <summary> /// Clears 'display' and 'visibility' styles from all the validators. --- 756,760 ---- #endregion ! #region Validators /// <summary> /// Clears 'display' and 'visibility' styles from all the validators. *************** *** 764,767 **** --- 770,782 ---- } + + private void DisableClientValidators() + { + ArrayList validators = Util.GetChildControlsOfType(this, typeof(BaseValidator), true); + foreach (BaseValidator validator in validators) + { + validator.EnableClientScript = false; + } + } #endregion |