I have this code which permits me to reload the content of a page every few seconds.
function()
{
$('#lista').show().load('listaupdate.php').fadeIn("slow");}, 3000);
Now, the issue is, i have a search form there, but, how should i prevent refreshing when searching?
Or it can refresh ok, but after the search has been done, and after the results were given. It's the same issue with pagination, if i go to page 2, then it refreshes and takes me to page 1.
How can i solve this? Thanks
search form:
<form action="listasearch.php" method="post">
<select name="kategoria">
<option value="dyqani_pergjegjes">Dyqani Përgjegjës</option>
</select>
<input type="text" name="search">
<input type="submit">
</form>