Comparing versions 2 and 3.

HtmlInfotron

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:**html_in** + (expectedexpected message type: any text or html markup) markup. ## Output Terminals + none**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");

History Key

  • New content
  • Removed content

Recent Versions

Choose two versions to compare, or click the link to view it.

  1. 3. about 1 year by xexamedes
  2. 2. about 1 year by xexamedes
  3. 1. about 1 year by xexamedes