|
Whitebeam Library Definition
|
Tag Description
<rbm:pageinfo>
Embbed some hidden parameters in a form.
Syntax
<rbm:pageinfo any=string/>
Attributes
The 'rbm:pageinfo' tag has 1 attribute:
Name | Type/Value | Range/Length | Description | any | string | text | Optional. This tag has any number of attributes - each with any name. |
Body
The 'rbm:pageinfo' tag body should be empty.
Remarks This tag is a short cut to repeating lots of hidden form items to transfer data from the
server to the client and back again. The behaviour of the tag is to look at each of its attributes,
in the form name=value and for each to generate a form item in as follows:
- The type of the form item is 'hidden'
- The name of the item is taken from the name of the attribute.
- The value of the item is taken by evaluating the value of the attribute as though it were a JavaScript expression.
So the translated output looks something like:
<input type="hidden" name="atributeName" value="eval(atributeValue)">
Example
Consider the following incarnation of this tag:
<rb:script>
var value1="Hello";
var value2="World";
</rb:script>
<pageinfo first="value1" second="value2"/>
This would be translated into the following HTML output:
<input type="hidden" name="first" value="Hello">
<input type="hidden" name="second" value="World">
|
|
(loadtime : 9ms) |