.../template/ default/ ajax.php

Summary
AJAX widget to allow “expanding” of a hidden DIV tag to allow dynamic content to be inserted without server refreshes.
AJAX widget to allow for inserting of text into text areas, based on the recent_record callback.

Functions

ajax_expand_module_html

function ajax_expand_module_html ($content_id,
$module,
$method,
$param)

AJAX widget to allow “expanding” of a hidden DIV tag to allow dynamic content to be inserted without server refreshes.

Parameters

$content_idDOM id of the content DIV
$moduleModule class name
$methodMethod that is to be called in the module in question
$paramOptional parameter

Returns

HTML widget

ajax_insert_module_text

function ajax_insert_module_text ($text_id,  
$patient,  
$date =  NULL)

AJAX widget to allow for inserting of text into text areas, based on the recent_record callback.  Only modules with $this->date_field defined will appear in the widget.

Parameters

$text_idDOM id of the text widget in question
$patientid of the patient to qualify
$date(optional) date to qualify

Returns

AJAX widget

function ajax_expand_module_html ($content_id,
$module,
$method,
$param)
AJAX widget to allow “expanding” of a hidden DIV tag to allow dynamic content to be inserted without server refreshes.
function ajax_insert_module_text ($text_id,  
$patient,  
$date =  NULL)
AJAX widget to allow for inserting of text into text areas, based on the recent_record callback.