Autodelete search form

Hello!

just upgraded to the most recent Version 1.4.0.2, now the search is much better than in Version 1.2.3 which I had before.

But there is one thing, i don't like:
after eyery search I have to hit the "clear search" button before i can search again for other keywords.

Is there any way to autodelete the search cache after every search, so i don't have to click the button all the time?

Thanks!

Comments

  • Sorry for the double-post, but i found a solution:

    I wanted to get the search cleared after every single search so i putted: <body onload="reset()"> into my search.php - that works now for me

    but... I guess that this is not very nice?
    are there other (better) ways to do that?
  • acrylian Administrator, Developer
  • Thanks,

    but I've already found that answer before, but it did not work for me.

    I putted it between <?php and ?> tags before the call on printSearchForm() but then the search don't work at all.
  • Your above solution is fine. I suppose we could have an option as to if searches within searches are allowed. But you are the first that wished to prevent that.
  • thank you, sbillard!

    Then I will keep this onload event in my search.php and wait until you include this feature in a future release.

    But as long as it works with the onload event I wont mind anyway.

    Thanks for your help an time and of course for making this great gallery!!
Sign In or Register to comment.