• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

drop down box too large for screen

New Here ,
Jun 08, 2009 Jun 08, 2009

Copy link to clipboard

Copied

I have data for a drop down box that is up to 250 digits. This places the drop down box outside the range of the screen. I need to limit the drop down box to 150 digits on the screen but also need to display the extra 100 digits somehow. Is there a way to wrap the information to the next line of the drop down box? Or like text boxes, allow the user to space over the line and see the 100 digits not being displayed?

TOPICS
Advanced techniques

Views

783

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 08, 2009 Jun 08, 2009

Copy link to clipboard

Copied

You can use the title attribute of the option element if I understand

you correctly:

<select>
  <option title="#RepeatString("1234567890", 250)#">#RepeatString("1",
100)#</option>
</select>

Mack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 08, 2009 Jun 08, 2009

Copy link to clipboard

Copied

I'm not sure you do understand. Let me give you a sample of the list I'm

trying to create. These are insurance classifications.

Air Conditioning Systems or Equipment - installation, servicing or repair -

no sales or storage

Ambulance Service, First Aid or Rescue Squads - Municipal

Mail Order Houses Note: Determine Rate Group and Class Limit by type of

merchandise

Warehouses - Public - Household goods storage but with no storage of

fibers, oils, petroleum products, rags, fireworks, matches or explosives

Marsha Rogers

Grain Dealers Mutual Insurance

www.graindealers.com

(317) 388-4526

mack_

<forums@adobe.com

> To

marsha rogers

06/08/2009 10:55 <mrogers@graindealers.com>

AM cc

Subject

Please respond to drop down box

clearspace-132821 too large for screen

100-442716-2-2021

842@mail.forums.a

dobe.com

You can use the title attribute of the option element if I understand

you correctly:

<select>  <option title="#RepeatString("1234567890", 250)#">#RepeatString("1", 100)#</option> </select>

Mack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 08, 2009 Jun 08, 2009

Copy link to clipboard

Copied

Ah, ok. I think you'll need to use a custom drop-down component,

<option> doesn't wrap it's content. Something like:

http://www.simpletutorials.com/?path=tutorials/javascript/jquery/ddcombobox

Mack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 08, 2009 Jun 08, 2009

Copy link to clipboard

Copied

We don't have JQuery and aren't likely to get new software of any kind. But it sounds like your suggestion would just truncate the data anyway.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 09, 2009 Jun 09, 2009

Copy link to clipboard

Copied

LATEST

We don't have JQuery and aren't likely to get new software of any kind.

jQuery is a free javascript library so you can download it and use it

in your project.

I need to limit the drop down box to 150 digits

But it sounds like your suggestion would just truncate the data anyway.

Ok, I misunderstood your question initially. I don't think the option

element in HTML allows tags:

http://www.w3.org/TR/html4/interact/forms.html#edef-OPTION so it will

not wrap.

Mack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation