Hi,
It seems that there is a problem with the javascript injected by advanced search form tag.
Advanced search form tag has parameter “id”. This parameter allows to specify the id attribute for the <form> tag. But it seems that this id of the <form> tag is not in any way taken into account by the script which advanced search form tag injects.
The script has the function “changemenu(index)” in which there are following lines:
var theSearchForm = false
if (document.searchform)
{
theSearchForm = document.searchform;
}
else if (document.getElementById('searchform'))
{
theSearchForm = document.getElementById('searchform');
}
If <form> tag has the id say “advanced_search_form”, that id is not reflected in this function.
Since that script does not take into consideration the new id which may be provided by “id” parameter, clicking on any option in “Weblogs” selectbox produces javascript error.
Firebug’s error message is as follows:
theSearchForm.elements is undefined
Perhaps, this is a bug which should be filed into Bug tracker?
I use ExpressionEngine v.1.61 build 20071204
