Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / How to customize html textbox

Author
Message
Cyborg ART
18
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 22nd Jun 2011 16:38
I am making a minor website, and on the first page I got a textbox that is scrollable, showing the latest updates.
I now wonder if its possible to remove the scrollbars, and instead control the scrolling via buttons.

Does anyone have a clue? I have tried searching around the internet, but with no luck.

Here is what I got:



I bet it looks messy...

Any help is apreaciated

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 22nd Jun 2011 16:50 Edited at: 22nd Jun 2011 16:50
Try here: DynamicDrive.com

I reject your reality and substitute my own...
Destrugter 1
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location:
Posted: 22nd Jun 2011 17:14 Edited at: 22nd Jun 2011 17:36
You most likely won't accomplish this with just HTML. I see some Javascript becoming necassary very quick here. But a question: Why inside of a textbox? Every website is different, but a textbox isn't usually a place to store updates. You can just store them as plain text, that way no one can modify the text.

Not trying to steer you away, but what exactly are you trying to accomplish by putting it in a textbox?

Edit:
Ok...so there is no textbox in your code, but you'll still need javascript =P

My name is Brian.
Cyborg ART
18
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 22nd Jun 2011 17:54
Well, not really a textbox as in for forms

I dont know how to explain it, and I cant show it since I cant search for what its called

But like a box containing text, lots of text but comprimated into a smaller area.

As long as the result works on an iPad I am happy

Destrugter 1
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location:
Posted: 22nd Jun 2011 18:16
Well textbox is fine as long the the people look at the code first and know what you mean. You can't say text area, because that's what the element is actually called =/


I just thought about it, but that is so messed up and backwards...

Anyway, look into javascript. I'm sure you can pull this off with very little javascript code.

But why keys? Doesn't the iPad only pull up the keyboard when there is a text field to edit?

I've never used an iPad, and I've never used any i'Device' extensively, only an iPod touch but for very short time.

Scrollbar is probably what you want in the end though?

My name is Brian.
Cyborg ART
18
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 22nd Jun 2011 18:31
Thanks for the info!

Well, even if iPad can scroll by swiping the finger, you would still be able to scroll when on a computer as well

But I will look into Javascript.

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 23rd Jun 2011 16:05
Have you looked at the link I gave you? http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm

I reject your reality and substitute my own...
Cyborg ART
18
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 25th Jun 2011 12:21
Awesome! Forgot to look at your link.
Thats exactly what I was looking for

Thanks!

Login to post a reply

Server time is: 2025-05-21 09:50:39
Your offset time is: 2025-05-21 09:50:39