Textbox Element Element

Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | About

Table of Contents

1 Textbox Element - #textbox {}

The textbox element produces an HTML textbox.

Usage

#textbox { id=textbox1, text="Some text.", next=textbox2 }

Attributes

text - (string)
Set the textbox's contents.
html_encode - (boolean)
Set to true to safely html-encode the text.
placeholder - (string)
Sets the placeholder text (text that will be in the textbox until the user focuses in the textbox). This uses the HTML5 placeholder attribute, which is only supported in newer browsers. To add support for older-browsers, you will need to link a placeholder script in your template. You can do this by adding the following to your template inside the <head> section after loading jQuery.
<script src='/nitrogen/jquery.placeholder.js' type='text/javascript'></script>
next - (atom)

If set with a valid control ID, pressing the enter key in the textbox will automatically move focus to the specified control.

postback - (Erlang term)

If set, pressing the enter key in the textbox will automatically initiate a Nitrogen postback with the supplied term.

html_name - (string)
The name attribute of the textbox.

Date: 2012-10-18 03:24:31 CDT

Author: Rusty Klophaus (@rustyio)

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