aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes problem with multi select box with horizontal scroll bar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "problem with multi select box with horizontal scroll bar " Watch "problem with multi select box with horizontal scroll bar " New topic
Author

problem with multi select box with horizontal scroll bar

raj sekhar
Greenhorn

Joined: May 09, 2007
Posts: 2
im facing a problem with multislect boxs horizontal scroll .
when the text in multiselect box exceds the size to the select box.
we cannt see the complete text. to avoid this problem. i used a horizontal scroll bar by using div tab.this horizontal scroll bar scrolls the entire select box. unless we move the horizontal scroll bar we cant see whether it has vertical scroll or not. is there any solution to this problem.
or how can i showup at time horizontal nd vertical scroll bars.can i give tool tip. if so how .... this should work in both IE and FF.
this is what im using presently.

<div style="overflow-x:scroll;width:200px;overflow:-moz-scrollbars-horizontal;">
<select name="select2" class="GenButWhite" size="15" >
<c:forEach items="${mgrlist}" var="mgr" varStatus="mgr1" >

<option value="<c ut value="${mgr.mpersonid}"/>-<c ut value="${mgr.morgid}"/>" <c:if test="${mgr.mpersonid==requestScope.personidselect && mgr.morgid==requestScope.orgidselect}">selected="selected" </c:if> >
<c ut value="${mgr.mfname}"/> <c ut value="${mgr.mlname}"/> - <c ut value="${mgr.morgname}"/>       </option>

</c:forEach>


</select></div>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61773
    
  67

Please show us the HTML as it is sent to the browser. Showing use the unprocessed JSP source is not very helpful.

Also be sure to use UBB code tags when posting code. Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
raj sekhar
Greenhorn

Joined: May 09, 2007
Posts: 2

for option 3 the text exceeds the width of the select box.
it not possible for me read the text completely.i was able solve this by giving a horizontal scroll.unless i move the horizontal scroll its not possible for me see whether vertical scroll bar is there or not.can you tell me how can i give both horizontal and
vertical scroll bar to select box as we have in normal a window. i mean, only the text area should move.And more over it should work for IE and FF.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with multi select box with horizontal scroll bar