PDA

View Full Version : SharePoint Integration


juanita728
26th September 2007, 01:06 PM
To install JSpell in SharePoint, add the Javascript references to your master page in the <HEAD> section or to the AdditionalPageHead section of a page itself.

Be aware that SharePoint will overwrite the window.onload() setting and prevent jspell from initializing unless you perform one of the following steps:
1) Modify the master page body tag to include a call to jspellInit().
2) Call _spBodyOnLoadFunctionsName.push("jspellInit") to add jspellInit() to the onload event function list that SharePoint maintains;

Here is a sample of what you will need to add to the page head. Note that when JSpell installs it will create a jspellEvolution directory under your site directory and populate it with the scripts. You can also move these files to the _layouts virtual directory, if you prefer:

<script LANGUAGE="JavaScript" TYPE="text/javascript" SRC="/jspellEvolution/jspellSettings.js" CHARSET="ISO-8859-1"></script>
<script LANGUAGE="JavaScript" TYPE="text/javascript" SRC="/jspellEvolution/jspellEvolution.js" CHARSET="ISO-8859-1"></script>
<script LANGUAGE="JavaScript" TYPE="text/javascript"> <!--

//window.onload=jspellInit;
_spBodyOnLoadFunctionNames.push("jspellInit");

jspellServerPath="/jspellEvolution/jspell_proxy.asp"; // specifies the URL to the JSpell Evolution spell check server

function jspellPostInit()
{
// this function will be called when JSpell is completely done initializing and
// attaching to existing text elements or iframe elements
};
//--> </script>