This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with multi select box with horizontal scroll bar

 
raj sekhar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
raj sekhar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic