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

eval() - Available since version 1.3.12

Result of executing some JavaScript

Syntax

JavaScript Object = rb.page.eval(script, file_name, line_no)

Parameters

The 'eval' method takes 3 parameters:

Name Type/Value Range/Length Description
scriptstring  Required. The JavaScript code to be executed
file_namestring  Optional. The notional filename to be reported in error messages
line_nonumber  Optional. The line offset of the first line in the script to be executed.

Results

The 'eval' method returns JavaScript Object:

Type/Value Range/Length Description
JavaScript Object  

This method is almost identical to the standard JavaScript 'eval' method. The primary difference is that this version of the function allows the application to specify a file name and line number. This is particularly important for dynamic applications that wish to load script fils 'on-demand'.


Whitebeam release 1.3.36
(loadtime : 70ms)