Receiving JavaScript Error on ASP.net AJAX Partial Postback

  •  03-13-2009, 2:27 PM

    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
View Complete Thread