View Full Version : JSpell is already attached, or jspellInit has not been called before calling jspellCh
briancar
7th November 2007, 03:47 PM
I get the above message when I try to use JSpell within a web form using jsp. I get this error even if I use window.onload=jspellInit.
What do I need to do to solve this problem?
staff
8th November 2007, 03:14 PM
Please post sample code that reproduces the issue.
bmorreal
14th November 2007, 03:29 PM
I use jsp and an I tell you what works for me. I include the two js files required by evolution.
Then within a script tag I define the fields to check and the following:
window.onload=jspellInit;
function getSpellCheckArray() {
var fieldsToCheck=new Array();
fieldsToCheck[fieldsToCheck.length]=[document, "AT_SHORT_ANSWER4"];
fieldsToCheck[fieldsToCheck.length]=[document, "AT_SHORT_ANSWER5"];
fieldsToCheck[fieldsToCheck.length]=[document, "AT_SHORT_ANSWER6"];
fieldsToCheck[fieldsToCheck.length]=[document, "AT_ESSAY"];
return fieldsToCheck;
}
I have evolution configured to continually checking for errors within any of the fields that I have previously defined. Now when I "submit" my form I call a handler like so:
onclick="jspellDetach()"
Hope this helps.
pradeepr
26th August 2008, 09:09 AM
Did anyone solve this issue?
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.