|
Rank: Member
Groups: Registered
Joined: 12/4/2013 Posts: 4
|
Hi. I'm attempting to add your spell checker to a large website that is built on MVC2. This site uses textarea instead of the ASP textbox. Can you tell me if this will work and what changes I would need to make?
Thanks in advance for your quick reply.
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Hi, actually it doesn't make a difference, asp:textbox is a textarea once it gets to HTML, which is where our code runs. So please follow http://keyoti.com/produc...-%20As%20You%20Type.htm
and you should have no trouble - but if you do, don't hesitate to let us know. Best Jim -your feedback is helpful to other users, thank you!-your feedback is helpful to other users, thank you!
|
|
Rank: Member
Groups: Registered
Joined: 12/4/2013 Posts: 4
|
Thanks for the quick reply Jim. Unfortunately it does not work. Using the F12 developer tools I can see that the RapidSpell-AYT.js is loading, along with the menu.css and rs_style.css link references. I have verified that the Keyoti.RapidSpelMDict and Keyoti.rapidSpellWeb.ASP.Netv4 are referenced. I also have copied, and included in the project, the Keyoti_RapidSpell_Web_Common folder.
I don't know if it will help but here is the html for the element I'm testing.
<textarea id="OpenEnded_3" class="txtboxwidth" cols="170" rows="3" name="Comment"></textarea>
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
When you say it doesn't work, do you mean that it just doesn't do anything? Is there a JS error? Could you post the complete browser view source please, or email to me via support @keyoti.com? Thanks Jim -your feedback is helpful to other users, thank you!-your feedback is helpful to other users, thank you!
|
|
Rank: Member
Groups: Registered
Joined: 12/4/2013 Posts: 4
|
Hi Jim. I'll send the file in an email. I do not get any error message. I just don't see any indication when I enter a mispellled word.
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Thanks Bob, it's hard to say for sure without the MVC code, but from your description of getting the view source, my guess is that the textbox has been added to the page without a page refresh, and so you probably just need to add this block to the bottom of your view (with the textboxes) <script type="text/javascript"> rapidSpell.ayt_setupTextBoxes(true); </script> it will trigger the spell checker to rescan the page for eligible textboxes. Jim PS for some reason the encoding seemed all wrong on the view source you sent (lots of Japanese chars and empty 'box' chars. -your feedback is helpful to other users, thank you!-your feedback is helpful to other users, thank you!
|
|
Rank: Member
Groups: Registered
Joined: 12/4/2013 Posts: 4
|
Thanks for the solution Jim.
You are correct; the text boxes are loaded in a partial view that is loaded after the Master Page. Adding the JavaScript you suggested to the end of the partial view gets the spell check to work.
Now I just need to figure out a way to put this in one place rather than having to modify every partial view.
|
|