logo
WXT, a Web and Xml Tool
from Ostfold College
: Introduction > Documentation > The PIs >Request

PI: request

The purpose is to produce a simple expand of a html-fragment on mouseclick. This involves javascript function, see AJAX. This is a simplified version of the mechanismes available in import-text, see import-text. This simple version is faster when the fragment that is expanded is readymade.

<?_wxt request request_file="" request_function="" expanded=""?>

The parameter are:

request_file (mandatory) The URI of the page to show. Relative to the page or the siteroot.
request_function (optional) The name of the javascript function that are called to expand the fragment. Default value is "expand", relying of the library as desribed in AJAX. The parameterlist for your function must be as in default function "expand".
expanded (optional) Values are yes | no. no is default. If yes: The fragment is showed initially, with unexpand-functionality.

NOTE also that this mechanisme uses the style-class "onoff", which styles the expand and collapse nodes (button-lookalikes).

Some examples:

<?_wxt request request_file="sometext.txt"?>

WXT, a Web and Xml Tool from Ostfold College: http://www.ia.hiof.no/~borres/wxtdoc/


Bygget med WXT : 11.jan.2009