Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 20th, 2004, 5:55 AM   #1
Xko
Newbie
 
Join Date: Sep 2004
Posts: 18
Rep Power: 0 Xko is on a distinguished road
Hiya,

I'd like to create a text box (with download links, descriptions in it etc etc) with a scroll bar down the right hand side so that the box does'nt go pages down the screen.

If you take a look at the quick image below it should explain more.



Any ideas?
Xko is offline   Reply With Quote
Old Sep 20th, 2004, 6:34 AM   #2
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
specify the size of the text box should do it,

either use <textarea height="height" cols="width">text</textarea>

or a frame but i would advise the above.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Sep 20th, 2004, 7:12 AM   #3
Xko
Newbie
 
Join Date: Sep 2004
Posts: 18
Rep Power: 0 Xko is on a distinguished road
Hmmm, thanks but i don't want the user to be able to enter any text at all.

I want to enter a long list of downloads etc etc in the box.

Sorry if it's not making much sense!
Xko is offline   Reply With Quote
Old Sep 20th, 2004, 7:59 AM   #4
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
if you want the whole page to scroll it does it automatically if you just want an uneditable section to scroll then go look up frames and IFrames, they are the things i think you are after.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Sep 20th, 2004, 8:59 AM   #5
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
Naw, i think this is what he wants.

why not use a list box, if you don't want the user to be able to enter anything. Here some code:



<html>
<head>
       <title>Your title here:</title>
</head>
<body>
<select name="theList" size="6">
<option>Test1
<option>Test2
<option>Test3
<option>Test4
<option>Test5
<option>Test6
</select>
</body>
</html>

the size atribute in the select tag controls how many lines are showen, so in this case, everything will show in a square box in your page. Hope this is what you're looking for.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Sep 20th, 2004, 9:45 AM   #6
Xko
Newbie
 
Join Date: Sep 2004
Posts: 18
Rep Power: 0 Xko is on a distinguished road
Jackpot!

That's it! - Thanks man, sorry for any confusion!
Xko is offline   Reply With Quote
Old Sep 20th, 2004, 9:53 AM   #7
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
no worries dude, we're here to help. I don't think that there is many people that use the size attribute for select box ether, thus not many people know about it. Glad to help!
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Sep 22nd, 2004, 6:20 PM   #8
Overmind
Professional Programmer
 
Overmind's Avatar
 
Join Date: Jun 2004
Location: South Africa, Johannesburg
Posts: 301
Rep Power: 5 Overmind is on a distinguished road
What about: readonly="true" :blink:

<textarea height="height" cols="width" readonly="true">STFU!!!</textarea>
__________________
[SIGPIC][/SIGPIC]
Overmind is offline   Reply With Quote
Old Sep 23rd, 2004, 9:05 AM   #9
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
See, that's a tag i didn't even know about. I guess you learn somthing new everyday.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Sep 23rd, 2004, 9:18 AM   #10
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
it depends on how much text has to be displayed :/ and if you weant it all at once or to choose each section.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:28 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC