Jump to content

Looking for suggestions on indicating type overflow in textareas


RIRedinPA

Recommended Posts

Hi

 

I have a production work flow site for magazine publication - essentially a fancy online spreadsheet/grid in table format. Each cell is filled with either a textarea or checkbox depending on the column and data needed. For some reason in Firefox and Safari the textareas scrollbars are not displaying when the text overflows. It's not a huge deal as you can use the mouse scroll or down/up arrows to navigate through the textarea. Anyway, one of the users suggested if I can't get the scrollbars to show up to indicate somehow with a color or something when there is scrollable content.

 

My process is this -->User does something (inputs text, clicks checkbox)-->AJAX-->PHP page to write/read database-->return data and display.

 

I had two thoughts on this to determine when and how to display an indicator that there was scrollable content.

 

1. Set a class in CSS to make textarea border or background color a different color

2. When reading back from the database use PHP to get a character count, if it is over say 80 then write the textarea with the class assigned

 

Option 2.

 

1. Read the database and display the results (using AJAX)

2. Loop through every textarea, get value, count characters and use Javascript to change the style.

 

Any thoughts or comments?

Why would you change the style of the box if they can already see and use the navigation options if it overflows? That seems redundant and would probably confuse more people than it would help.

 

"Why is this box blue?  I don't get it?  Does it need my attention?  Is there an error?"

 

I see those questions coming up from your users.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.