Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
style select drop down boxes
Old 05-13-2003, 02:32 PM style select drop down boxes
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
Hi

I have this drop down select box with some really long entries in it. I would prefer a shorter box with wrapped entries if possible does anyone know any tricks to achive this. I have worked out things like colour & style of font & background etc etc just not something like wrap.

thanks
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
 
Register now for full access!
Old 05-14-2003, 12:43 PM
praveen's Avatar
Life is a Dream

Posts: 3,591
Name: Praveen
Location: Chennai, India
Trades: 0
as for i remember, you cannot wrap things inside a select. unless u give them shorter names..

sorry
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
praveen is offline
Reply With Quote
View Public Profile
 
Old 05-14-2003, 12:56 PM trim or strip text down
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
what about if i try to trim or strip the text down in some way like using left in javascript except i need a vbscript method as i am doing ASP.

???

thanks tonya
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Old 05-14-2003, 01:54 PM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Trades: 0
Hmm.... Afraid I don't know vbscript but if each piece of text were in a variable I would do this:

if length(variable) > x {
variable = first x characters of variable + "..."
}
where x is the maximum length you want

I do have the PHP code for that somewhere if its of any help....
__________________

Please login or register to view this content. Registration is FREE
- Everything a webmaster needs - for free

Please login or register to view this content. Registration is FREE
- Free web hosts reviewed and rated

Please login or register to view this content. Registration is FREE
- Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile
 
Old 05-14-2003, 02:05 PM thanks
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
thanks that gives me a direction to move in.

PHP is the unic linux version of asp isnt it?

probably written in something more complex than vb script & i dont know perl or C or whatever so thanks for offer but will have to try the javascript route & maybe i will work out vb method.

the list box isnt hardcoded its drawn from a databse using asp but i may be able to slide some java in somehow

cheers anyway duck

x
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Reply     « Reply to style select drop down boxes
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.90072 seconds with 12 queries