Java is the backend, JS is the front end (ie actually embedded on the page)..<br><br>There is an element id on the text area in question in pmwiki (thus I still have hope), but the jspspellcheck js is written for the concatenated names (ie element.formname.textareaname.&nbsp; <br>unfortunately there is no form name, but only text are name in pmwiki.<br><br>thanks, and thanks&nbsp; to anyone else who can take a look.<br><br>Seth<br><b><i>Crisses &lt;crisses@kinhost.org&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> <br>On Dec 15, 2006, at 6:58 PM, Seth Cherney wrote:<br><br>&gt; I have been trying to integrate a java spell check into pmwiki, as  <br>&gt; I cannot access pspell/aspell on my hosted server.<br><br>Geek note: Java is not JavaScript.  :)  Java is by Sun Corporation,  <br>and is a very very hefty undertaking.  JavaScript is by Netscape Corp  <br>I believe, and is meant for browser
 scripting.  The two came out  <br>around the same time, and the names are very very confusing.<br><br>This is JavaScript.  I started reading and went "Java!  I can't help  <br>with Java!!" :)  Good thing I kept reading.<br><br>&gt; My thought was only to mod PM's spellcheck.php to call the other js  <br>&gt; (it works on js in the browser as well.  The spell checker I am  <br>&gt; trying to integrate is VERY easy to integrate (but I am no coder).   <br>&gt; It is sourceforge.net/projects/jspspellcheck, based on jazzy - and  <br>&gt; using word lists fo dicts (ie can make any language!).<br>&gt;<br>&gt; I was dropping the whole thing into the pub directory, then trying  <br>&gt; to rewrite the spellcheck.php in the cookbook to point to it.   <br>&gt; There are a few syntax problems converting the js to php compatible  <br>&gt; js, and it tries to find the form name, but ther is no form name in  <br>&gt; pmwiki edit, just for the text area.<br><br>Ok -- actually this is
 probably a make-or-break issue.  When using  <br>JavaScript to "script the DOM" (document object model or something)  <br>it really needs to have a "name" on the "object" (in this case the  <br>browser's text area) to point to.<br><br>The getElementById needs a CSS Id on the item you're accessing...   <br>such as <textarea id="spellCheckme">  id tags are meant to be unique  &lt;br&gt;identifiers on the page -- used only once.  JavaScript takes  &lt;br&gt;advantage of that fact, and uses it to target an item on the page.&lt;br&gt;&lt;br&gt;&gt; bellow is the file I have been trying to work on.  the two lines  &lt;br&gt;&gt; with !!! are the ones I believe causing probs.  someone with a  &lt;br&gt;&gt; little time could perhaps download jspspellcheck and give me  some  &lt;br&gt;&gt; help??  I think it is very easy for someone with background (I am a  &lt;br&gt;&gt; theologian).&lt;br&gt;&lt;br&gt;Sorry I don't have time to do that :/&lt;br&gt;&lt;br&gt;&gt;     This will
 add a "spell check" button to the GUI button bar, and&lt;br&gt;&gt;     link in the necessary spell checking scripts.&lt;br&gt;&gt; #&lt;script src='$PubDirUrl/speller/spellChecker.js'&gt;&lt;/script&gt;&lt;br&gt;&gt; #&lt;script type='text/javascript' &gt;&lt;br&gt;&gt; #function openSpellChecker() {&lt;br&gt;&gt; #    var textarea1 = document.getElementById('text');&lt;br&gt;&gt; #    var speller = new spellChecker( textarea1 );&lt;br&gt;&gt; #    speller.popUpUrl = '$PubDirUrl/speller/spellchecker.html';&lt;br&gt;&gt; ##    speller.openChecker();&lt;br&gt;&gt; #}&lt;br&gt;&gt; #&lt;/script&gt;&lt;br&gt;&gt; */&lt;br&gt;&gt;&lt;br&gt;&gt; # If we're not editing, then just exit.&lt;br&gt;&gt; if ($action != 'edit') return;&lt;br&gt;&gt; # Configure in the Speller Pages javascript code.&lt;br&gt;&gt; $HTMLHeaderFmt[] = "&lt;br&gt;&gt; &lt;script src='$PubDirUrl/jspspellcheck/jspspellcheck/spellcheck- &lt;br&gt;&gt; caller.js'&gt;&lt;/script&gt;&lt;br&gt;&gt; &lt;script
 type='text/javascript' &gt;&lt;br&gt;&gt; function spellCheck(){&lt;br&gt;&gt;     var elements = new Array(0);&lt;br&gt;&gt;     !!!    elements = document.getElementById('text');&lt;br&gt;&lt;br&gt;Unless the id on the box is specifically "text" this will fail.&lt;br&gt;&lt;br&gt;You can try getElementsByTagName and "textarea"?&lt;br&gt;&lt;br&gt;elements = document.getElementsByTagName("textarea")&lt;br&gt;if(elements.length) {&lt;br&gt;     !!!    startSpellCheck('$PubDirUrl/jspspellcheck/', elements );&lt;br&gt;}&lt;br&gt;}&lt;br&gt;&lt;/script&gt;&lt;br&gt;&lt;br&gt;This is me guessing.  I am a programmer, but I'm NOT a JavaScript  &lt;br&gt;programmer.&lt;br&gt;&lt;br&gt;it's either this, or find a way to add the id="text" to the HTML for  &lt;br&gt;the textarea.&lt;br&gt;&lt;br&gt;Crisses&lt;br&gt;&lt;/blockquote&gt;&lt;br&gt;</textarea></blockquote><p>&#32;__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the
 best spam protection around <br>http://mail.yahoo.com