Home Search Member List Faq Register Login  
UltimateSpellMVC
does not update the Input type text after doing the spell check

Thread Starter: digvijoymohapatra12@gmail.com   Started: 08-29-2012 2:02 PM   Replies: 3
 Karamasoft Support Forums » General Discussions » UltimateSpellMVC » does not update the Input type text after doing the spell check
 Printable Version    « Previous Thread   Next Thread »
  29 Aug 2012, 2:02 PM
digvijoymohapatra12@gmail.com is not online. Last active: 1/23/2013 4:44:09 PM digvijoymohapatra12@gmail.com

Top 10 Posts
Joined on 08-23-2012
Posts 9
does not update the Input type text after doing the spell check
Hi
I am using a 'html input type text' control and using Ultimatespell MVC api.
Once I write text it gets spell checked, but the text that I entered is not appended to the input text control, it just stays in the iframe.I need the control to be updated and the change event fired for the input text control.
Regards
Digvijoy

  
  29 Aug 2012, 2:48 PM
Karamasoft is not online. Last active: 11/10/2017 3:24:14 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,818
Re: does not update the Input type text after doing the spell check

If you enabled the SpellAsYouType feature, you should use the GetSpellText and SetSpellText client-side API methods to get/set your input text. Please refer to the client-side API documentation at http://www.karamasoft.com/UltimateSpell/ClientAPI.htm.

If you still experience issues, you can send us a self-contained web app having the issue so that we can try it in our test environment.


  
  30 Aug 2012, 11:20 AM
digvijoymohapatra12@gmail.com is not online. Last active: 1/23/2013 4:44:09 PM digvijoymohapatra12@gmail.com

Top 10 Posts
Joined on 08-23-2012
Posts 9
Re: does not update the Input type text after doing the spell check
The following is my code --

<table cellpadding="10">
    <tr valign="top" style="font-size:8pt;font-family:Verdana">
        <td>
            <table>
                <tr valign="top" style="font-size:8pt;font-family:Verdana">
                    <td>
                    <input id="dig1" name="dig1" type="text" contenteditable="true" value="But tehre was " maxlength="20" />
                   
                    <input id="dig3" name="dig3" type="text" contenteditable="true" value="fdfdfdf"  maxlength="20" />
                        @Html.TextArea("TextArea1", "But tehre was was no great luxury about the furnishng of these rooms eithar. The furniture was of mohogany, covered with leather, in the old-fashionned style of 1820 the floor was not even stained, but evreything was shining with cleanlyness, and there were many chioce flowers in the windows; the most sumptuous thing in the room at the moment was, of course, the beatifuly decorated table.", new { @rows = "7", @cols = "60" })
                    </td>
                </tr>
                <tr valign="top" style="font-size:8pt;font-family:Verdana">
                    <td align="right">
                     @(Html.UltimateSpellMVC()
                              .ID("UltimateSpellMVC1")
                              .ControlIdsToCheck("TextArea1,dig1")
                              .ShowSpellButton(true)
                              .ShowAddButton(true)
                              .SpellAsYouType(true)
                              .CustomDictionary("TestKarmaSoft")
                              .SpellWaitPeriod(200)
                              .Render())

</td>
                </tr>
            </table>
        </td>
        <td>
           
        </td>
    </tr>
</table>
$(document).ready(function (e) {
         
          $('#TextArea1').change(function (e) {
             
              updateIn***nChange(e);
          });
          $('#dig1').change(function (e) {
             
              updateIn***nChange(e);
          });
        


      });
function updateIn***nChange() {
          debugger;
          //do something
      }

Problem:-
For the input text control, when I add some text and the spell check happens, the new text is not updated in the input control.

In both the cases the change event is not fired.


  
  30 Aug 2012, 1:38 PM
Karamasoft is not online. Last active: 11/10/2017 3:24:14 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,818
Re: does not update the Input type text after doing the spell check

You have to manually add your event handlers using the AddEventHandler client-side API method. Please refer to the Client-Side Events (API) sample at http://www.karamasoft.com/SamplesMVC.aspx?component=UltimateSpellMVC&sample=ClientEventsAPI and click on the Show Code link at the bottom of the page to see how you can achieve it.

Note that you cannot define onchange event handler on an iframe. As a workaround, you can add key event handlers such as keypress, keydown, and keyup and check whether the previous text has changed to simulate the onchange event.


  
 Page 1 of 1 (4 items)
Karamasoft Support Forums » General Discussions » UltimateSpellMVC » does not update the Input type text after doing the spell check

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2018 Karamasoft LLC. All rights reserved.