[sword-svn] r457 - trunk/webapp/examples
scribe at crosswire.org
scribe at crosswire.org
Mon Jan 3 14:56:30 EST 2022
Author: scribe
Date: 2022-01-03 14:56:30 -0500 (Mon, 03 Jan 2022)
New Revision: 457
Modified:
trunk/webapp/examples/suggest.jsp
Log:
more improvements to suggest example
Modified: trunk/webapp/examples/suggest.jsp
===================================================================
--- trunk/webapp/examples/suggest.jsp 2022-01-03 19:43:45 UTC (rev 456)
+++ trunk/webapp/examples/suggest.jsp 2022-01-03 19:56:30 UTC (rev 457)
@@ -108,7 +108,7 @@
<h1>SWORDWeb suggest Example</h1>
<form name="suggestForm" action="">
- <select name="modName">
+ <select name="modName" onchange="suggest(document.suggestForm.modName.value, document.suggestForm.keyText.value);">
<%
ModInfo[] modInfo = mgr.getModInfoList();
for (int i = 0; i < modInfo.length; i++) {
@@ -121,7 +121,7 @@
}
%>
</select><br />
- Lookup: <input type="text" value="<%=(key != null)?key:""%>" onkeyup="suggest(document.suggestForm.modName.value, this.value); return false;" autofocus="autofocus" />
+ Lookup: <input name="keyText" type="text" value="<%=(key != null)?key:""%>" onkeyup="suggest(document.suggestForm.modName.value, this.value); return false;" autofocus="autofocus" />
</form>
<table width="100%">
@@ -136,6 +136,7 @@
</td>
</tr>
</table>
+<h3> Source: <a href="suggest.jsp.txt" target="_blank">suggest.jsp</a></h3>
<script type="text/javascript">
<% if ((mod != null) && (key != null)) { %>
<!--
More information about the sword-cvs
mailing list