Comments on: The output element https://stevefaulkner.github.io/html5doctored/the-output-element/ helping you implement HTML5 today Thu, 28 Jul 2016 17:36:34 +0000 hourly 1 By: Mori https://stevefaulkner.github.io/html5doctored/the-output-element/#comment-2067634 Wed, 16 Dec 2015 07:34:07 +0000 http://html5doctor.com/?p=3976#comment-2067634 Thanks for the article! Two points:
1. In figure 5 you can also use flevel.value.
2. In figure 6 you can also use parseInt.

]]>
By: Bruce Lawson https://stevefaulkner.github.io/html5doctored/the-output-element/#comment-580203 Tue, 14 Oct 2014 10:30:45 +0000 http://html5doctor.com/?p=3976#comment-580203 yes

]]>
By: Scott https://stevefaulkner.github.io/html5doctored/the-output-element/#comment-278159 Sun, 24 Aug 2014 21:23:32 +0000 http://html5doctor.com/?p=3976#comment-278159 Could the output element be used for things besides calculation, such as letting a user know that the username is already taken (via ajax) in a website registration form?

]]>
By: Casey https://stevefaulkner.github.io/html5doctored/the-output-element/#comment-47159 Thu, 06 Feb 2014 14:43:06 +0000 http://html5doctor.com/?p=3976#comment-47159

The output element represents the result of a calculation performed by the application, or the result of a user action.
http://www.w3.org/html/wg/drafts/html/master/forms.html#the-output-element

So something like the following

<form>
<p>
<label for=username>Username</label>
<input type=text id=username name=username required inputmode=verbatim>
<output hidden for=username role=alert>Username is already taken</output>
</p>

]]>
By: Casey https://stevefaulkner.github.io/html5doctored/the-output-element/#comment-47103 Wed, 05 Feb 2014 21:59:14 +0000 http://html5doctor.com/?p=3976#comment-47103 What about using the output element for input error messages?

]]>
By: DrClue https://stevefaulkner.github.io/html5doctored/the-output-element/#comment-34474 Tue, 14 May 2013 10:35:43 +0000 http://html5doctor.com/?p=3976#comment-34474 I figure that while I might use the OUTPUT element , I’ll probably still use the :before{content:attr(data-value);display:inline-block …} bit on slider type things too, as it still seems to work better for te moment.

]]>
By: Apoorva Seshadri https://stevefaulkner.github.io/html5doctored/the-output-element/#comment-32296 Wed, 20 Mar 2013 08:46:06 +0000 http://html5doctor.com/?p=3976#comment-32296 Dr.Richard – I wanted to know as to how I would be able to display the output of form – type:range as numbers separated by commas ?

Say I set the range at $100000 – I want it to be displayed as &100,000

Please Help!

]]>
By: Balázs https://stevefaulkner.github.io/html5doctored/the-output-element/#comment-29519 Wed, 02 Jan 2013 09:10:09 +0000 http://html5doctor.com/?p=3976#comment-29519 Hi!

Just ran the linked test page ( http://miketaylr.com/code/html5-output-element-support.html )
in IE10 ( 10.0.9200.16384 on win8 )
and it’s a complete fail, so I would update the browser support section because it is NOT working in 10!

]]>
By: Rick https://stevefaulkner.github.io/html5doctored/the-output-element/#comment-29346 Mon, 26 Nov 2012 21:25:25 +0000 http://html5doctor.com/?p=3976#comment-29346 Sorry, it also clipped the ‘output’ tag.

I guess I could dynamically build a string array and feed it to the getElementById(), losing the 1st line when the # of buffered lines is overrun…. but that’s pretty tedious work. (sure, I had to struggle thru those sorting exercises, way back in the ‘c’ age).

I would think that the guru’s of HTML5 would have foreseen this necessity. I just can’t figure it out so far.

Thanks… Rick.

]]>
By: Rick https://stevefaulkner.github.io/html5doctored/the-output-element/#comment-29345 Mon, 26 Nov 2012 20:59:39 +0000 http://html5doctor.com/?p=3976#comment-29345 The above post removed the ‘div’ and other tags which I have tried.

Correction: (a ‘div’ area on the page).
Correction: (Same thing for the ‘div’ statement and ‘open’ tag)

]]>