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...> - 2006-10-03 02:26:35
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv28761/Core Modified Files: MagicAjaxModule.cs Log Message: When checking if it's .aspx page it was case sensitive and caused errors for '.Aspx' pages; fixed it Index: MagicAjaxModule.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/MagicAjaxModule.cs,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** MagicAjaxModule.cs 9 Feb 2006 13:40:59 -0000 1.63 --- MagicAjaxModule.cs 29 Sep 2006 09:00:01 -0000 1.64 *************** *** 400,404 **** HttpContext context = ((HttpApplication)sender).Context; ! if (context.Request.Url.AbsolutePath.EndsWith(".aspx")) { // Check if the request is for the embedded AjaxCallObject.js script --- 400,404 ---- HttpContext context = ((HttpApplication)sender).Context; ! if (context.Request.Url.AbsolutePath.ToLower().EndsWith(".aspx")) { // Check if the request is for the embedded AjaxCallObject.js script *************** *** 445,449 **** HttpApplication application = (HttpApplication)sender; ! if (_request == null || !_request.Url.AbsolutePath.EndsWith(".aspx")) { return; //if this wasn't a .aspx request, don't process --- 445,449 ---- HttpApplication application = (HttpApplication)sender; ! if (_request == null || !_request.Url.AbsolutePath.ToLower().EndsWith(".aspx")) { return; //if this wasn't a .aspx request, don't process |
From: Dion O. <dol...@us...> - 2006-02-13 09:43:37
|
Update of /cvsroot/magicajax/magicajax/Examples/ExampleSite (.NET 2.0 only)/examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10027/magicajax/Examples/ExampleSite (.NET 2.0 only)/examples Modified Files: WebParts.aspx Log Message: removed workaround for setting first session variable (MagicAjax 0.3 has fixed this problem) Index: WebParts.aspx =================================================================== RCS file: /cvsroot/magicajax/magicajax/Examples/ExampleSite (.NET 2.0 only)/examples/WebParts.aspx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** WebParts.aspx 9 Dec 2005 09:45:21 -0000 1.1 --- WebParts.aspx 13 Feb 2006 09:43:25 -0000 1.2 *************** *** 51,58 **** { if (!IsPostBack) ! { ! // Force setting of Session id (workaround for bug in MagicAjax) ! Session["dummy"] = "dummy"; ! // Authenticate user with dummy userName, so the WebPartManager will allow // switching to Editmode. --- 51,55 ---- { if (!IsPostBack) ! { // Authenticate user with dummy userName, so the WebPartManager will allow // switching to Editmode. |
From: Dion O. <dol...@us...> - 2006-02-13 09:36:02
|
Update of /cvsroot/magicajax/magicajax/Core/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7366/magicajax/Core/script Modified Files: AjaxCallObject.js Log Message: fix: After AJAXCbo,DoAjaxCall (inside AjaxCallObject.prototype.DoPostBack), window.event.returnValue is now always set to false. This fixes the prev/next image-buttons in the "GridView & DetailsView" example page. Index: AjaxCallObject.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** AjaxCallObject.js 9 Feb 2006 18:27:10 -0000 1.58 --- AjaxCallObject.js 13 Feb 2006 09:35:51 -0000 1.59 *************** *** 365,379 **** AJAXCbo.DoAjaxCall(eventTarget, eventArgument, cbType, AJAXCbo.GetAjaxScopeID(target)); ! if (target.tagName == "INPUT" && (target.type == "submit" || target.type == "image")) { ! if (window.event) ! { ! window.event.returnValue = false; ! } ! else if (__ClkEvent) ! { ! if (__ClkEvent.preventDefault) ! __ClkEvent.preventDefault(); ! } } } --- 365,377 ---- AJAXCbo.DoAjaxCall(eventTarget, eventArgument, cbType, AJAXCbo.GetAjaxScopeID(target)); ! //if (target.tagName == "INPUT" && (target.type == "submit" || target.type == "image")) ! if (window.event) { ! window.event.returnValue = false; ! } ! else if (__ClkEvent) ! { ! if (__ClkEvent.preventDefault) ! __ClkEvent.preventDefault(); } } |
From: Argiris K. <be...@us...> - 2006-02-10 01:42:20
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1641/Core Modified Files: Util.cs Log Message: If the immediate child controls of the page do not include the form, search the entire control tree. Index: Util.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/Util.cs,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** Util.cs 9 Feb 2006 13:40:59 -0000 1.29 --- Util.cs 10 Feb 2006 01:42:07 -0000 1.30 *************** *** 70,77 **** --- 70,106 ---- } } + + if ( id == null ) + { + // the immediate child controls of the page do not include the form, + // search the entire control tree + id = GetFormIDRecursive(page); + } #endif return id; } + private static string GetFormIDRecursive(Control parentControl) + { + string id = null; + + foreach(Control childControl in parentControl.Controls) + { + if (childControl is HtmlForm) + { + id = childControl.ClientID; + break; + } + else + { + if (childControl.HasControls()) + { + id = GetFormIDRecursive(childControl); + } + } + } + return id; + } + /// <summary> /// Add 'defer' attribute to script tags excluding external script files. |
From: Argiris K. <be...@us...> - 2006-02-10 00:29:01
|
Update of /cvsroot/magicajax/magicajax/Core/UI/Controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6112/Core/UI/Controls Modified Files: AjaxPanel.cs Log Message: Removed the ContentUpdated event. It can't work consistently (i.e. a TextBox will be updated with the ReflectUpdatedFormValues method, thus we can't be sure when to raise the event) Index: AjaxPanel.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/Controls/AjaxPanel.cs,v retrieving revision 1.61 retrieving revision 1.62 diff -C2 -d -r1.61 -r1.62 *** AjaxPanel.cs 9 Feb 2006 23:19:16 -0000 1.61 --- AjaxPanel.cs 10 Feb 2006 00:28:51 -0000 1.62 *************** *** 89,111 **** } - #region AjaxPanelUpdated event Handler & Args - public class AjaxPanelUpdatedEventArgs - { - private Control _updatedControl; - - public Control UpdatedControl - { - get { return _updatedControl; } - } - - public AjaxPanelUpdatedEventArgs(Control updatedControl) - { - this._updatedControl = updatedControl; - } - } - - public delegate void AjaxPanelUpdatedEventHandler(object sender, AjaxPanelUpdatedEventArgs e); - #endregion - /// <summary> /// Works like Panel but the controls it contains are rendered on the page by sending --- 89,92 ---- *************** *** 196,205 **** #endregion - #region Events - - public event AjaxPanelUpdatedEventHandler ContentUpdated; - - #endregion - #region Public Methods --- 177,180 ---- *************** *** 906,917 **** #endregion - #region OnContentUpdated - protected virtual void OnContentUpdated(AjaxPanelUpdatedEventArgs e) - { - if (ContentUpdated != null) - ContentUpdated(this, e); - } - #endregion - #endregion --- 881,884 ---- |
From: Argiris K. <be...@us...> - 2006-02-09 23:19:25
|
Update of /cvsroot/magicajax/magicajax/Core/UI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6101/Core/UI Modified Files: AjaxControl.cs AjaxPage.cs AjaxUserControl.cs Log Message: --SetAjaxIntrinsic method is called at OnInit as well Index: AjaxUserControl.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/AjaxUserControl.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** AjaxUserControl.cs 22 Dec 2005 01:15:20 -0000 1.10 --- AjaxUserControl.cs 9 Feb 2006 23:19:16 -0000 1.11 *************** *** 99,102 **** --- 99,108 ---- } + protected override void OnInit(EventArgs e) + { + SetAjaxIntrinsics(); + base.OnInit (e); + } + protected override void OnLoad(EventArgs e) { Index: AjaxPage.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/AjaxPage.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** AjaxPage.cs 22 Dec 2005 01:15:20 -0000 1.9 --- AjaxPage.cs 9 Feb 2006 23:19:16 -0000 1.10 *************** *** 99,102 **** --- 99,108 ---- } + protected override void OnInit(EventArgs e) + { + SetAjaxIntrinsics(); + base.OnInit (e); + } + protected override void OnLoad(EventArgs e) { Index: AjaxControl.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/AjaxControl.cs,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** AjaxControl.cs 3 Jan 2006 01:49:09 -0000 1.12 --- AjaxControl.cs 9 Feb 2006 23:19:16 -0000 1.13 *************** *** 111,114 **** --- 111,120 ---- } + protected override void OnInit(EventArgs e) + { + SetAjaxIntrinsics(); + base.OnInit (e); + } + protected override void OnLoad(EventArgs e) { |
From: Argiris K. <be...@us...> - 2006-02-09 23:19:24
|
Update of /cvsroot/magicajax/magicajax/Core/UI/Controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6101/Core/UI/Controls Modified Files: AjaxPanel.cs Log Message: --SetAjaxIntrinsic method is called at OnInit as well Index: AjaxPanel.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/Controls/AjaxPanel.cs,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -d -r1.60 -r1.61 *** AjaxPanel.cs 9 Feb 2006 13:41:00 -0000 1.60 --- AjaxPanel.cs 9 Feb 2006 23:19:16 -0000 1.61 *************** *** 321,331 **** if (IsHtmlHolder(control)) { ! if (IsPageNoStoreMode) ! { ! // If the ID of the added control is null, find a unique id manually, ! // or else the default naming order may cause mismatches. ! if (control.ID == null || control.ID == String.Empty) ! control.ID = FindUniqueID(); ! } _addedControls.Add(control); --- 321,328 ---- if (IsHtmlHolder(control)) { ! // If the ID of the added control is null, find a unique id manually, ! // or else the default naming order may cause mismatches. ! if (control.ID == null || control.ID == String.Empty) ! control.ID = FindUniqueID(); _addedControls.Add(control); |
From: Argiris K. <be...@us...> - 2006-02-09 18:27:18
|
Update of /cvsroot/magicajax/magicajax/Core/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9939/Core/script Modified Files: AjaxCallObject.js Log Message: When dopostback is called by an element other than submit button, don't cancel the event Index: AjaxCallObject.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** AjaxCallObject.js 9 Feb 2006 16:00:21 -0000 1.57 --- AjaxCallObject.js 9 Feb 2006 18:27:10 -0000 1.58 *************** *** 365,376 **** AJAXCbo.DoAjaxCall(eventTarget, eventArgument, cbType, AJAXCbo.GetAjaxScopeID(target)); ! if (window.event) ! { ! window.event.returnValue = false; ! } ! else if (__ClkEvent) { ! if (__ClkEvent.preventDefault) ! __ClkEvent.preventDefault(); } } --- 365,379 ---- AJAXCbo.DoAjaxCall(eventTarget, eventArgument, cbType, AJAXCbo.GetAjaxScopeID(target)); ! if (target.tagName == "INPUT" && (target.type == "submit" || target.type == "image")) { ! if (window.event) ! { ! window.event.returnValue = false; ! } ! else if (__ClkEvent) ! { ! if (__ClkEvent.preventDefault) ! __ClkEvent.preventDefault(); ! } } } |
From: Argiris K. <be...@us...> - 2006-02-09 16:00:30
|
Update of /cvsroot/magicajax/magicajax/Core/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6036/Core/script Modified Files: AjaxCallObject.js Log Message: Fix for when SetField or SetFieldIfEmpty function are called before HookAjaxCall Index: AjaxCallObject.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** AjaxCallObject.js 9 Feb 2006 13:41:00 -0000 1.56 --- AjaxCallObject.js 9 Feb 2006 16:00:21 -0000 1.57 *************** *** 848,852 **** AjaxCallObject.prototype.SetField = function(fieldName, fieldValue) { ! var field = __PageForm[fieldName]; if (field != null) field.value = fieldValue; --- 848,857 ---- AjaxCallObject.prototype.SetField = function(fieldName, fieldValue) { ! var field; ! if (__PageForm) ! field = __PageForm[fieldName]; ! else ! field = document.all[fieldName]; ! if (field != null) field.value = fieldValue; *************** *** 907,911 **** AjaxCallObject.prototype.SetFieldIfEmpty = function(fieldName, fieldValue) { ! var field = __PageForm[fieldName]; if (field != null && field.value == '') field.value = fieldValue; --- 912,921 ---- AjaxCallObject.prototype.SetFieldIfEmpty = function(fieldName, fieldValue) { ! var field; ! if (__PageForm) ! field = __PageForm[fieldName]; ! else ! field = document.all[fieldName]; ! if (field != null && field.value == '') field.value = fieldValue; |
From: Argiris K. <be...@us...> - 2006-02-09 15:24:12
|
Update of /cvsroot/magicajax/magicajax/Docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23979/Docs Modified Files: Usage.html Log Message: Added documentation for AjaxCallHelper.SetAjaxCallTimerInterval Index: Usage.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Usage.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Usage.html 8 Feb 2006 20:42:10 -0000 1.3 --- Usage.html 9 Feb 2006 15:23:59 -0000 1.4 *************** *** 61,64 **** --- 61,66 ---- <li> <A href="#ajaxcall">Handling an AjaxCall</A> + <li> + <A href="#timer">Setting an Ajax refresh timer</A> </li> </ul> *************** *** 109,113 **** AjaxCallHelper.WriteAlert ("Button1 was clicked."); }</pre> ! <P></P> <p class="MainHeader" align="left">Controls</p> <p class="NewsDate"><a name="ajaxpanel"></a>AjaxPanel</p> --- 111,133 ---- AjaxCallHelper.WriteAlert ("Button1 was clicked."); }</pre> ! <hr> ! <p class="NewsDate"><a name="timer"></a>Setting an Ajax refresh timer</p> ! <p class="MainContent">You can use the <STRONG>AjaxCallHelper.SetAjaxCallTimerInterval</STRONG> ! method to set a page wide timer that will invoke AjaxCalls at the intervals ! that you define. You can call it either at the initial page request or during ! an AjaxCall to initiate it or change the interval value. If you call it with an ! interval value of zero, the timer will deactivate. ! </p> ! <P class="MainContent">Example: ! <pre> private void Page_Load(object sender, System.EventArgs e) ! { ! if (!IsPostBack) ! { ! // Ajax refresh every 10 seconds ! MagicAjax.AjaxCallHelper.SetAjaxCallTimerInterval(10000); ! } ! } ! </pre> ! </P> <p class="MainHeader" align="left">Controls</p> <p class="NewsDate"><a name="ajaxpanel"></a>AjaxPanel</p> *************** *** 263,267 **** <p>Example: <pre> <asp:button excludeflags="excfFormElements | excfViewState" ...></pre> ! </p> </li> </ul> --- 283,287 ---- <p>Example: <pre> <asp:button excludeflags="excfFormElements | excfViewState" ...></pre> ! <P></P> </li> </ul> |
From: Argiris K. <be...@us...> - 2006-02-09 13:41:11
|
Update of /cvsroot/magicajax/magicajax/Docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13863/Docs Modified Files: Changelog.html Log Message: --If another form tag was added to page, MagicAjax did not work; fixed it --Corrected an encoding issue (solution provided by erivas) --Some controls with AutoPostBack set to 'true' were not working properly; fixed it --Set the version number to 0.3.0 Index: Changelog.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Changelog.html,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** Changelog.html 8 Feb 2006 20:42:10 -0000 1.25 --- Changelog.html 9 Feb 2006 13:41:00 -0000 1.26 *************** *** 55,65 **** <P class="header" align="center">Change Log</P> <P class="MainHeader" align="left"> ! v0.2.3 (8 February 2006) - Maintenance Release</P> <p>Changes since 0.2.2</p> <ul> ! <LI>Fixed reflecting scripts and css-styles that were added on a Ajax callback.<br> ! Note: if you want to run the current MagicAjax.NET development version under ASP.NET 2.0 medium trust (as most hosting-providers are forcing), you need to compile MagicAjax with the MEDIUM_TRUST flag on. Unfortunately, this will disable MagicAjax's feature to reflect script/css changes on callbacks for now (because we now use reflection for this to call private system variables). Also, only the default MagicAjax configuration-settings will be used (because medium trust doesn't allow reading of the web.config). We're working on a non-reflection version at the moment (using regular expressions to scan through the Html output), which will run under medium trust. ! <li>Fixed client-side ASP.NET validation</li> ! <LI> Image buttons now return the X/Y coordinates <LI> --- 55,82 ---- <P class="header" align="center">Change Log</P> <P class="MainHeader" align="left"> ! v0.3.0 (9 February 2006) - Major Release</P> <p>Changes since 0.2.2</p> <ul> ! <LI> ! If another form tag was added to page, MagicAjax did not work; fixed it ! <LI> ! Corrected an encoding issue ! <LI> ! Some controls with AutoPostBack set to 'true' were not working properly; fixed ! it ! <LI> ! Fixed reflecting scripts and css-styles that were added on a Ajax callback.<br> ! Note: if you want to run the current MagicAjax.NET development version under ! ASP.NET 2.0 medium trust (as most hosting-providers are forcing), you need to ! compile MagicAjax with the MEDIUM_TRUST flag on. Unfortunately, this will ! disable MagicAjax's feature to reflect script/css changes on callbacks for now ! (because we now use reflection for this to call private system variables). ! Also, only the default MagicAjax configuration-settings will be used (because ! medium trust doesn't allow reading of the web.config). We're working on a ! non-reflection version at the moment (using regular expressions to scan through ! the Html output), which will run under medium trust. ! <li> ! Fixed client-side ASP.NET validation ! <LI> Image buttons now return the X/Y coordinates <LI> |
From: Argiris K. <be...@us...> - 2006-02-09 13:41:11
|
Update of /cvsroot/magicajax/magicajax/Core/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13863/Core/script Modified Files: AjaxCallObject.js Log Message: --If another form tag was added to page, MagicAjax did not work; fixed it --Corrected an encoding issue (solution provided by erivas) --Some controls with AutoPostBack set to 'true' were not working properly; fixed it --Set the version number to 0.3.0 Index: AjaxCallObject.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -d -r1.55 -r1.56 *** AjaxCallObject.js 8 Feb 2006 20:49:43 -0000 1.55 --- AjaxCallObject.js 9 Feb 2006 13:41:00 -0000 1.56 *************** *** 1,3 **** --- 1,4 ---- __AJAXCboList = new Array(); + __PageForm = null; __bPageIsStored = false; __bUnloadStoredPage = false; *************** *** 217,227 **** } ! AjaxCallObject.prototype.HookAjaxCall = function(bPageIsStored, bUnloadStoredPage, bTracing) { __IsIE = navigator.appName.indexOf("Internet Explorer") != -1; __IsOpera = window.opera ? true : false; ! ! this.AddEventListener(document.forms[0], "submit", this.OnFormSubmit); ! this.AddEventListener(document.forms[0], "click", this.OnFormClick, true); if (typeof __doPostBack != 'undefined') --- 218,231 ---- } ! AjaxCallObject.prototype.HookAjaxCall = function(bPageIsStored, bUnloadStoredPage, bTracing, pageFormID) { __IsIE = navigator.appName.indexOf("Internet Explorer") != -1; __IsOpera = window.opera ? true : false; ! __PageForm = document.getElementById(pageFormID); ! ! if (__PageForm == null) return; ! ! this.AddEventListener(__PageForm, "submit", this.OnFormSubmit); ! this.AddEventListener(__PageForm, "click", this.OnFormClick, true); if (typeof __doPostBack != 'undefined') *************** *** 303,307 **** { __doingSubmit = true; ! AJAXCbo.DispatchEvent(document.forms[0], "submit"); __doingSubmit = false; --- 307,311 ---- { __doingSubmit = true; ! AJAXCbo.DispatchEvent(__PageForm, "submit"); __doingSubmit = false; *************** *** 344,349 **** if (typeof(WebForm_OnSubmit)=="function") { ! var theForm = document.forms[0]; ! if (theForm.onsubmit && (theForm.onsubmit() == false)) return; } --- 348,352 ---- if (typeof(WebForm_OnSubmit)=="function") { ! if (__PageForm.onsubmit && (__PageForm.onsubmit() == false)) return; } *************** *** 416,428 **** return; ! if (document.forms[0]["__AJAX_PAGEKEY"] == null) return; ! var thePage = document.forms[0].action; var index = thePage.indexOf("?"); if (index != -1) thePage = thePage.substring(0, index); ! thePage = thePage + "?__AJAX_PAGEUNLOAD=" + encodeURIComponent(document.forms[0]["__AJAX_PAGEKEY"].value); var oThis = AJAXCbo; --- 419,431 ---- return; ! if (__PageForm["__AJAX_PAGEKEY"] == null) return; ! var thePage = __PageForm.action; var index = thePage.indexOf("?"); if (index != -1) thePage = thePage.substring(0, index); ! thePage = thePage + "?__AJAX_PAGEUNLOAD=" + encodeURIComponent(__PageForm["__AJAX_PAGEKEY"].value); var oThis = AJAXCbo; *************** *** 449,453 **** var theData = ''; ! var theform = document.forms[0]; var thePage = theform.action; var eName = ''; --- 452,456 ---- var theData = ''; ! var theform = __PageForm; var thePage = theform.action; var eName = ''; *************** *** 821,825 **** scriptHolder.setAttribute(scriptAttributes[i], scriptAttributes[i+1]); ! document.forms[0].appendChild(scriptHolder); } --- 824,828 ---- scriptHolder.setAttribute(scriptAttributes[i], scriptAttributes[i+1]); ! __PageForm.appendChild(scriptHolder); } *************** *** 832,836 **** hiddenField.value = elementValue; ! document.forms[0].appendChild(hiddenField); } --- 835,839 ---- hiddenField.value = elementValue; ! __PageForm.appendChild(hiddenField); } *************** *** 845,849 **** AjaxCallObject.prototype.SetField = function(fieldName, fieldValue) { ! var field = document.forms[0][fieldName]; if (field != null) field.value = fieldValue; --- 848,852 ---- AjaxCallObject.prototype.SetField = function(fieldName, fieldValue) { ! var field = __PageForm[fieldName]; if (field != null) field.value = fieldValue; *************** *** 904,908 **** AjaxCallObject.prototype.SetFieldIfEmpty = function(fieldName, fieldValue) { ! var field = document.forms[0][fieldName]; if (field != null && field.value == '') field.value = fieldValue; --- 907,911 ---- AjaxCallObject.prototype.SetFieldIfEmpty = function(fieldName, fieldValue) { ! var field = __PageForm[fieldName]; if (field != null && field.value == '') field.value = fieldValue; |
From: Argiris K. <be...@us...> - 2006-02-09 13:41:11
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13863/Core Modified Files: AjaxCallHelper.cs AssemblyInfo.cs MagicAjaxModule.cs PageFilter.cs Util.cs Log Message: --If another form tag was added to page, MagicAjax did not work; fixed it --Corrected an encoding issue (solution provided by erivas) --Some controls with AutoPostBack set to 'true' were not working properly; fixed it --Set the version number to 0.3.0 Index: PageFilter.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/PageFilter.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** PageFilter.cs 11 Jan 2006 20:27:32 -0000 1.10 --- PageFilter.cs 9 Feb 2006 13:40:59 -0000 1.11 *************** *** 124,128 **** _memStream.Read(buffer, 0, (int)_memStream.Length); ! _htmlPage = HttpContext.Current.Response.ContentEncoding.GetString(buffer); } return _htmlPage; --- 124,128 ---- _memStream.Read(buffer, 0, (int)_memStream.Length); ! _htmlPage = System.Text.Encoding.GetEncoding(HttpContext.Current.Response.ContentEncoding.CodePage).GetString(buffer); } return _htmlPage; Index: AjaxCallHelper.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/AjaxCallHelper.cs,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** AjaxCallHelper.cs 8 Feb 2006 20:46:00 -0000 1.30 --- AjaxCallHelper.cs 9 Feb 2006 13:40:59 -0000 1.31 *************** *** 521,525 **** #if NET_2_0 // Reflect head content (title and stylesheets) ! page.Header.SetRenderMethodDelegate(new RenderMethod(RenderHead)); #endif --- 521,526 ---- #if NET_2_0 // Reflect head content (title and stylesheets) ! if (page.Header != null) ! page.Header.SetRenderMethodDelegate(new RenderMethod(RenderHead)); #endif Index: Util.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/Util.cs,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** Util.cs 6 Feb 2006 01:39:35 -0000 1.28 --- Util.cs 9 Feb 2006 13:40:59 -0000 1.29 *************** *** 24,27 **** --- 24,28 ---- using System.Web; using System.Web.UI; + using System.Web.UI.HtmlControls; using System.Security.Cryptography; using System.Text; *************** *** 36,40 **** { public const string ScriptPattern = "<script.[^>]*>"; ! public const string FormElementPattern = @"<(?<tag>input|textarea|select)\s+(?<attribute>(?<attrname>[-\w]+)=((""|')(?<attrvalue>.*?)(""|')\s*|(?<attrvalue>[-\w]+)\s*))*.*?(/>|>((?<inner>.*?)</\k'tag'>)?)"; public const string StyleElementPattern = @"<(?<tag>style|link)\s*(?<attribute>(?<attrname>[-\w]+)=((""|')(?<attrvalue>.*?)(""|')\s*|(?<attrvalue>[-\w]+)\s*))*.*?(/>|>(?<inner>.*?)</\k'tag'>)"; --- 37,41 ---- { public const string ScriptPattern = "<script.[^>]*>"; ! public const string FormElementPattern = @"<(?<tag>input|textarea|select)\s+(?<attribute>(?<attrname>[-\w]+)=(""(?<attrvalue>.*?)""\s*|'(?<attrvalue>.*?)'\s*|(?<attrvalue>[-\w]+)\s*))*.*?(/>|>((?<inner>.*?)</\k'tag'>)?)"; public const string StyleElementPattern = @"<(?<tag>style|link)\s*(?<attribute>(?<attrname>[-\w]+)=((""|')(?<attrvalue>.*?)(""|')\s*|(?<attrvalue>[-\w]+)\s*))*.*?(/>|>(?<inner>.*?)</\k'tag'>)"; *************** *** 50,53 **** --- 51,78 ---- /// <summary> + /// Gets the ClientID of the given Page's Form. + /// </summary> + /// <param name="page"></param> + /// <returns></returns> + public static string GetPageFormID(Page page) + { + string id = null; + #if NET_2_0 + if (page.Form != null) + id = page.Form.ClientID; + #else + foreach (Control con in page.Controls) + { + if (con is HtmlForm) + { + id = con.ClientID; + break; + } + } + #endif + return id; + } + + /// <summary> /// Add 'defer' attribute to script tags excluding external script files. /// </summary> *************** *** 154,159 **** string tag = match.Groups["tag"].Value.ToLower(System.Globalization.CultureInfo.InvariantCulture); string name = (string)attrNameValues["name"]; ! if ( name == null ) continue; --- 179,185 ---- string tag = match.Groups["tag"].Value.ToLower(System.Globalization.CultureInfo.InvariantCulture); string name = (string)attrNameValues["name"]; + string clientID = (string)attrNameValues["id"]; ! if (name == null || clientID == null) continue; Index: AssemblyInfo.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/AssemblyInfo.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** AssemblyInfo.cs 7 Feb 2006 10:54:08 -0000 1.10 --- AssemblyInfo.cs 9 Feb 2006 13:40:59 -0000 1.11 *************** *** 39,43 **** // by using the '*' as shown below: ! [assembly: AssemblyVersion("0.2.3.0")] // --- 39,43 ---- // by using the '*' as shown below: ! [assembly: AssemblyVersion("0.3.0.0")] // Index: MagicAjaxModule.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/MagicAjaxModule.cs,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** MagicAjaxModule.cs 24 Jan 2006 16:30:26 -0000 1.62 --- MagicAjaxModule.cs 9 Feb 2006 13:40:59 -0000 1.63 *************** *** 107,111 **** alert(""Unable to find script library '{0}/{1}'. Copy the file to the required location, or change the 'scriptPath' setting at magicAjax section of web.config.""); else ! AJAXCbo.HookAjaxCall({2},{3},{4}); </script>"; --- 107,111 ---- alert(""Unable to find script library '{0}/{1}'. Copy the file to the required location, or change the 'scriptPath' setting at magicAjax section of web.config.""); else ! AJAXCbo.HookAjaxCall({2},{3},{4},{5}); </script>"; *************** *** 160,164 **** bool unloadStoredPage = magicAjaxContext.Configuration.PageStore.UnloadStoredPage; ! page.RegisterStartupScript("AJAXCALL_HOOK", String.Format(STARTUP_SCRIPT_FORMAT, location, "AjaxCallObject.js", pageIsStored.ToString().ToLower(System.Globalization.CultureInfo.InvariantCulture), unloadStoredPage.ToString().ToLower(System.Globalization.CultureInfo.InvariantCulture), magicAjaxContext.Configuration.Tracing.ToString().ToLower(System.Globalization.CultureInfo.InvariantCulture))); } } --- 160,165 ---- bool unloadStoredPage = magicAjaxContext.Configuration.PageStore.UnloadStoredPage; ! string formID = Util.GetPageFormID(page); ! page.RegisterStartupScript("AJAXCALL_HOOK", String.Format(STARTUP_SCRIPT_FORMAT, location, "AjaxCallObject.js", pageIsStored.ToString().ToLower(System.Globalization.CultureInfo.InvariantCulture), unloadStoredPage.ToString().ToLower(System.Globalization.CultureInfo.InvariantCulture), magicAjaxContext.Configuration.Tracing.ToString().ToLower(System.Globalization.CultureInfo.InvariantCulture), AjaxCallHelper.EncodeString(formID))); } } |
From: Argiris K. <be...@us...> - 2006-02-09 13:41:11
|
Update of /cvsroot/magicajax/magicajax/Core/UI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13863/Core/UI Modified Files: RenderedByScriptControl.cs Log Message: --If another form tag was added to page, MagicAjax did not work; fixed it --Corrected an encoding issue (solution provided by erivas) --Some controls with AutoPostBack set to 'true' were not working properly; fixed it --Set the version number to 0.3.0 Index: RenderedByScriptControl.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/RenderedByScriptControl.cs,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** RenderedByScriptControl.cs 8 Feb 2006 08:29:14 -0000 1.25 --- RenderedByScriptControl.cs 9 Feb 2006 13:41:00 -0000 1.26 *************** *** 207,211 **** Page.RegisterHiddenField(hiddenStore, null); Page.RegisterArrayDeclaration("RBS_Controls", String.Format("document.getElementById(\"{0}$RBS_Holder\")", this.ClientID)); ! Page.RegisterArrayDeclaration("RBS_Controls_Store", String.Format("document.forms[0][\"{0}\"]", hiddenStore)); // Keep track of last Ajax control, so we can run some additional code after rendering the last Ajax control --- 207,211 ---- Page.RegisterHiddenField(hiddenStore, null); Page.RegisterArrayDeclaration("RBS_Controls", String.Format("document.getElementById(\"{0}$RBS_Holder\")", this.ClientID)); ! Page.RegisterArrayDeclaration("RBS_Controls_Store", String.Format("document.{0}[\"{1}\"]", Util.GetPageFormID(this.Page), hiddenStore)); // Keep track of last Ajax control, so we can run some additional code after rendering the last Ajax control *************** *** 306,310 **** // Fill hidden field __MAGICAJAX_SCRIPT_FINGERPRINTS using script ! writer.WriteLine("<script type=\"text/javascript\">AJAXCbo.SetField(\"__MAGICAJAX_SCRIPT_FINGERPRINTS\",{0});</script>", AjaxCallHelper.EncodeString(string.Join(";", (string[])AjaxCallHelper._currentScriptFPs.ToArray(typeof(string))))); } } --- 306,310 ---- // Fill hidden field __MAGICAJAX_SCRIPT_FINGERPRINTS using script ! writer.WriteLine("<script type=\"text/javascript\">document.{0}[\"__MAGICAJAX_SCRIPT_FINGERPRINTS\"].value={1};</script>", Util.GetPageFormID(this.Page), AjaxCallHelper.EncodeString(string.Join(";", (string[])AjaxCallHelper._currentScriptFPs.ToArray(typeof(string))))); } } |
From: Argiris K. <be...@us...> - 2006-02-09 13:41:10
|
Update of /cvsroot/magicajax/magicajax/Core/UI/Controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13863/Core/UI/Controls Modified Files: AjaxPanel.cs Log Message: --If another form tag was added to page, MagicAjax did not work; fixed it --Corrected an encoding issue (solution provided by erivas) --Some controls with AutoPostBack set to 'true' were not working properly; fixed it --Set the version number to 0.3.0 Index: AjaxPanel.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/Controls/AjaxPanel.cs,v retrieving revision 1.59 retrieving revision 1.60 diff -C2 -d -r1.59 -r1.60 *** AjaxPanel.cs 8 Feb 2006 20:48:43 -0000 1.59 --- AjaxPanel.cs 9 Feb 2006 13:41:00 -0000 1.60 *************** *** 535,539 **** string clientID = (string)attrNameValues["id"]; ! if (name == null) continue; --- 535,539 ---- string clientID = (string)attrNameValues["id"]; ! if (name == null || clientID == null) continue; *************** *** 557,570 **** case "checkbox": if (isChecked != (form[name] != null)) ! AjaxCallHelper.WriteFormat("document.forms[0][\"{0}\"].checked={1};\r\n", clientID, (isChecked) ? "true" : "false"); break; case "radio": if (isChecked && form[name] != value) { ! AjaxCallHelper.WriteFormat("document.forms[0][\"{0}\"].checked=true;\r\n", clientID); } else if (!isChecked && form[name] == value) { ! AjaxCallHelper.WriteFormat("document.forms[0][\"{0}\"].checked=false;\r\n", clientID); } break; --- 557,570 ---- case "checkbox": if (isChecked != (form[name] != null)) ! AjaxCallHelper.WriteFormat("__PageForm[\"{0}\"].checked={1};\r\n", clientID, (isChecked) ? "true" : "false"); break; case "radio": if (isChecked && form[name] != value) { ! AjaxCallHelper.WriteFormat("__PageForm[\"{0}\"].checked=true;\r\n", clientID); } else if (!isChecked && form[name] == value) { ! AjaxCallHelper.WriteFormat("__PageForm[\"{0}\"].checked=false;\r\n", clientID); } break; *************** *** 634,638 **** { if (oneSelection == null) ! AjaxCallHelper.WriteFormat("document.forms[0][\"{0}\"].selectedIndex=-1;\r\n", clientID); else AjaxCallHelper.WriteSetFieldScript(clientID, oneSelection); --- 634,638 ---- { if (oneSelection == null) ! AjaxCallHelper.WriteFormat("__PageForm[\"{0}\"].selectedIndex=-1;\r\n", clientID); else AjaxCallHelper.WriteSetFieldScript(clientID, oneSelection); *************** *** 653,657 **** if (!elemWritten) { ! AjaxCallHelper.WriteFormat("o=document.forms[0][\"{0}\"].options;\r\n", clientID); elemWritten = true; } --- 653,657 ---- if (!elemWritten) { ! AjaxCallHelper.WriteFormat("o=__PageForm[\"{0}\"].options;\r\n", clientID); elemWritten = true; } *************** *** 667,671 **** if (!elemWritten) { ! AjaxCallHelper.WriteFormat("o=document.forms[0][\"{0}\"];\r\n", clientID); elemWritten = true; } --- 667,671 ---- if (!elemWritten) { ! AjaxCallHelper.WriteFormat("o=__PageForm[\"{0}\"];\r\n", clientID); elemWritten = true; } |
From: Argiris K. <be...@us...> - 2006-02-08 20:49:51
|
Update of /cvsroot/magicajax/magicajax/Core/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8067/Core/script Modified Files: AjaxCallObject.js Log Message: Fix for .NET 1.1 client-side validation Index: AjaxCallObject.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** AjaxCallObject.js 8 Feb 2006 16:19:55 -0000 1.54 --- AjaxCallObject.js 8 Feb 2006 20:49:43 -0000 1.55 *************** *** 266,270 **** } ! if (typeof(WebForm_OnSubmit)=="function") { if (window.event && !__IsOpera) --- 266,270 ---- } ! if (typeof(Page_ClientValidate)=="function") { if (window.event && !__IsOpera) |
From: Argiris K. <be...@us...> - 2006-02-08 20:48:53
|
Update of /cvsroot/magicajax/magicajax/Core/UI/Controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7502/Core/UI/Controls Modified Files: AjaxPanel.cs Log Message: Removed the disabling of client validators. Index: AjaxPanel.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/Controls/AjaxPanel.cs,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** AjaxPanel.cs 8 Feb 2006 08:29:12 -0000 1.58 --- AjaxPanel.cs 8 Feb 2006 20:48:43 -0000 1.59 *************** *** 276,290 **** } - //disabling clientside validation inside AjaxPanels (not yet handled correctly for Page-store mode) - // Clientside validation throws errors when a validator becomes invisible - // during an AjaxCall (the validator is gone while the script checking for - // it remains). - // TODO: Find a way to avoid problems of scripts that invisible controls - // leave behind. - if (!this.MagicAjaxContext.IsPageNoStoreMode) - { - DisableClientValidators(); - } - #if !MEDIUM_TRUST // Attach to prerendercomplete event so we can do --- 276,279 ---- |
From: Argiris K. <be...@us...> - 2006-02-08 20:46:08
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6242/Core Modified Files: AjaxCallHelper.cs Log Message: Made the methods used for reflecting scripts,css etc. internal or private. Index: AjaxCallHelper.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/AjaxCallHelper.cs,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** AjaxCallHelper.cs 8 Feb 2006 08:29:12 -0000 1.29 --- AjaxCallHelper.cs 8 Feb 2006 20:46:00 -0000 1.30 *************** *** 481,485 **** /// <summary> List of previous fingerprints of all script blocks </summary> ! public static ArrayList _previousScriptFPs { get --- 481,485 ---- /// <summary> List of previous fingerprints of all script blocks </summary> ! internal static ArrayList _previousScriptFPs { get *************** *** 496,500 **** /// <summary> List of current fingerprints of all script blocks </summary> ! public static ArrayList _currentScriptFPs { get --- 496,500 ---- /// <summary> List of current fingerprints of all script blocks </summary> ! internal static ArrayList _currentScriptFPs { get *************** *** 515,519 **** /// <param name="sender"></param> /// <param name="e"></param> ! public static void Page_PreRender(object sender, EventArgs e) { Page page = (Page)sender; --- 515,519 ---- /// <param name="sender"></param> /// <param name="e"></param> ! internal static void Page_PreRender(object sender, EventArgs e) { Page page = (Page)sender; *************** *** 553,557 **** /// When reflectToClient is true, also reflects the changed tags inside head. ///</summary> ! public static void RenderHead(HtmlTextWriter writer, Control ctl) { if (ctl != null) --- 553,557 ---- /// When reflectToClient is true, also reflects the changed tags inside head. ///</summary> ! private static void RenderHead(HtmlTextWriter writer, Control ctl) { if (ctl != null) *************** *** 640,644 **** /// <param name="page"></param> /// <param name="reflectToClient"></param> ! public static void HandleHiddenFields(Page page) { IDictionary regFields = GetPageHiddenDictionary(page, "_registeredHiddenFields"); --- 640,644 ---- /// <param name="page"></param> /// <param name="reflectToClient"></param> ! private static void HandleHiddenFields(Page page) { IDictionary regFields = GetPageHiddenDictionary(page, "_registeredHiddenFields"); *************** *** 664,668 **** /// Handle registered ClientScriptBlocks to see if some where added/changed on callback/postback /// </summary> ! public static void HandleClientScriptBlocks(Page page, bool reflectToClient) { IDictionary regScripts = GetPageHiddenDictionary(page, "_registeredClientScriptBlocks"); --- 664,668 ---- /// Handle registered ClientScriptBlocks to see if some where added/changed on callback/postback /// </summary> ! private static void HandleClientScriptBlocks(Page page, bool reflectToClient) { IDictionary regScripts = GetPageHiddenDictionary(page, "_registeredClientScriptBlocks"); *************** *** 674,678 **** /// </summary> /// <param name="reflectToClient"></param> ! public static void HandleOnSubmitStatements(Page page, bool reflectToClient) { IDictionary regScripts = GetPageHiddenDictionary(page, "_registeredOnSubmitStatements"); --- 674,678 ---- /// </summary> /// <param name="reflectToClient"></param> ! private static void HandleOnSubmitStatements(Page page, bool reflectToClient) { IDictionary regScripts = GetPageHiddenDictionary(page, "_registeredOnSubmitStatements"); *************** *** 700,704 **** /// </summary> /// <param name="reflectToClient"></param> ! public static void HandleClientStartupScripts(Page page, bool reflectToClient) { IDictionary regScripts = GetPageHiddenDictionary(page, "_registeredClientStartupScripts"); --- 700,704 ---- /// </summary> /// <param name="reflectToClient"></param> ! internal static void HandleClientStartupScripts(Page page, bool reflectToClient) { IDictionary regScripts = GetPageHiddenDictionary(page, "_registeredClientStartupScripts"); *************** *** 710,714 **** /// </summary> /// <param name="reflectToClient"></param> ! public static void HandleArrayDeclares(Page page, bool reflectToClient) { IDictionary regArrays = GetPageHiddenDictionary(page, "_registeredArrayDeclares"); --- 710,714 ---- /// </summary> /// <param name="reflectToClient"></param> ! internal static void HandleArrayDeclares(Page page, bool reflectToClient) { IDictionary regArrays = GetPageHiddenDictionary(page, "_registeredArrayDeclares"); |
From: Argiris K. <be...@us...> - 2006-02-08 20:42:19
|
Update of /cvsroot/magicajax/magicajax/Docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4338/Docs Modified Files: Changelog.html Configuration.html Features.html Integration.html Limitations.html Readme.html Usage.html Log Message: Updated docs Index: Usage.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Usage.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Usage.html 27 Nov 2005 17:30:00 -0000 1.2 --- Usage.html 8 Feb 2006 20:42:10 -0000 1.3 *************** *** 69,76 **** <A href="#ajaxpanel">AjaxPanel</A> <LI> ! <A href="#AjaxHtml">AjaxHtmlAnchor and AjaxHtmlImage</A> <LI> <A href="#AjaxPage">AjaxPage and AjaxUserControl</A> <LI> <A href="#attributes">MagicAjax attributes for ASP.NET controls</A> </LI> --- 69,82 ---- <A href="#ajaxpanel">AjaxPanel</A> <LI> ! <A href="#AjaxZone">AjaxZone</A> ! <LI> ! <A href="#ClientEventTrigger">ClientEventTrigger</A> ! <LI> ! <A href="#KeyClientEventWrapper">KeyClientEventWrapper</A> <LI> <A href="#AjaxPage">AjaxPage and AjaxUserControl</A> <LI> + <A href="#AjaxHtml">AjaxHtmlAnchor and AjaxHtmlImage</A> + <LI> <A href="#attributes">MagicAjax attributes for ASP.NET controls</A> </LI> *************** *** 133,136 **** --- 139,150 ---- </ul> <P></P> + <P class="MainContent">Its <b>ExcludeFlags</b> property determines which form + elements should be excluded from posting to the server during an AjaxCall, thus + reducing the AjaxCall traffic. It sets the <A href="#attributes">ExcludeFlags</A> + MagicAjax ASP.NET control attribute. A child AjaxPanel automatically "inherits" + the ExcludeFlags of its parent AjaxPanel. The child can mark more form elements + to exclude through its ExcludeFlags property but it cannot send to the + server form elements that have been marked for exclusion by its parent + AjaxPanel.</P> <P class="MainContent">In order to reduce the amount of html needed to send to client, AjaxPanel defines individual 'html holders'. If the html *************** *** 157,168 **** <P class="MainContent"> <hr> <P></P> <P></P> ! <p class="NewsDate"><a name="AjaxHtml"></a>AjaxHtmlAnchor and AjaxHtmlImage</p> ! <p class="MainContent">These controls are intented to be used only for the <A href="Configuration.html#Mode"> ! Session/Cache PageStore modes</A>. When these modes are selected, ASP.NET's ! HtmlAnchor and HtmlImage loose their <i>href</i> and <i>src</i> attributes ! during an AjaxCall. AjaxHtmlAnchor and AjaxHtmlImage can be used in their ! place. <hr> <P></P> --- 171,205 ---- <P class="MainContent"> <hr> + <p class="NewsDate"><a name="AjaxZone"></a>AjaxZone</p> + <P>It's an AjaxPanel that has the MagicAjax attribute <a href="#attributes">AjaxLocalScope</a> + set to true. It is provided for convenience and readability. When an AjaxCall + is invoked from a control inside an AjaxZone, only the values of the form + elements that are contained inside this AjaxZone will be sent to the server and + the server will check for changes and "reflect" only the AjaxPanels that are + inside the AjaxZone. This helps reduce the Ajax traffic and speed up a bit + the server's response. It's intented for isolated and independent portions + of a page, like UserControls. + </P> + <P>An AjaxZone can contain other AjaxZones. A control belongs to the AjaxZone that + is its immediate parent. + <hr> <P></P> <P></P> ! <p class="NewsDate"><a name="ClientEventTrigger"></a>ClientEventTrigger</p> ! <p class="MainContent">Captures a client event of a control. The EventName property ! must be set to the client event (i.e. "focus", "change", etc.) and the ! ControlID property must be set to the ID of the control whose event you ! want to capture. The AjaxCall that will be invoked is dependent at the ! ClientEventTrigger's placement, not the placement of ControlID's control. For ! example, if the ClientEventTrigger is inside an AjaxPanel an AjaxCall will ! be invoked even if the ControlID's control is not inside an AjaxPanel. The ! ClientEventTrigger must be inside the same NamingContainer (i.e. UserControl) ! as the ControlID's control. ! <hr> ! <P></P> ! <p class="NewsDate"><a name="KeyClientEventWrapper"></a>KeyClientEventWrapper</p> ! <p class="MainContent">Captures the KeyPress, KeyDown, and KeyUp client events of ! its inner controls. The KeyPress event has the IE behaviour across all browsers ! (invoked when a character is typed or Enter is pressed). <hr> <P></P> *************** *** 175,178 **** --- 212,223 ---- <hr> <P></P> + <p class="NewsDate"><a name="AjaxHtml"></a>AjaxHtmlAnchor and AjaxHtmlImage</p> + <p class="MainContent">These controls are intented to be used only for the <A href="Configuration.html#Mode"> + Session/Cache PageStore modes</A>. When these modes are selected, ASP.NET's + HtmlAnchor and HtmlImage loose their <i>href</i> and <i>src</i> attributes + during an AjaxCall. AjaxHtmlAnchor and AjaxHtmlImage can be used in their + place. + <hr> + <P></P> <p class="NewsDate"><a name="attributes"></a>MagicAjax attributes for ASP.NET controls</p> *************** *** 204,212 **** used to display chat messages, sending its contents for every AjaxCall is unnecessary traffic; you can avoid it by using the <i>ExcludeFromPost</i> attribute.</p> </li> </ul> <P></P> ! <p>All the attributes can be added using the visual designer or by code. Their ! values, and consequently their function, can be changed during an AjaxCall. </p> <p>Example: --- 249,273 ---- used to display chat messages, sending its contents for every AjaxCall is unnecessary traffic; you can avoid it by using the <i>ExcludeFromPost</i> attribute.</p> + <li> + <b>AjaxLocalScope</b> ("true" or "false") + <p>Makes the control behave like an <A href="#AjaxZone">AjaxZone</A>.</p> + <li> + <b>ExcludeFlags</b> (expression) + <p>Determines which form elements will be excluded from posting to server during an + AjaxCall. These form elements will be excluded when an AjaxCall is invoked from + the control or one of its children. It should be set to an arithmetic + expression that has an integer as a result. The javascript constants <STRONG>excfViewState</STRONG>, + <STRONG>excfFingerprints</STRONG>, <STRONG>excfUserHidden</STRONG>, <STRONG>excfAllHidden</STRONG>, + <STRONG>excfFormElements</STRONG>, <STRONG>excfAllElements </STRONG>can be used + for convenience.</p> + <p>Example: + <pre> <asp:button excludeflags="excfFormElements | excfViewState" ...></pre> + </p> </li> </ul> <P></P> ! <p>All the attributes can be added inside the control's tag statement or by ! code. Their values, and consequently their function, can be changed during an ! AjaxCall. </p> <p>Example: *************** *** 215,219 **** <P></P> <P class="MainHeader" align="left"> </P> ! <P>Copyright © 2005 by The MagicAjax.NET Team</P> </body> </html> --- 276,280 ---- <P></P> <P class="MainHeader" align="left"> </P> ! <P>Copyright © 2005-2006 by The MagicAjax.NET Team</P> </body> </html> Index: Configuration.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Configuration.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Configuration.html 14 Dec 2005 00:18:51 -0000 1.4 --- Configuration.html 8 Feb 2006 20:42:10 -0000 1.5 *************** *** 302,306 **** <P></P> <P class="MainHeader" align="left"> </P> ! <P>Copyright © 2005 by The MagicAjax.NET Team</P> </body> </html> --- 302,306 ---- <P></P> <P class="MainHeader" align="left"> </P> ! <P>Copyright © 2005-2006 by The MagicAjax.NET Team</P> </body> </html> Index: Changelog.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Changelog.html,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** Changelog.html 7 Feb 2006 11:11:12 -0000 1.24 --- Changelog.html 8 Feb 2006 20:42:10 -0000 1.25 *************** *** 54,63 **** <p class="header" align="center">MagicAjax.NET Framework</p> <P class="header" align="center">Change Log</P> ! <P class="MainHeader" align="left"> </P> <p>Changes since 0.2.2</p> <ul> <LI>Fixed reflecting scripts and css-styles that were added on a Ajax callback.<br> Note: if you want to run the current MagicAjax.NET development version under ASP.NET 2.0 medium trust (as most hosting-providers are forcing), you need to compile MagicAjax with the MEDIUM_TRUST flag on. Unfortunately, this will disable MagicAjax's feature to reflect script/css changes on callbacks for now (because we now use reflection for this to call private system variables). Also, only the default MagicAjax configuration-settings will be used (because medium trust doesn't allow reading of the web.config). We're working on a non-reflection version at the moment (using regular expressions to scan through the Html output), which will run under medium trust. ! <LI> Image buttons now return the X/Y coordinates <LI> --- 54,65 ---- <p class="header" align="center">MagicAjax.NET Framework</p> <P class="header" align="center">Change Log</P> ! <P class="MainHeader" align="left"> ! v0.2.3 (8 February 2006) - Maintenance Release</P> <p>Changes since 0.2.2</p> <ul> <LI>Fixed reflecting scripts and css-styles that were added on a Ajax callback.<br> Note: if you want to run the current MagicAjax.NET development version under ASP.NET 2.0 medium trust (as most hosting-providers are forcing), you need to compile MagicAjax with the MEDIUM_TRUST flag on. Unfortunately, this will disable MagicAjax's feature to reflect script/css changes on callbacks for now (because we now use reflection for this to call private system variables). Also, only the default MagicAjax configuration-settings will be used (because medium trust doesn't allow reading of the web.config). We're working on a non-reflection version at the moment (using regular expressions to scan through the Html output), which will run under medium trust. ! <li>Fixed client-side ASP.NET validation</li> ! <LI> Image buttons now return the X/Y coordinates <LI> *************** *** 86,90 **** PreWriteScript at PreRender, and AjaxCallEnd at Unload, during an Ajax callback <LI> ! Huge performance improvement <LI> There were conflicts with the cookies handling by ASP.NET 2.0 and other --- 88,92 ---- PreWriteScript at PreRender, and AjaxCallEnd at Unload, during an Ajax callback <LI> ! Huge server-side performance improvement <LI> There were conflicts with the cookies handling by ASP.NET 2.0 and other *************** *** 163,167 **** </ul> <P class="MainHeader" align="left"> </P> ! <P>Copyright © 2005 by The MagicAjax.NET Team</P> </body> </html> --- 165,169 ---- </ul> <P class="MainHeader" align="left"> </P> ! <P>Copyright © 2005-2006 by The MagicAjax.NET Team</P> </body> </html> Index: Limitations.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Limitations.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Limitations.html 12 Dec 2005 05:55:29 -0000 1.3 --- Limitations.html 8 Feb 2006 20:42:10 -0000 1.4 *************** *** 60,69 **** <UL> <LI> - Only IE and Firefox browsers are supported. MagicAjax will be disabled for - other browsers and the page will work with plain PostBacks - <LI> - Clientside validation is not handled properly; It is disabled - for validators inside an AjaxPanel - <li> For the <a href="Configuration.html#mode">NoStore PageStore mode</a>, if the tag attributes (CssClass, BackColor, etc.) of an AjaxPanel change during an --- 60,63 ---- *************** *** 84,88 **** <P></P> <P class="MainHeader" align="left"> </P> ! <P>Copyright © 2005 by The MagicAjax.NET Team</P> </body> </html> --- 78,82 ---- <P></P> <P class="MainHeader" align="left"> </P> ! <P>Copyright © 2005-2006 by The MagicAjax.NET Team</P> </body> </html> Index: Readme.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Readme.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Readme.html 9 Dec 2005 21:14:54 -0000 1.5 --- Readme.html 8 Feb 2006 20:42:10 -0000 1.6 *************** *** 78,88 **** <p class="MainHeader" align="left">Keeping Up To Date</p> <p align="left">The best place to keep up to date with developments on MagicAjax is ! the <a href="http://www.magicajax.net">Official Web Site</a>. From there you can ! download the latest source code. You can choose between keeping bang up to date ! with CVS (Concurrent Versioning System) or by just getting the regularly released snapshots.</p> <p class="MainHeader" align="left">Getting Support</p> <p align="left">Please use our extensive forums if you need help or think you may ! have found a bug. Go to the <A href="http://www.magicajax.net">main web site</A> and click on the Forums link.</p> <p class="MainHeader" align="left">Licensing</p> --- 78,88 ---- <p class="MainHeader" align="left">Keeping Up To Date</p> <p align="left">The best place to keep up to date with developments on MagicAjax is ! the <a href="http://www.magicajax.net">Official Web Site</a>. From there you ! can download the latest source code. You can choose between keeping bang up to ! date with CVS (Concurrent Versioning System) or by just getting the regularly released snapshots.</p> <p class="MainHeader" align="left">Getting Support</p> <p align="left">Please use our extensive forums if you need help or think you may ! have found a bug. Go to the <A href="http://www.magicajax.net">main web site</A> and click on the Forums link.</p> <p class="MainHeader" align="left">Licensing</p> *************** *** 103,107 **** http://www.gnu.org/copyleft/lesser.txt</a>.</p> <P class="MainHeader" align="left"> </P> ! <P>Copyright © 2005 by The MagicAjax.NET Team</P> </body> </html> --- 103,107 ---- http://www.gnu.org/copyleft/lesser.txt</a>.</p> <P class="MainHeader" align="left"> </P> ! <P>Copyright © 2005-2006 by The MagicAjax.NET Team</P> </body> </html> Index: Integration.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Integration.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Integration.html 27 Nov 2005 17:30:00 -0000 1.3 --- Integration.html 8 Feb 2006 20:42:10 -0000 1.4 *************** *** 87,91 **** </p> <P class="MainHeader" align="left"> </P> ! <P>Copyright © 2005 by The MagicAjax.NET Team</P> </body> </html> --- 87,91 ---- </p> <P class="MainHeader" align="left"> </P> ! <P>Copyright © 2005-2006 by The MagicAjax.NET Team</P> </body> </html> Index: Features.html =================================================================== RCS file: /cvsroot/magicajax/magicajax/Docs/Features.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Features.html 27 Nov 2005 17:30:00 -0000 1.3 --- Features.html 8 Feb 2006 20:42:10 -0000 1.4 *************** *** 145,152 **** <p class="NewsDate">Compatibility</p> <UL> ! <LI> ! Currently only IE and Firefox browsers are supported but other browsers will ! get supported in the future ! <li> If a browser is not supported or the user has disabled javascript, the page will revert to plain PostBacks automatically --- 145,149 ---- <p class="NewsDate">Compatibility</p> <UL> ! <LI>Internet Explorer, Firefox, Netscape and Opera browsers are supported<li> If a browser is not supported or the user has disabled javascript, the page will revert to plain PostBacks automatically *************** *** 154,158 **** </UL> <P class="MainHeader" align="left"> </P> ! <P>Copyright © 2005 by The MagicAjax.NET Team</P> </body> </html> --- 151,155 ---- </UL> <P class="MainHeader" align="left"> </P> ! <P>Copyright © 2005-2006 by The MagicAjax.NET Team</P> </body> </html> |
From: Argiris K. <be...@us...> - 2006-02-08 20:42:18
|
Update of /cvsroot/magicajax/magicajax/Core/UI/Controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4338/Core/UI/Controls Modified Files: AjaxZone.cs Log Message: Updated docs Index: AjaxZone.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/Controls/AjaxZone.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** AjaxZone.cs 3 Jan 2006 01:49:09 -0000 1.4 --- AjaxZone.cs 8 Feb 2006 20:42:10 -0000 1.5 *************** *** 10,15 **** /// <remarks> /// It's an AjaxPanel that has the MagicAjax attribute "AjaxLocalScope" set to true. ! /// It is provided for convenience and readability. Please read the documentation ! /// about "AjaxLocalScope" to find out what is the effect of this attribute. /// </remarks> [Designer("MagicAjax.UI.Design.AjaxPanelDesigner, MagicAjax"), --- 10,24 ---- /// <remarks> /// It's an AjaxPanel that has the MagicAjax attribute "AjaxLocalScope" set to true. ! /// It is provided for convenience and readability. ! /// ! /// When an AjaxCall is invoked from a control inside an AjaxZone, only the values of the ! /// form elements that are contained inside this AjaxZone will be sent to the server ! /// and the server will check for changes and "reflect" only the AjaxPanels that are ! /// inside the AjaxZone. This helps reduce the Ajax traffic and speed up a bit the ! /// server response. It's intented for isolated and independent portions of a page ! /// like UserControls. ! /// ! /// An AjaxZone can contain other AjaxZones. A control belongs to the AjaxZone that is ! /// its immediate parent. /// </remarks> [Designer("MagicAjax.UI.Design.AjaxPanelDesigner, MagicAjax"), |
From: Argiris K. <be...@us...> - 2006-02-08 20:42:17
|
Update of /cvsroot/magicajax/magicajax In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4338 Modified Files: Authors.txt Log Message: Updated docs Index: Authors.txt =================================================================== RCS file: /cvsroot/magicajax/magicajax/Authors.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Authors.txt 18 Nov 2005 18:53:58 -0000 1.1 --- Authors.txt 8 Feb 2006 20:42:10 -0000 1.2 *************** *** 9,13 **** ----- ! Copyright 2005 The MagicAjax.NET Team. This file is part of the MagicAjax.NET framework. --- 9,13 ---- ----- ! Copyright 2005-2006 The MagicAjax.NET Team. This file is part of the MagicAjax.NET framework. |
From: Argiris K. <be...@us...> - 2006-02-08 16:20:54
|
Update of /cvsroot/magicajax/magicajax/Core/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11668/Core/script Modified Files: AjaxCallObject.js Log Message: Fixed client validation for doPostBack (LinkButton etc.) and various other fixes. Index: AjaxCallObject.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** AjaxCallObject.js 6 Feb 2006 01:39:35 -0000 1.53 --- AjaxCallObject.js 8 Feb 2006 16:19:55 -0000 1.54 *************** *** 8,13 **** __ClockID = 0; __IsOpera = false; ! __Netscape8AndUp = false; ! __ClickX = __ClickY = 0; // Excluding from post flags --- 8,13 ---- __ClockID = 0; __IsOpera = false; ! __IsIE = false; ! __ClkEvent = null; // Excluding from post flags *************** *** 196,203 **** } ! AjaxCallObject.prototype.AddEventListener = function(obj, eventName, fn) { if (obj.addEventListener) ! obj.addEventListener(eventName, fn, false); else obj.attachEvent("on"+eventName, fn); --- 196,204 ---- } ! AjaxCallObject.prototype.AddEventListener = function(obj, eventName, fn, capture) { + if (typeof(capture)=="undefined") capture=false; if (obj.addEventListener) ! obj.addEventListener(eventName, fn, capture); else obj.attachEvent("on"+eventName, fn); *************** *** 218,226 **** AjaxCallObject.prototype.HookAjaxCall = function(bPageIsStored, bUnloadStoredPage, bTracing) { ! __Netscape8AndUp = navigator.appName == "Netscape" && navigator.vendor == "Netscape" && parseInt(navigator.appVersion) >= 5; __IsOpera = window.opera ? true : false; this.AddEventListener(document.forms[0], "submit", this.OnFormSubmit); ! this.AddEventListener(document.forms[0], "click", this.OnFormClick); if (typeof __doPostBack != 'undefined') --- 219,227 ---- AjaxCallObject.prototype.HookAjaxCall = function(bPageIsStored, bUnloadStoredPage, bTracing) { ! __IsIE = navigator.appName.indexOf("Internet Explorer") != -1; __IsOpera = window.opera ? true : false; this.AddEventListener(document.forms[0], "submit", this.OnFormSubmit); ! this.AddEventListener(document.forms[0], "click", this.OnFormClick, true); if (typeof __doPostBack != 'undefined') *************** *** 251,256 **** AjaxCallObject.prototype.OnFormClick = function(e) { ! __ClickX = e.pageX; ! __ClickY = e.pageY; } --- 252,256 ---- AjaxCallObject.prototype.OnFormClick = function(e) { ! __ClkEvent = e; } *************** *** 259,278 **** if (__doingSubmit) { if (e.preventDefault) e.preventDefault(); 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 if (typeof(RBS_Controls) != "undefined") --- 259,280 ---- if (__doingSubmit) { + __doingSubmit = false; if (e.preventDefault) e.preventDefault(); + e.returnValue=false; return false; } ! if (typeof(WebForm_OnSubmit)=="function") { ! if (window.event && !__IsOpera) ! { ! if (window.event.returnValue == false) ! return; ! } ! else if (e.getPreventDefault && e.getPreventDefault() == true) ! return; } ! // Empty the cached html of RenderedByScript controls if (typeof(RBS_Controls) != "undefined") *************** *** 291,297 **** { // Firefox ! target = arguments[0] ? arguments[0].explicitOriginalTarget : null; } var cbType = AJAXCbo.GetAjaxCallType(target); if (cbType != "none") --- 293,302 ---- { // Firefox ! target = e ? e.explicitOriginalTarget : null; } + if (target == null || target.name == null || target.name == "") + return true; + var cbType = AJAXCbo.GetAjaxCallType(target); if (cbType != "none") *************** *** 303,307 **** var theData = ""; //check if target is an input element of type 'image' ! if (target != null && target.type == "image" && target.name && target.name != '') { if (e.offsetX) --- 308,312 ---- var theData = ""; //check if target is an input element of type 'image' ! if (target != null && target.type == "image") { if (e.offsetX) *************** *** 313,317 **** { // Firefox ! theData = target.name + ".x=" + (__ClickX - target.offsetLeft) + "&" + target.name + ".y=" + (__ClickY - target.offsetTop); } } --- 318,322 ---- { // Firefox ! theData = target.name + ".x=" + (__ClkEvent.pageX - target.offsetLeft) + "&" + target.name + ".y=" + (__ClkEvent.pageY - target.offsetTop); } } *************** *** 321,324 **** --- 326,330 ---- if (e.preventDefault) e.preventDefault(); + e.returnValue = false; return false; } *************** *** 336,339 **** --- 342,352 ---- AjaxCallObject.prototype.DoPostBack = function(eventTarget, eventArgument) { + if (typeof(WebForm_OnSubmit)=="function") + { + var theForm = document.forms[0]; + if (theForm.onsubmit && (theForm.onsubmit() == false)) + return; + } + // Empty the cached html of RenderedByScript controls if (typeof(RBS_Controls) != "undefined") *************** *** 347,355 **** if (cbType != "none") { - __doingSubmit = true; - AJAXCbo.DispatchEvent(document.forms[0], "submit"); - __doingSubmit = false; - AJAXCbo.DoAjaxCall(eventTarget, eventArgument, cbType, AJAXCbo.GetAjaxScopeID(target)); } else --- 360,374 ---- if (cbType != "none") { AJAXCbo.DoAjaxCall(eventTarget, eventArgument, cbType, AJAXCbo.GetAjaxScopeID(target)); + + if (window.event) + { + window.event.returnValue = false; + } + else if (__ClkEvent) + { + if (__ClkEvent.preventDefault) + __ClkEvent.preventDefault(); + } } else *************** *** 570,573 **** --- 589,606 ---- eval(responseText); + + // Remove validators whose controltovalidate have been removed + if (typeof(Page_Validators)!="undefined") + { + for (i=0; i<Page_Validators.length; i++) + { + if (Page_Validators[i] && Page_Validators[i].controltovalidate + && document.getElementById(Page_Validators[i].controltovalidate)==null) + { + Page_Validators.splice(i,1); + i--; + } + } + } return true; *************** *** 935,946 **** } ! if (__Netscape8AndUp) { ! //Netscape 8 has a problem using replaceChild when replaced child contains a table place.parentNode.insertBefore(store, place); place.parentNode.removeChild(place); } - else - place.parentNode.replaceChild(store, place); place = null; //cleanup --- 968,979 ---- } ! if (__IsIE) ! place.parentNode.replaceChild(store, place); ! else { ! //Netscape/Firefox has a problem using replaceChild when replaced child contains a table place.parentNode.insertBefore(store, place); place.parentNode.removeChild(place); } place = null; //cleanup |
From: Dion O. <dol...@us...> - 2006-02-08 08:29:22
|
Update of /cvsroot/magicajax/magicajax/Core/UI/Controls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1463/magicajax/Core/UI/Controls Modified Files: AjaxPanel.cs Log Message: Changes for MEDIUM_TRUST compile tag Index: AjaxPanel.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/Controls/AjaxPanel.cs,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** AjaxPanel.cs 6 Feb 2006 13:20:47 -0000 1.57 --- AjaxPanel.cs 8 Feb 2006 08:29:12 -0000 1.58 *************** *** 287,290 **** --- 287,291 ---- } + #if !MEDIUM_TRUST // Attach to prerendercomplete event so we can do // some extra processing before rendering of the AjaxPanels. *************** *** 296,305 **** { Context.Items.Add("__ATTACHED_PAGE_HANDLERS", String.Empty); ! #if NET_2_0 this.Page.PreRenderComplete += new EventHandler(AjaxCallHelper.Page_PreRender); ! #else this.Page.PreRender += new EventHandler(AjaxCallHelper.Page_PreRender); ! #endif } } #endregion --- 297,307 ---- { Context.Items.Add("__ATTACHED_PAGE_HANDLERS", String.Empty); ! #if NET_2_0 this.Page.PreRenderComplete += new EventHandler(AjaxCallHelper.Page_PreRender); ! #else this.Page.PreRender += new EventHandler(AjaxCallHelper.Page_PreRender); ! #endif } + #endif } #endregion |
From: Dion O. <dol...@us...> - 2006-02-08 08:29:22
|
Update of /cvsroot/magicajax/magicajax/Core/UI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1463/magicajax/Core/UI Modified Files: RenderedByScriptControl.cs Log Message: Changes for MEDIUM_TRUST compile tag Index: RenderedByScriptControl.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/UI/RenderedByScriptControl.cs,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** RenderedByScriptControl.cs 6 Feb 2006 14:41:33 -0000 1.24 --- RenderedByScriptControl.cs 8 Feb 2006 08:29:14 -0000 1.25 *************** *** 274,277 **** --- 274,278 ---- } + #if !MEDIUM_TRUST if (this.MagicAjaxContext.IsBrowserSupported && !IsChildOfRenderedByScriptControl(this)) { *************** *** 309,312 **** --- 310,314 ---- } } + #endif OnRenderEnd(EventArgs.Empty); |
From: Dion O. <dol...@us...> - 2006-02-08 08:29:20
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1463/magicajax/Core Modified Files: AjaxCallHelper.cs MagicAjax NET 2.0.csproj Log Message: Changes for MEDIUM_TRUST compile tag Index: MagicAjax NET 2.0.csproj =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/MagicAjax NET 2.0.csproj,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** MagicAjax NET 2.0.csproj 7 Feb 2006 10:54:09 -0000 1.16 --- MagicAjax NET 2.0.csproj 8 Feb 2006 08:29:12 -0000 1.17 *************** *** 35,39 **** <ConfigurationOverrideFile> </ConfigurationOverrideFile> ! <DefineConstants>TRACE;DEBUG;NET_2_0; !MEDIUM_TRUST</DefineConstants> <DocumentationFile> </DocumentationFile> --- 35,39 ---- <ConfigurationOverrideFile> </ConfigurationOverrideFile> ! <DefineConstants>TRACE;DEBUG;NET_2_0</DefineConstants> <DocumentationFile> </DocumentationFile> Index: AjaxCallHelper.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/AjaxCallHelper.cs,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** AjaxCallHelper.cs 7 Feb 2006 10:54:08 -0000 1.28 --- AjaxCallHelper.cs 8 Feb 2006 08:29:12 -0000 1.29 *************** *** 832,842 **** private static IDictionary GetPageHiddenDictionary(Page page, string fieldName) { ! #if NET_2_0 && !MEDIUM_TRUST return (IDictionary)(Util.GetPrivateField(page.ClientScript, typeof(ClientScriptManager), fieldName)); ! #endif ! #if NET_2_0 && MEDIUM_TRUST ! return null; ! #endif ! #if !NET_2_0 return (IDictionary)(Util.GetPrivateField(page, typeof(Page), fieldName)); #endif --- 832,838 ---- private static IDictionary GetPageHiddenDictionary(Page page, string fieldName) { ! #if NET_2_0 return (IDictionary)(Util.GetPrivateField(page.ClientScript, typeof(ClientScriptManager), fieldName)); ! #else return (IDictionary)(Util.GetPrivateField(page, typeof(Page), fieldName)); #endif |