Tags:
create new tag
view all tags

SID-00979: Reload page at same section with formatted search results

Status: Answered 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

<input type="submit" value="Filter" />

-- 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Reload page at same section with formatted search results
SupportCategory CategoryAPI
TWiki version 5.0.0
Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2010-09-29 - ChrisVanDoren
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.