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))))); } } |