Jump to content

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 not just fix the Safari/Firefox issue?  This article may help:

 

http://www.web-wise-wizard.com/html-tutorials/html-form-forms-textarea-wrap.html

 

I am but I also want to do the other thing. Thanks for the link.

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.

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.