RIRedinPA Posted April 16, 2009 Share Posted April 16, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/154353-looking-for-suggestions-on-indicating-type-overflow-in-textareas/ Share on other sites More sharing options...
ober Posted April 16, 2009 Share Posted April 16, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/154353-looking-for-suggestions-on-indicating-type-overflow-in-textareas/#findComment-811524 Share on other sites More sharing options...
RIRedinPA Posted April 16, 2009 Author Share Posted April 16, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/154353-looking-for-suggestions-on-indicating-type-overflow-in-textareas/#findComment-811553 Share on other sites More sharing options...
ober Posted April 16, 2009 Share Posted April 16, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/154353-looking-for-suggestions-on-indicating-type-overflow-in-textareas/#findComment-811597 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.