Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-04-26 04:55:41
- azw
- Member
- Registered: 2007-01-29
- Posts: 279
Could we add a tabindex parameter to selectinput?
I’ve got a plugin with several forms. Some of the fields use a select, but there’s no option to set the tabindex on select inputs.
I have a hack that does add one, but I’d rather not use a hack. This is one function in that plugin.
In this function, for the $name parameter, I’ve replaced:
'crit',
with "crit\" tabindex=\"$azw_tabindex",
and $azw_select_field
with $azw_select_field."\" tabindex=\"$azw_tabindex",
function azw_select_popup($azw_select_field, $azw_select_values_array, $azw_select_value, $step, $azw_select_popup_extras = 'TRUE', $azw_tabindex='')
{
global $event, $step;
if ($azw_select_popup_extras)
{
$azw_select_name = $azw_select_field . '_select';
return n.n.form(
graf(
'<label for="' . $azw_select_name . '">' . azw_gTxt('azw_select_field_label') . '</label>' . sp .
selectinput("crit\" tabindex=\"$azw_tabindex", $azw_select_values_array, $azw_select_value, true, '', $azw_select_name) . sp .
sInput($step).
eInput('azw_list').
hInput('search_method', $azw_select_field) .
fInput('submit', 'search', gTxt('go'), 'smallerbox')
)
, '', '', 'get', 'search-form');
}
else
{
return selectinput($azw_select_field."\" tabindex=\"$azw_tabindex", $azw_select_values_array, $azw_select_value, true, '', $azw_select_field);
}
return false;
}
Offline