Advertisement:

Author Topic: Help with Search Bar  (Read 609 times)

fezanna

  • Newbie
  • *
  • Posts: 12
Help with Search Bar
« on: November 04, 2014, 02:37:46 pm »
Hi friends!!!

I wish that when you select a category in the search bar, it will automatically refresh the search results page, without pressing the search?

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: Help with Search Bar
« Reply #1 on: November 04, 2014, 03:31:21 pm »
Hi, do you mean, when the visitor no take any action in two minutes in the page results, exists an refresh on the results, right? Is not bad idea.

You can do it with html code, in the <head> tag, in your search.php file:

Code: [Select]
<head>
<meta http-equiv="Refresh" content="120; url=" />
</head>

content="is the number of seconds you need for auto refresh the results."

Try and see if works for what you need

Greetings
« Last Edit: November 04, 2014, 03:36:41 pm by fog »

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: Help with Search Bar
« Reply #2 on: November 04, 2014, 03:43:37 pm »
sorry i have not understood well
You need add the code:
Code: [Select]
onchange="this.form.submit();

Regards