Announcement

Collapse
No announcement yet.

When my search results are listed the page jumps to the bottom, how can I stop that..

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    When my search results are listed the page jumps to the bottom, how can I stop that..

    When my search results are listed the page jumps to the bottom, how can I stop that from happening?

    This happens because the 'Search Words' field is getting the focus. There are two options to deal with this:

    Option 1 - Move the Search fields to the top of the page
    • edit the 'Search Results Page Bulk Area' layout (Design | Library | Layouts tab | Web Page Inner Layout group)
    • move the following to just above the </form> tag at the end of the layout


    Code:
    <table border="0" cellpadding="10" width="<actinic:variable name="ACTSTDWIDTH" />" align="center">
       <tr>
          <td>
             <b><Actinic:Variable Name="SearchResultSummary"/></b><br />
             <Actinic:Variable Name="SearchResultContinue"/>
          </td>
       </tr>
       <tr>
          <td>
             <actinic:variable name="SearchResultsList" />
          </td>
       </tr>
       <tr>
          <td>
             <b><Actinic:Variable Name="SearchResultSummary"/></b><br />
             <Actinic:Variable Name="SearchResultContinue"/>
          </td>
        </tr>
    </table>

    The code above is usually found on lines 9 - 27 on a default layout

    • click 'OK'.



    Option 2 - stop the 'Search Words' field from getting the focus
    • on the same layout as above, search for and remove the following code:


    Code:
    <script language="javascript" type="text/javascript">
       <!--
       for (nIndex = 0; nIndex < document.forms.length; nIndex++)
           {
           if (document.forms[nIndex] && document.forms[nIndex].SS)
              {
              document.forms[nIndex].SS.focus();
              }
           }
        // -->
     </script>
    Normally on lines 53 - 63 on a default layout.
    • Click 'OK'
Working...
X