PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

How to clear or reset search page

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

  • How to clear or reset search page

    Greetings, I have just purchased the V7 of Zoom Search. I need to have a clear or reset button on the search page. I found the following instructions elsewhere in this forum:

    There are several options, but one would be to,
    - Use the Zoom "Advanced template options" to define your search form. See the Zoom help file for detais.
    - Inside of the search form, you add new HTML for your additional Reset button
    - Associated with this new Reset button you define a Javascript onclick action that clears the text box via Javascript. Search Google for Javascript to clear a text box. There are a ton of examples.

    I am wondering if anyone could expand on this or provide a more comprehensive set of instructions of how to go about doing this. And what are the other options referred to above? I need to know exactly what to put in the search page and what to put in the search form. I am using Javascript.

    Thank you.

  • #2
    Advanced Template Options are described in Section 6.7 of the Users Guide. You can download this from here:
    http://www.wrensoft.com/zoom/usersguide.html

    As explained, the Javascript version would require replacing the following line in "search.html"

    Code:
    <script language="JavaScript">ZoomSearch();</script>
    With:

    Code:
        <script language="JavaScript">ZoomInitSearch();</script>
        <script language="JavaScript">ZoomShowSearchForm();</script>
        <script language="JavaScript">ZoomShowHeading();</script>
        <script language="JavaScript">ZoomShowSummary();</script>
        <script language="JavaScript">ZoomShowCatSummary();</script>
        <script language="JavaScript">ZoomShowPagesCount();</script>
        <script language="JavaScript">ZoomShowRecommended();</script>
        <script language="JavaScript">ZoomShowSorting();</script>
        <script language="JavaScript">ZoomShowResults();</script>
        <script language="JavaScript">ZoomShowPageNumbers();</script>
    This will allow you to insert HTML between the Form and the other elements.

    Once you have this, you can add a reset button. There are multiple ways to do this. But the easiest way to achieve a typical reset would be:

    Code:
    <form target="search.html"><input type="submit" value="Reset"></form>
    Place this line after the ZoomShowSearchForm line if you wish for it to appear right after your search form and before your results.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment

    Working...
    X