Support forums
in

Javascript error on Spellcheck button

Last post 04-06-2009, 5:11 AM by info@centrel-solutions.com. 7 replies.
Sort Posts: Previous Next
  •  09-19-2008, 6:37 AM 44098

    Javascript error on Spellcheck button

    Hi,
     
    I have a user control that contains a repeater, within each item of which i have an editor with nothing enabled but the spellcheck button.
     
    When this user control is dropped direct on to an aspx page it works fine.
     
    However i also have another page with an asp.net wizard control and i have dropped my user control into a page of that wizard.
     
    The problem now is that when i click on the spell check button i get 'Object doesnt support this property or method' on line 1 char 1 of my pages.
     
    Also, i am also getting a lot of flickering when the pages load, especially if there are 5 or more occurrences of the editor on the page.
     
    Any advice
     
    Cheers
     
    Pete
     
  •  09-19-2008, 8:22 AM 44103 in reply to 44098

    Re: Javascript error on Spellcheck button

    Hi,
     
    Slight amendment to that... it only fails to work if the asp.net wizard is within an update panel...
     
    Move it outside of the update panel and it works a treat!
     
    But i need the update panel!!!
     
    Any advice?
     
    Cheers
     
    Pete
  •  09-19-2008, 8:45 AM 44106 in reply to 44103

    Re: Javascript error on Spellcheck button

    Pete,

    Please make sure you are using version 6.x.

    Ajax update panel support online demo: 

     
     
    The source code of the above examples are available for download. Please check the examples and modify them to meet your own requirements.
     
    Hope it helps.

     


    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

  •  09-19-2008, 9:28 AM 44111 in reply to 44106

    Re: Javascript error on Spellcheck button

    Adam,
     
    I already have the editor working successfully within an update panel that's not the issue.
     
    The problem occurs when i place the editor within a wizard control that is in turn within an update panel.
     
    If i move the wizard outside the update panel the editor works perfectly...
     
    So a rather simplistic view is:
     
    <asp:UpdatePanel ID="myUpdatePanel" runar="server">
       <ContentTemplate>
          <asp:Wizard ID="myWizard" runat="server">
             <asp:WizardStep ID="myStep1" runat="server"
                <CE:Editor id="myEditor" AutoConfigure="Simple" runat="server" />
          </asp:Wizard>
       </ContentTemplate>
    </asp:UpdatePanel>
     
    doesn't work whereas:
     
    <%--<asp:UpdatePanel ID="myUpdatePanel" runar="server">
       <ContentTemplate>--%>
          <asp:Wizard ID="myWizard" runat="server">
             <asp:WizardStep ID="myStep1" runat="server"
                <CE:Editor id="myEditor" AutoConfigure="Simple" runat="server" />
          </asp:Wizard>
    <%--   </ContentTemplate>
    </asp:UpdatePanel>--%>
     
    does work.
     
    Cheers
     
    Pete
  •  09-21-2008, 10:10 PM 44147 in reply to 44111

    Re: Javascript error on Spellcheck button

    Hi Pete,
     
    I can not reproduce this issue,here is my test code, it works fine.
    Can you use my code to do a test again?
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
                <asp:UpdatePanel ID="myUpdatePanel" runat="server">
                    <ContentTemplate>
                        <asp:Wizard ID="Wizard1" runat="server">
                            <WizardSteps>
                                <asp:WizardStep ID="WizardStep1" runat="server" Title="Step 1">
                                <CE:Editor ID=editor1 runat=server></CE:Editor>
                                </asp:WizardStep>
                                <asp:WizardStep ID="WizardStep2" runat="server" Title="Step 2">
                                <asp:Label ID=l1 runat=server>2</asp:Label>
                                  <CE:Editor ID=editor2 runat=server></CE:Editor>
                                </asp:WizardStep>
                            </WizardSteps>
                        </asp:Wizard>
                      </ContentTemplate>
                </asp:UpdatePanel>
     
    Regards
     
    Ken
  •  09-22-2008, 5:55 AM 44153 in reply to 44147

    Re: Javascript error on Spellcheck button

    Ken,
     
    Indeed your example does work so it is a problem with the specifics of the page that i'm hosting the control on...
     
    The rough hierarchy of stuff is something like this:
     
    <masterPage>
        <scriptManager />
        <contentPage>
            <updatePanel>
                <wizardControl>
                    <wizardPage>
                        <userControl>
                            <repeater>
                                <repeaterItem>
                                    <userControl>
                                        <editor />
                                    </userControl>
                                </repeaterItem>
                            </repeater>
                        </userControl>
                    </wizardPage>
                </wizardControl>
            </updatePanel>
        </contentPage>
    </masterPage>
     
    Not sure if that helps you at all :/
     
    With the wizard outside of the update panel the spellcheck icon works...  Within the update panel the spellcheck icon fails
     
    Using google chrome's element inspector i've tracked down the specifics of the javascript error i'm getting:
     
    Uncaught TypeError: Object [object global] has no method 'checkSpellingById'
     
    This is a screenshot of the html as seen by the inspector... (sorry it's a screen shot.. not figured out a way to extract the html it shows you) is there anything obvious you can see? 
     
     
     
    Cheers
     
    Pete
  •  10-09-2008, 12:34 PM 44745 in reply to 44153

    Re: Javascript error on Spellcheck button

    Pete, I had the same problem, and they told me to hire them at 100-150$ per hour to have them fix this issue. 
     
    Did you come up with a solution to this on your own?  I am having it happen in an the update part of formview, but not insert portion. 
     
    My solution was to remove the button from the configuration, and then point my client who will be doing the editing to this solution:
     
     
    It ain't great, but its better and faster than the cute editor spell check, and hey, guess what?  It also works.  :)
  •  04-06-2009, 5:11 AM 50800 in reply to 44745

    Re: Javascript error on Spellcheck button

    Hello guys,  

    Feel free to pay me $100 for this fix if you like :-)

    I think that the Update Panel isn't rendering the Javascript up through the update panel because of the weird way that the CuteSoft Editor is loading the JavaScript. Doesn't matter though, just reference the NetSpell SpellCheck JavaScript file directly at the top of each page in the Head section that uses the CuteSoft Editor inside an update panel.


    <script language="javascript" type="text/javascript" src="cutesoft_Client/CuteEditor/Load.ashx?type=script&file=spell.js">
    </script>


    Thanks,


    Dave
    CENTREL Solutions
    http://centrel-solutions.com
     
View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems