Frequently Asked Questions v2 |
FAQ Main / Answer Detail |
How to refill conditions on searchform?
Author: Jakub Adámek jakubadamek@ecn.cz |
|
The script fillform.php3 allows to easily refill condition variables as well.
If you have some search form using the conds[] array, you may call fillform.php3?fillConds= 1 to create JavaScript, which will automaticallyrefill the condition input fields. You may use it by SSI, e.g.
<!--#include
virtual="/aaa/fillform.php3?form=formname&fillConds=1"-->
Place it after the HTML code for the search form, otherwise it will only make a JavaScript error. Replace "formname " with the name of the form containing input fields.
The script can refill multiple select boxes like
<select name="conds[0][value][]" multiple>
as well. Don't forget the [] after [value].
Don't use quotes around field IDs, otherwise some values will not refill (e.g. checkbox <INPUT TYPE="checkbox" NAME="conds[1][highlighted.....]">
must not be 'highlighted.....'
).
There are special dateConds[] parameters which I use to refill AA-like dates (three selectboxes for day, month and year), but this is a bit difficult. If you are interested, write me and I will explain.
Last Edit: Aug 17 2011
<aafaq id=1723> ~ToDo: 1723 How to refill conditions on searchform? </aafaq>
This FAQ interface was developed by Jason at Commons.ca
|
APC
ActionApps is a free software content management system initiated by
the Association for Progressive Communications (APC) APC - Internet and ICTs for social justice and development |