Hi,
I have an advanced search form accessible at this page. It works fine on Safari 3.1, but a user with Firefox has reported the search button not working. I am able to reproduce the issue in Firefox for Mac 2.0.0.13. What appears to be the issue is this block of the advanced search Javascript code generated by EE:
if (blogs == "7")
{
} // END if blogs
if (reset > 1)
{
categories = new Array();
}
spaceString = eval("/!-!/g");
with (theSearchForm.elements['cat_id[]'])
{
for (i = length-1; i >= firstcategory; i--)
options[i] = null;
for (i = firstcategory; i < categories.length; i++)
{
options[i] = categories[i];
options[i].text = options[i].text.replace(spaceString, String.fromCharCode(160));
}
options[0].selected = true;
}
}
}
//]]>Everything after the greater-than sign in “if (reset > 1),” up through the end of the script block, isn’t code-colored in Firefox’s page source viewer, which leads me to think there’s some problem with the generated code. Again, it works fine on Safari.
Here’s the code for the search form:
Does anyone have any ideas?
Thanks,
Sam