List Box with Horizontal Scroll

Posted on 2005-03-08
Medium Priority
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?
Question by:thatguymd
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
  • 2
LVL 18

Accepted Solution

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.

Author Comment

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.
LVL 18

Expert Comment

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.

Featured Post

Technology Partners: 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!

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article discusses four methods for overlaying images in a container on a web page
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Suggested Courses

765 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