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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.