Whitebeam Template Reference Documentation

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Template Reference Documentation

System Template

postdata()

Returns the raw, unencoded contents of the POST data provided by a client browser.

Syntax

string = rb.page.postdata()

Parameters

The 'postdata' method takes no parameters

Results

The 'postdata' method returns string:

Type/Value Range/Length Description
string empty if not a post requestThis method provides access to the raw 'post' data provided by the browser with an HTTP POST request.

Remarks

This request will check the HTTP method. If the page is being accessed using hte 'POST' mechanism then this method will look for the corresponding post-data in the HTTP headers. If there is post data then the method returns this to the Pattern Page as a JavaScript String object.

If the browser did not use the POST method, or there is not post data then the resultig string is empty.

This method does NO decoding of the post data - the data is in the raw format as identified by the 'Content-Type' HTTP header. This method allows the Pattern Page to decode formats other than those directly supported by the Presentation Engine.

Example

var postdata = rb.page.postdata();

rb.page.write("<h1>Raw Contents of the Post Data</h1>\n");
rb.page.write("<p><td>------->"+postdata+"<--------</p>\n");
Whitebeam release 1.3.36
(loadtime : 61ms)