Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Spell > RadSpell is undefined
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

RadSpell is undefined

Feed from this thread
  • Mark Haberman avatar

    Posted on May 19, 2006 (permalink)

    I'm using RadSpell v2.7 with the 2.0 framework.

    I am checking multiple text boxes with one control, and I am automatically invoking the spell check when the user clicks the save button.

    Everything works fine in developement, but when I deploy my site I get the following error at the new location:

    'RadSpell' is undefined.

    I already checked to make sure that the RadSpell.Net2.dll was in the bin directory.

  • Mark Haberman avatar

    Posted on May 19, 2006 (permalink)

    Oh, not that I think it matters, but here is my script:

    function TextBoxSource(editor)
        {
            this.editor = editor;
           
            this.getText = function()
            {
                return this.editor.value;
            }
              
            this.setText = function(text)
            {
                this.editor.value = text;
            }
        }


        function MultipleTextSource(sources)
        {
           this.sources = sources;

           this.getText = function()
           {
              var texts = [];
              for (var i = 0; i < this.sources.length; i++)
              {
                 texts[texts.length] = this.sources[i].getText();
              }
              return texts.join("<controlSeparator><br></controlSeparator>");
           }

           this.setText = function(text)
           {
              var texts = text.split("<controlSeparator><br></controlSeparator>");
              for (var i = 0; i < this.sources.length; i++)
              {
                 this.sources[i].setText(texts[i]);
              }
           }
        }

    function startSpell(){
    var sources = [
    new TextBoxSource(document.getElementById('ctl00_ContentPlaceHolder1_gvPhotos_ctl02_txtDescription')),new TextBoxSource(document.getElementById('ctl00_ContentPlaceHolder1_gvPhotos_ctl03_txtDescription')),new TextBoxSource(document.getElementById('ctl00_ContentPlaceHolder1_gvPhotos_ctl04_txtDescription')),new TextBoxSource(document.getElementById('ctl00_ContentPlaceHolder1_gvPhotos_ctl05_txtDescription')),new TextBoxSource(document.getElementById('ctl00_ContentPlaceHolder1_gvPhotos_ctl06_txtDescription')),new TextBoxSource(document.getElementById('ctl00_ContentPlaceHolder1_gvPhotos_ctl07_txtDescription'))];
    var spell = RadSpell.getSpellChecker('ctl00_ContentPlaceHolder1_spell1');
    spell.setTextSource(new MultipleTextSource(sources));
    spell.startSpellCheck();}

  • Erjan Gavalji Erjan Gavalji admin's avatar

    Posted on May 22, 2006 (permalink)


    Hi Mark,

    The error you get means that something happens in the client-side code. As you have the same code running fine on your development environment, I suspect that the webserver configuration might cause the problem.

    Could you check if the webserver outputs correctly the r.a.d.spell javascript files? (they are typically located at  "/APPLICATION_ROOT/RadControls/Spell/Scripts/2_7_0/").

    Cheers,
    Jorje
    the telerik team

  • Mark Haberman avatar

    Posted on May 22, 2006 (permalink)

    Yes, the javascript files are there.  The machine is running Windows 2003 Server.

    It is erroring on this line:

    var spell = RadSpell.getSpellChecker('ctl00_ContentPlaceHolder1_spell1');

  • Erjan Gavalji Erjan Gavalji admin's avatar

    Posted on May 22, 2006 (permalink)

    Hi Mark,

    Could it be that the Main.js file got corrupted? I'm sorry I do not have other clues about that error.

    The RadSpell.getSpellChecker function is declared in the Main.js file.

    Could you open it via a text editor and search for the RadSpell.getSpellChecker function? If you cannot find it that means that something has happened during the publishing. Can you also open the source of the page (by using the View Source command of the browser) and check if the path to the Main.js file exists there?

    Best,
    Jorje
    the telerik team

  • Yonathan avatar

    Posted on Jun 15, 2010 (permalink)

    hi support,

    we're having a main.js corruption in "RadControls\Spell\Scripts\2_6_0" folder. is it possible to have it from you ?
    the main.js is just empty.. :(

    Thanks.

  • Rumen Rumen admin's avatar

    Posted on Jun 16, 2010 (permalink)

    Hi Yonathan,

    Please, find attached the requested Main.js file taken from the RadControls\Spell\Scripts\2_6_0 folder of the RadSpell v2.6.0 installation.

    Best regards,
    Rumen
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
    Attached files

  • Yonathan avatar

    Posted on Jun 16, 2010 (permalink)

    Thank you Support,

    however now it leads us to another error,
    it seems all the javascript files that neccessary in our tools is somehow corrupted, it was caused by some script injection.
    is it possible to have all the javascripts files in this folder RadControls\Spell\Scripts\2_6_0  ? and also
     /RadControls/Editor/Scripts/5_6_0 ? we're sorry to re-ask again.

    Thanks.

  • Rumen Rumen admin's avatar

    Posted on Jun 16, 2010 (permalink)

    Hi Yonathan,

    Of course! For your convenience I have attached the whole RadControls folder including all files of RadEditor and RadSpell.

    Greetings,
    Rumen
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
    Attached files

  • Yonathan avatar

    Posted on Jun 16, 2010 (permalink)

    Rumen !

    Thank you for your attachment.

    it worked like a cool goal in this FIFA 2010 !
    Thanks :)

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Spell > RadSpell is undefined