Solved

Scroll Bars bottom of a dropdown list

Posted on 2001-06-12
15
266 Views
Last Modified: 2011-10-03
I have a dropdown list which is very long is it possable to have a bottom scroll bar which moves left right in the Dropdown List box?
0
Comment
Question by:akeyes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 3
  • +2
15 Comments
 
LVL 20

Expert Comment

by:jitganguly
ID: 6182331
Left to right scroll bars are automatic. It gets adjusted based on the length of the values in it. The way I use it is check the lenght and if it exceeds certian limit then reduce that and add a ..

if len(c_name) > 15 then
c_name=Left(c_name,15) & ".."
%>
<option value="<%= ADORecSet("n_id") %>" <%= selected %>><%= c_name %></option>
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6182350
But to answer your question, you cannot set the left/right scroll bars in a select list box inless you write a specific COM or ActiveX object that does this.
0
 

Author Comment

by:akeyes
ID: 6182407
mgfranz,
  Members of my team were thinking of usit the mouse over and have it display as a text box which would show the information as text, some of it is over 400 char in length.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 20

Expert Comment

by:jitganguly
ID: 6182446
Mark,
Do you know off using CSS here ?
0
 

Author Comment

by:akeyes
ID: 6182470
jitganquly;
   No I have not explored that but will look in to it now.
0
 
LVL 20

Expert Comment

by:jitganguly
ID: 6182501
Let me knwo if you find out something. I also need to implement that :-). Otherwise, use my first suggestion
0
 
LVL 19

Expert Comment

by:webwoman
ID: 6182578
You're going to want to break that up... 400 char is really too long to be workable.

Browsers tend to make the drop down as wide as the longest items, so this could be a real problem.

And there's a difference between a mouseover and a dropdown...if you want text to show up on mouseover, you could put that in a separate div and show/hide it. That could be as long as you needed it to be. There, 400 char wouldn't be as much of a problem. I'm assuming this is words, not a string of text? Kinda tough to read a 400 char string of text...

What exactly is this for? What are you trying to do? Sometimes what you ask for isn't what you want... ;-)
0
 
LVL 3

Accepted Solution

by:
yas022100 earned 100 total points
ID: 6182594
Does it have to work on both IE and Netscape?
I have done some tooltip stuff for Mouseover with IE, but I don't think it will work with netscape

Or, as you said, write to TextArea as description when user selects certain one.  Just keep all info on client side and use script to pull certain data, does that make sense?
0
 

Author Comment

by:akeyes
ID: 6182665
Webwoman;
   I am listing URL in a database which are 400 in length
   and they need to see the entire URL.  Since the unique
   part is at the end in many of them.

yas;
   Only need to work in IE.
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6182864
You can use the <layer> or <div> tag to create a 'popup' with a mouse over, I have seen a few examples at various sites, cnnnfn,com, http://cnnfn.cnn.com/2001/06/12/companies/nokia/ mouseover the bullets under the "Nokia Warns" heading, certain sections of MSDN have examples of this too.

Check with the favorite Javascript pages too, there may be some good examples of the use of <layer> there too.

Yes jit, this is a good use of DHTML, I have some code laying around that uses this technology, I'll have to see if I can find it...
0
 
LVL 3

Expert Comment

by:yas022100
ID: 6182877
akeyes, put your e-mail here, I can send you attached e-mail on tooltip for IE
0
 

Author Comment

by:akeyes
ID: 6182892
yas;
   akeyes@acbcoop.com

0
 
LVL 3

Expert Comment

by:yas022100
ID: 6182894
File is on it's way!
0
 

Author Comment

by:akeyes
ID: 6185899
The team came up with a soultions, a little of there Ideas came from your input.  Thank you.
0
 
LVL 3

Expert Comment

by:yas022100
ID: 6186979
Here is one I got for IE tooltip. Just so that other poeple can get idea of tooltip also.

<!--TOOLBAR_START--><!--TOOLBAR_EXEMPT--><!--TOOLBAR_END-->
<html xmlns:tool>
<head>

<title>Behavior Library: Tooltip</title>

<style>

    @media all
    {
        tool\:tip   {
                    behavior: url(tooltip_vbs.htc)
                    }
    }
   
    H1              {
                    font: bold 18pt verdana;
                    color: navy
                    }
                   
    P               {
                    font: 10pt verdana;
                    }
                   
    .tip            {
                    color: green;
                    font-weight: bold;
                    cursor: hand
                    }
    A:link { color:#003399; text-decoration:none; }
     A:visited { color:#6699CC; text-decoration:none; }
     A:hover { text-decoration:underline; }
</style>

</head>
<body bgcolor=white>
<h1>Tooltips</h1>
<P>
<FONT FACE="verdana,arial,helvetica" SIZE=1>
<A href="#" onclick=self.close()><IMG ALIGN="middle" SRC="demo.gif" WIDTH="16" HEIGHT="16" BORDER="0"></A>
&nbsp;<A href="#" onclick=self.close()>Close This Sample</A>
</FONT><hr>

<p>Use <span ID="oTipEl" class="tip">tooltips</span>
on your HTML pages to give users extra information.</p>


<p>&nbsp;
<p>&nbsp;
<p>&nbsp;

<!---------------------------------------------------------------------------->
<!-- TOOLTIP (Use conditional comments to hide from non-behavior browsers) --->
<!---------------------------------------------------------------------------->

<!--[if IE 5]><tool:tip element="oTipEl" avoidmouse="false">Put any <span style="color:red; font-weight:bold">HTML</span> inside this tooltip, including<br><b>bold</b>, <i>italic</i>, and <u>underline</u></tool:tip><![endif]-->
<p>
<hr>
<FONT FACE="MS SANS SERIF" SIZE="1" COLOR="BLACK">
&copy; <A HREF="test.htm" TARGET="_top"></A>.
</FONT>
<p>


</body>
</html>
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question