This question about Issue in browser: Answered

Page reloads when clicking in form field.

We use Foswiki to track purchases, proposals, etc. When upgrading from TWiki to Foswiki, we lost our ability to search through entries. Part of the problem seems to be that when clicking in a form field to enter the search query, the page reloads.

Perhaps this is best described by an example.

Here's the main page where (anyone with an account on our network) can enter a new purchase or search through existing purchases. As you'll see, the page reloads (at least in Safari and Firefox) when you click on the field to enter a vendor name to search.

If you click a second time after the page reloads, you can actually enter a search criteria (use "Test"), which works and brings you to:

Any suggestions would be greatly appreciated

-- DevinBougie - 02 Dec 2013

The reason the page reloads is that the input field is also defined as a table sort field. So when you click to focus, it submits the page to re-sort the table. With foswiki tables, any "bold" field is interpreted as a heading and enables the sort link.

Try removing the * bold highlighting on the input field.
| *<input type="submit" value="Search" />* | *<input type="text" name="qVN" value="%<nop>URLPARAM{"qVN"}%" size="40" />* |

-- GeorgeClark - 02 Dec 2013

Many thanks, George. I should have realized that. Problem solved.

-- DevinBougie - 03 Dec 2013

QuestionForm edit

Subject Issue in browser
Version Foswiki 1.1.9
Status Answered
Related Topics
Topic revision: r3 - 03 Dec 2013, DevinBougie - This page was cached on 13 Jan 2018 - 03:05.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License