I’d like to ask you advice about a textarea “problem”. I like the user-resizable feature of the FF, and actually what I’m trying to achieve is if I submit something with a POST form, then after a page refresh the textarea will be the same size what the user dragged.
This doesn’t seem to work with standard JS or PHP as during submit only the default, original rows and cols are transferred – not the virtual, what the user set. I assume this is a virtual value, managed by the browser.
Is there any way to capture the actual textarea cols&rows upon submitting? I don’t need browser or much OS-compatibility, primarily a working solution for FF10.x under Windows and Linux would be perfect.
thanks in advance for any insights,
nm
You should be using
widthandheight, notrowsandcols. Then you can get the textarea’soffsetWidthandoffsetHeightand save them, then auto-size to that the next time the textarea appears.Side-note: Chrome had resizable textareas before Firefox did.