4 ms·
Well then why don't you provide the correct answer with the right assumptions?
by RuadhanMc 16y ago
Well then why don't you provide the correct answer with the right assumptions?
- alanh 16y agoI did, you should have checked. I even made a public test-case to illustrate why naïve solutions don’t work: http://dl.dropbox.com/u/105727/web/print_textarea.html http://dl.dropbox.com/u/105727/web/print_textarea.html Edited to avoid sarcasm
- mcantor 16y agoI downvoted you for being sarcastic, and because I was discouraged by the tone you used in this SO comment: Gordon, you downvoted my answer and left a misleading comment because you assumed that a user wouldn't edit the textarea? For shame. Your solution is not "pure CSS" but rather uses PHP to duplicate a textarea and then hopes that the user doesn't its content before printing. Please chill out, dude. There is absolutely no reason for a discussion involving Javascript and print stylesheets to require usage of the term "For shame." To phrase it differently: Try to avoid being the guy from this Xkcd. http://xkcd.com/386/ http://xkcd.com/386/
- RuadhanMc 16y agoSorry about that. I've checked now. I even up voted your answer because it deserves at least one up vote. But I would say that perhaps your overall SO experience would be better if your comments on SO were less abrasive. Your answer might have been "right" based on your assumptions (i.e. the user has JavaScript enable in the browser) but it might not have been right if some other assumptions were made.