Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

As you Type not working - RapidSpell Web ASP.NET - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
vesla
#1 Posted : Sunday, January 29, 2017 6:53:49 PM
Rank: Newbie

Groups: Registered

Joined: 1/25/2017
Posts: 6
Hi,
Please can you help me,
I am trying to setup my MVC project to use your "As you Type" functionality on some text boxes, but without success .
Calling dialog model and spelling work fine .
But as you type don't.

Both Javascript file i put in head Main-Page. And added two reference in my project :
Keyoti.RapidSpellWeb.ASP.NETv4 ,Keyoti.RapidSpellMDict.dll .
rapidSpell.useAJAXWebService = true;
Add 2 ignore routes:
routes.IgnoreRoute("{d}/{resource}.svc/{*pathInfo}");
routes.IgnoreRoute("{d}/{resource}.svc");

Do I need anything else to setup ?
Br
Jim
#2 Posted : Sunday, January 29, 2017 9:14:29 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,630
Location: Canada
Thanks for posting - do you see any JS errors in the console in the Dev Tools window (F12)?

Do your textboxes have id attributes set? Can you show the code you have on the page please? Doesn't have to be all of it, but show what you've done with RapidSpell.

Thanks
Jim
-your feedback is helpful to other users, thank you!


vesla
#3 Posted : Monday, January 30, 2017 11:34:06 AM
Rank: Newbie

Groups: Registered

Joined: 1/25/2017
Posts: 6
Hi Jim,

I don't have any JS errors , yes all my textboxes have unique id attributes.
I just don't see any indication when I enter a misspelled word.

I put RapidSpell -AYT.js and RapidSpell-Dialog.js in head section on MainPage(used for this Project) is this right place ?
And Keyoti_RapidSpell_Web_Common in Scripts Folder of this MVC project.
After that I load partial views(tabs) depending on the selection in side menu.

window.onload is loaded(and all events from RapidSpell-AYT.js ) before page div content(textboxes) has been loaded.
Do I need to rescan page and reload Window.onload after all textboxes are on the page and how to do that?
Br
Jim
#4 Posted : Monday, January 30, 2017 4:33:54 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,630
Location: Canada
Quote:
window.onload is loaded(and all events from RapidSpell-AYT.js ) before page div content(textboxes) has been loaded.


Thanks, that sounds like it's the problem. Once all the textboxes are loaded you should call

Code:
rapidSpell.ayt_setupTextBoxes(true);


https://keyoti.com/produ.../AJAX_DHTML%20Usage.htm

Best
Jim
-your feedback is helpful to other users, thank you!


Jim
#5 Posted : Tuesday, January 31, 2017 12:21:53 AM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,630
Location: Canada
You sent me some images showing "Access is denied" errors, and errors like "Blocked a frame with origin "https://localhost" from accessing a cross origin frame."

What URL is your page loading under? Usually cross origin issues mean that you have a page loading under 1 domain but a script or iframe is loading from a different domain/url.

Jim
-your feedback is helpful to other users, thank you!


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.