?
Solved

List Box with Horizontal Scroll

Posted on 2005-03-08
3
Medium Priority
?
192 Views
Last Modified: 2012-06-22
This question sort of adds to http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_20960348.html

SeanPowell found a way to add a horizontal scroll bar with javascript.

However, I am loading my listbox from the results of a queried database using SQL in ASP.  I am able to load my current HTML listbox without a problem by sprinkling in ASP code but it appears that this horizontal scrolling list box loads its values using javascript.

I am not sure about using ASP code inside javascript.  I also am not sure if there is a way to query a database inside of javascript.  Or if there is a new solution to getting the horizontal scrollbar in a list box using HTML.  Or if I am just missing something.

Any thoughts?
0
Comment
Question by:thatguymd
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
bruno earned 750 total points
ID: 13490060
you can use ASP in javascript if needed - it will all run on the server and the javascript will have the correct values by the time the browser tries to run it.
0
 

Author Comment

by:thatguymd
ID: 13495397
You are correct.  It is working fine now.  I should have given myself some time away and looked at it.  I assumed that the ASP and javascript mix was the problem because it was my first time doing it.  Thank you, you at least made me confident enough to examine the rest of my code.
0
 
LVL 18

Expert Comment

by:bruno
ID: 13495495
>>you at least made me confident enough to examine the rest of my code.

:-)  sometimes that's all it takes.  Glad i could help.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

This article discusses four methods for overlaying images in a container on a web page
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Suggested Courses

578 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