Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Disabling the input elements while spell check - RapidSpell Web ASP.NET - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
Swati
#1 Posted : Wednesday, January 7, 2015 6:50:48 AM
Rank: Advanced Member

Groups: Registered

Joined: 12/18/2014
Posts: 34
HI,
i can still type text into content editor when the spell check window is open which potentially could cause typing to be overwritten. Perhaps i want the textbox should be locked whilst spell check is being performed? and it should get activated once the spell check window is closed. Or do i make the parent window disable while spell check popup is opened.

i have three textboxes on which spell check needs to be performed, and i want all three input elements to be disabled while spell check popup is opened and make them active once the popup is closed -:

these are the three texboxes i am using-:

rapidSpell.setParameterValue(document.getElementById('mytextbox_ifr'), 'IgnoreXML', true);
rapidSpell.setParameterValue('default', 'LeaveWindowOpenForUndo', true);
rapidSpell.dialog_spellCheck(true, ['titleTxtBox', 'mytextbox_ifr', 'teaserTxtBox']);




swati
swati
Jim
#2 Posted : Wednesday, January 7, 2015 12:48:51 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Hi Swati, you can disable textboxes during check by adding this to your page

Code:

        rapidSpell.addEventListener('dialog_startedcheckingtextbox', function (src, textbox, complete) { textbox.disabled = true; });
        rapidSpell.addEventListener('dialog_finishedcheckingtextbox', function (src, textbox, complete) { textbox.disabled = false; });


Thanks
Jim

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

-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.