ImageInfotron

History Key

  • New content
  • Removed content

Recent Versions

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

  1. 2. about 5 years by xexamedes
  2. 1. over 5 years by xexamedes
 

A good basic blueprint. Show images when an image uri is sent on the input terminal

Sample Declaration

<div id="dynimage"
     ~01FA2BE9D97E0049558A44CA25F542DE76"
      script="http://localhost/Image.js">
</div>

Input Terminals

  • uri_in: (expected message type: an uri referring to the image file)

Output Terminals

  • none

Properties

  • none

Demos that use it

  • N/A

How does it work?

Takes an url at its input terminal and puts the reultingresulting image element under its dom node



BLUEPRINT(
"~01FA2BE9D97E0049558A44CA25F542DE76", 
[
 ["uri_in", "onUrl", 10]
],
[],
function (Class) 
{
  Class.prototype.onUrl = function(msg) {
      this.dom_node.innerHTML = "<img src=\"" + msg + "\" />";
    }

}, "Single Image View");