Spell Checking Multiple Text Boxes With One Button

It is possible to check more than one text box on a page with one button, using the

RapidSpellWebMultiple Tag (or RapidSpellWebMultipleBean).

Code Example Extract From RSWL-MultipleBoxes.jsp

Page containing the RapidSpellWebMultiple.

<%@ taglib uri="http://www.keyoti.com/" prefix="RapidSpellWeb" %>

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">

<HTML>

<BODY >

<form action='exampleTextBox1.jsp' method='post' name='myForm'>

<!--------------------- Text box 1 -------------------->

<textarea name="sourceTextBox" wrap='true' cols='55'

rows='10'>This is boxx 1.</textarea>

<br><br>

<RapidSpellWeb:rapidSpellWebLauncher

id="rapidSpellWebLauncher"

rapidSpellWebPage="RapidSpellCheckerPopUp.jsp"

textComponentName="myForm.sourceTextBox"

RSMultipleID="RapidSpellWebMultiple1"

/>

<br><br>

<!--------------------- Text box 2 ------------------->

<textarea name="sourceTextBox2" wrap='true' cols='55'

rows='10'>This is boxx 2.</textarea>

<br><br>

<RapidSpellWeb:rapidSpellWebLauncher

id="rapidSpellWebLauncher2"

rapidSpellWebPage="RapidSpellCheckerPopUp.jsp"

textComponentName="myForm.sourceTextBox2"

RSMultipleID="RapidSpellWebMultiple1"

/>

<br><Br>

<!--------------------- Text box 3 ------------------->

<textarea name="sourceTextBox3" wrap='true' cols='55'

rows='10'>This is boxnumber 3.</textarea>

<br><br>

<RapidSpellWeb:rapidSpellWebLauncher

id="rapidSpellWebLauncher3"

rapidSpellWebPage="RapidSpellCheckerPopUp.jsp"

textComponentName="myForm.sourceTextBox3"

RSMultipleID="RapidSpellWebMultiple1”

/>

<RapidSpellWeb:rapidSpellWebMultiple id="RapidSpellWebMultiple1" tabIndex="1"

rapidSpellWebLaunchers="rapidSpellWebLauncher,rapidSpellWebLauncher2,rapidSpellWebLauncher3"/

</form>

<p><font face='arial, helvetica'><a href="index.html">Back to

contents page.</a></font>

</BODY>

</HTML>

Notice that the RapidSpellWebMultiple Tag refers to all the RapidSpellWebLaunchers that it should

start in the course of the spell check. Also, each RapidSpellWebLauncher refers back to the

RapidSpellWebMultiple Tag. All controls must have the “id” attribute set, in order for this to work. If a

RapidSpellWebLauncher is not correctly referenced, it will still appear on the form as button, otherwise it

will be hidden.