SID-00979: Reload page at same section with formatted search results
| Status: |
Answered |
TWiki version: |
5.0.0 |
Perl version: |
|
| Category: |
CategoryAPI |
Server OS: |
|
Last update: |
15 years ago |
I've finished building a formatted search which works great, but its near the bottom of a lengthy TWiki page, so when I submit on the search results it reloads the page at the very top and I have to scroll down to the results.
Is there a way to for the reload of the page to stay in the same section when I submit the search criteria?
I have a feeling I need to modify the
--
ChrisVanDoren - 2010-09-24
Discussion and Answer
Use an anchor to jump to the desired location. Example using
MySearch anchor:
#MySearch
<form name="mysearch" action="%SCRIPTURL{view}%/%WEB%/%TOPIC%#MySearch" method="post">
...
</form>
%SEARCH{...}%
--
PeterThoeny - 2010-09-24
Thanks!
--
ChrisVanDoren - 2010-09-29
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.