Receiving JavaScript Error on ASP.net AJAX Partial Postback

Last post 04-03-2009, 3:02 PM by TML. 5 replies.
Sort Posts: Previous Next
  •  03-13-2009, 2:27 PM 49860

    Receiving JavaScript Error on ASP.net AJAX Partial Postback

    I've used the 'Ajax-Support.aspx' page as a guide to create my 'save' page successfully.
     
    But, now I need to populate the CuteEditor upon the selection from a DropDownList.  I have a form with a DropDownList, Textbox, CuteEditor and an update Button.  When the SelectedIndexChanged event fires, I get the values I expect but not without a JavaScript error.  The error from Firebug is:
     
    editor.GetScriptProperty is not a function
    http://localhost/Application/CuteSoft_Client/CuteEditor/Load.ashx?type=scripts&file=Gecko_Loader
    Line 5
     
    Here's my aspx:
     
            <table cellpadding="0" cellspacing="3" border="0">
                <tr>
                    <td class="label">Subject:</td>
                    <td>
                        <asp:DropDownList ID="DropDownListSubject" runat="server"
                            OnSelectedIndexChanged="DropDownListSubject_SelectedIndexChanged"
                            AutoPostBack="true">
                        </asp:DropDownList>
                        <br />
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <asp:TextBox ID="TextBoxSubject" runat="server"
                                    Width="500"
                                    MaxLength="100">
                                </asp:TextBox>
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="DropDownListSubject" />
                                <asp:AsyncPostBackTrigger ControlID="ButtonUpdate" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td class="label">Message:</td>
                    <td>
                        <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <CE:Editor id="EditorMessage" runat="server"
                                    TemplateItemList="Bold,Italic,Underline,PasteWord,Undo,Redo,InsertLink,Unlink"
                                    Width="620"
                                    ResizeMode="AutoAdjust">
                                </CE:Editor>
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="DropDownListSubject" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                    </td>
                    <td>
                        <asp:Button ID="ButtonUpdate" runat="server"
                            Text="Update"
                            OnClick="ButtonUpdate_Click" />
                    </td>
                </tr>
            </table>
     
    Would you please let me know how to implement this correctly and avoid this error?
     
    Thanks,
     
    TML
  •  03-13-2009, 3:26 PM 49870 in reply to 49860

    Re: Receiving JavaScript Error on ASP.net AJAX Partial Postback

    TML,
     
    We are investigating this issue.
     
    Can you create an example aspx page showing the problem and send it to [email protected]?

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-13-2009, 10:47 PM 49883 in reply to 49860

    Re: Receiving JavaScript Error on ASP.net AJAX Partial Postback

    Hi,
     
    That's should be a bug that dispose a previous editor and then a function from setTimeout be executed.
     
    We will fix this error soon.
     
    Regards,
    Terry
  •  03-16-2009, 2:35 PM 49950 in reply to 49860

    Re: Receiving JavaScript Error on ASP.net AJAX Partial Postback

    TML,
     
    Please download the latest build and try again.
     
    Keep me posted

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-02-2009, 5:59 AM 50687 in reply to 49950

    Re: Receiving JavaScript Error on ASP.net AJAX Partial Postback

    Hi Adam,
     
    I've downloaded version .NET 6.3 and tried it with the example I provided in my original post but unfortunately I still receive the same JavaScript error.
     
    Would you please review my code and let me know if my implementation is wrong?
     
    TML
  •  04-03-2009, 3:02 PM 50779 in reply to 49950

    Re: Receiving JavaScript Error on ASP.net AJAX Partial Postback

    Hi Adam,
     
    I've discovered the source of the JavaScript error -- 'ResizeMode="AutoAdjust".  That particular attribute doesn't seem to agree with ASP.net AJAX.  I'm using 'PlusMinus' for now until you and your team get an opportunity to resolve.
     
    TML
View as RSS news feed in XML