Console Log Action

Home | Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | Plugins | Mobile | Troubleshooting | About

Table of Contents

1 Console Log Action - #console_log {}

This performs a safe console.log() call to print something some text or Erlang terms to your browser's javascript console. If your browser doesn't support console.log(), the call is ignored.

Usage

%% Sending text
wf:wire(#console_log { text="Some text" }),

%% Sending erlang terms
wf:wire(#console_log { text={some,random,<<"Erlang">>,"Terms"} }),

%% Convenience method
wf:console_log("Some text to send to the console"),

Attributes

text - (string or Erlang term)
If text is a string, it'll simply print the text to the console. If it's an Erlang term, the terms will be converted to a string and sent to the browser.

Date: 2013-10-03 13:42:10 CDT

Author: Jesse Gumm (@jessegumm)

Org version 7.8.02 with Emacs version 23

Validate XHTML 1.0

Comments

Note:To specify code blocks, just use the generic code block syntax:
<pre><code>your code here</code></pre>


comments powered by Disqus