PDA

View Full Version : Unable to use JSpell Evolution in my web page?


rajeev_jboss
8th July 2008, 04:17 PM
Hi

I have installed JSpell on my m/c.
Now I want to use it on my xhtml page, so I have included these twoline in <head> section:-

<script src="scripts/jspellSettings.js" language="JavaScript" type="text/javascript" charset="ISO-8859-1"></script>
<script src="scripts/jspellEvolution.js" language="JavaScript" type="text/javascript" charset="ISO-8859-1"></script>

I have also written: -
<script>
window.onload=jspellInit;
function getSpellCheckArray() {
var fieldsToCheck=new Array();
fieldsToCheck[0]=[document,"lastName"];
}
</script>

Now whenever the page loads it gives a JavaScript error:-
'length' is null or not an object.

What could be the problem???

The JSpell does not seem to work...:confused:

Also why is the .js files with special characters:
for e.g.

var Ò=new Object();
Ò.Ó=document.location.href.indexOf(Ol("q\177kvz"))===0;
Ò.Ô=navigator.userAgent.toLowerCase();
Ò.Õ=document.all

Is this the way JSpell wants it or the file is corrupted???

Please reply asap.

Thanks

Light
24th July 2008, 05:47 PM
You don't seem to have the path to the jspell library in the script.


<script language="javascript" type="text/javascript">
// JSpell
jspellServerPath="/jspellEvolution/jspell_proxy.asp";
window.onload=jspellInit();

function getSpellCheckArray() {
var fieldsToCheck=new Array();
fieldsToCheck[fieldsToCheck.length]=[document,"lastName"];
return fieldsToCheck;
}
</script>


I think the javascript files they are using are purposefully obfuscated.

zooomer
31st July 2008, 03:19 AM
Did you try
window.onload=jspellInit();