AAAAPK 8R\'桄 autocomplete_loader.phpnu W+A 'Autocomplete Loader', 'tooltip' => 'Load the auto complete basic CSS and code');
var $group = array('id' => 'power_fields', 'title' => 'Power Fields');
function load($clear){
if($clear){
$action_params = array(
'field_id' => '',
'field_name' => '',
'minLength' => 3,
'maxChoices' => 10,
'ajax_delay' => 300,
'results_cache' => 'true',
'ajax_event' => ''
);
}
return array('action_params' => $action_params);
}
function run($form, $actiondata){
}
}
?>PK 8R\
index.htmlnu W+A
PK 8R\X- autocomplete_loader.ctpnu W+A
Header(array('settings' => 'Settings', 'other' => 'Other', 'help' => 'Help'), 'autocomplete_loader_config_{n}'); ?>
tabStart('settings'); ?>
input('action_autocomplete_loader_{n}_field_id_config', array('type' => 'text', 'label' => "Field ID", 'smalldesc' => 'The id of the field which will have the auto completer function assigned by this action.')); ?>
input('action_autocomplete_loader_{n}_field_name_config', array('type' => 'text', 'label' => "Field Name", 'smalldesc' => 'The name of the field which will have the auto completer function assigned by this action.')); ?>
input('action_autocomplete_loader_{n}_ajax_event_config', array('type' => 'text', 'label' => "AJAX event", 'class' => 'medium_input', 'smalldesc' => 'The event name which will have the Autocompleter processor action.')); ?>
tabEnd(); ?>
tabStart('other'); ?>
input('action_autocomplete_loader_{n}_minLength_config', array('type' => 'text', 'label' => "Minimum length", 'smalldesc' => 'Minimum number of characters before a request is initiated.')); ?>
input('action_autocomplete_loader_{n}_maxChoices_config', array('type' => 'text', 'label' => "Max choice", 'smalldesc' => 'Maximum number of choices to show.')); ?>
input('action_autocomplete_loader_{n}_ajax_delay_config', array('type' => 'text', 'label' => "AJAX delay", 'smalldesc' => 'Time to wait in MS before a request is initiated.')); ?>
input('action_autocomplete_loader_{n}_results_cache_config', array('type' => 'select', 'label' => 'Cache results', 'options' => array('false' => 'No', 'true' => 'Yes'), 'empty' => false, 'smalldesc' => "Cache the results ?")); ?>
tabEnd(); ?>
tabStart('help'); ?>
- Add your field name and id which is going to have the auto loader function then set the event name which will have the processor action.
- Your field should be of type text box or text area.
- You should use an event on the same form, e.g: create a new form event and call it "my_auto_complete".
tabEnd(); ?>
PK 8R\) .htaccessnu W+A