[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Scroll Bars bottom of a dropdown list

Posted on 2001-06-12
15
Medium Priority
?
273 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
  • 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 400 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

831 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