hi,
i have a problem in that when multiple items are selected from my html form and the search button is selected, it only seems to select the selected item which is closest to the top of the list, here is my html code:
<div id="SearchArea">
<form name="searchForm" align="right" method="POST" action="/infoglueDeliverWorking/Special+Pages/Search+Results">
<input type="hidden" name="resultView" value="successXML">
<input name="searchString">
<input type="submit" value="Search">
<!-- the multiple select list -->
 <select name="searchedDirectoryNames" id="selectedDirectories" size="2" multiple>
<option value="about us">about us</option>
<option value="news">news</option>
<option value="technology">technology</option>
</select>
</form>
</div>
I am not using javascript at the moment as i was told by some1 else that i didnt have to use javascript as it would automatically pick up the multiple selections as a comma seperated list. (im a relative beginner with javascript
)
I am using a Java program which tries to get the selected items from the list by using the name - 'searchedDirectoryNames', and for example if i select about us and news elements in the list, the number of elements returned is 1, and it is about us.
I need that 'searchedDirectoryNames' to give me back an array of the selected items
regards
cajchris
i have a problem in that when multiple items are selected from my html form and the search button is selected, it only seems to select the selected item which is closest to the top of the list, here is my html code:
<div id="SearchArea">
<form name="searchForm" align="right" method="POST" action="/infoglueDeliverWorking/Special+Pages/Search+Results">
<input type="hidden" name="resultView" value="successXML">
<input name="searchString">
<input type="submit" value="Search">
<!-- the multiple select list -->
 <select name="searchedDirectoryNames" id="selectedDirectories" size="2" multiple>
<option value="about us">about us</option>
<option value="news">news</option>
<option value="technology">technology</option>
</select>
</form>
</div>
I am not using javascript at the moment as i was told by some1 else that i didnt have to use javascript as it would automatically pick up the multiple selections as a comma seperated list. (im a relative beginner with javascript
I am using a Java program which tries to get the selected items from the list by using the name - 'searchedDirectoryNames', and for example if i select about us and news elements in the list, the number of elements returned is 1, and it is about us.
I need that 'searchedDirectoryNames' to give me back an array of the selected items
regards
cajchris