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
Solved

Scroll Bars bottom of a dropdown list

Posted on 2001-06-12
15
263 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RegEx Help - open to other simple suggestions 8 58
If condition on Html with Asp 11 28
Code Manager | Snippits 2 36
JQuery Autocomplete Tag AJAX (Need nice script) 11 35
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

861 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