Solved

Scroll Bars bottom of a dropdown list

Posted on 2001-06-12
15
260 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
 
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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/…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

705 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now