Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

As You Type spell check in MVC 2? - RapidSpell Web ASP.NET - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
WillBo
#1 Posted : Wednesday, December 4, 2013 2:08:32 PM
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.
Jim
#2 Posted : Wednesday, December 4, 2013 3:33:59 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
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!


WillBo
#3 Posted : Wednesday, December 4, 2013 4:50:00 PM
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>
Jim
#4 Posted : Wednesday, December 4, 2013 5:05:22 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
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!


WillBo
#5 Posted : Monday, December 9, 2013 12:05:52 PM
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.
Jim
#6 Posted : Monday, December 9, 2013 8:42:59 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
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!


WillBo
#7 Posted : Tuesday, December 10, 2013 10:19:19 AM
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.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.