HtmlInfotron
History Key
- New content
Removed content
Recent Versions
Choose two versions to compare, or click the link to view it.
This simple blueprint accepts any string on its input terinal and the associated handler function sets innerHTML on the infotrons DOM node to the contents of the message.
Sample Declaration
<div id="alerter"
impl="~01A08F0900C9364429BB78BBC03401C3BE"
script="http://localhost/Html.js">
</div>
Dependencies
- N/A
Input Terminals
html_in: (expectedhtml_in- expected message type: any text or html
markup)markup.
- expected message type: any text or html
Output Terminals
- none
Properties
- none
Demos that use it
- N/A
How does it work?
It just chuks any incoming message as innerHTML on the node where it is defined. It had better be HTML, or at least text.
BLUEPRINT(
"~01A08F0900C9364429BB78BBC03401C3BE",
[
["html_in", "onHtml", 10]
],
[],
function (Class)
{
Class.prototype.onHtml = function(msg) {
this.dom_node.innerHTML = msg;
}
}, "HTML View");