PDA

View Full Version : Help me debug my search dropdown box


Mark.B
11-09-2009, 08:14 PM
I have an annoying problem with my search dropdown box.

When you select tghe "Show Posts" radio button when using Firefox, the drop down disappears.

You can then click it again and the radio button is selected.

Switching back to "Show Threads" does not cause the same behaviour.

I know this is related to some custom template stuff because in the default style it doesn't do it. However I have tried manually re-pasting the default search box code into the navbar template and that doesn't help.

Reverting the navbar template doesn't fix it either, so the problem is not in there.

I have also tried disabling plugins and still no joy.

This is a difficult one to track down...so to start with, has anyone ever seen this behaviour before?

Lynne
11-09-2009, 08:26 PM
I've never seen in before. If it is happening on every page, I would guess this has something to do with a template on every page - header, headinclude, or footer. Have you created a copy of your style and tried reverting those templates to see if they are the cause?

Mark.B
11-09-2009, 09:37 PM
I've never seen in before. If it is happening on every page, I would guess this has something to do with a template on every page - header, headinclude, or footer. Have you created a copy of your style and tried reverting those templates to see if they are the cause?
Thanks...of course, it was obvious when i thought about it...it was indeed in the navbar template as reverting it fixed the problem.

The problem was....I have a separate search box (with no dropdown) at the top of the page, and this was using the same id in the form (rb_nb_sp0 and rb_nb_sp1) as the search dropdown.

Changing or removing these id's from the second search box fixes the problem without breaking either search.

What specifically does that id number do in this case?

Lynne
11-09-2009, 10:19 PM
ids must always be unique or problems will arise. I don't really think it is required that a form has an id, but I always just throw one in there anyway.