hi guys
I have been stuck with this issue for many hrs now..can anyone please help?
my page #s on a search results page trigger a function that submits the page’s search form.
this is how I generate the page #:
echo ‘ <a href=”javascript:void(0);” onclick=”return Paginate(‘.$i.’);”>’.$i.'</a>’;
where $i is in a loop.
This is the Paginate function
function Paginate(p)
{
//alert(“valu ” + document.getElementById(‘formSearch’).current_page.value);
var frm = document.getElementById(“formSearch”);
var btnSubmit = document.getElementById(“btnSearch”);
frm.current_page.value=p;
//document.formSearch.submit();
frm.submit();
}
My form is declared as:
<form action=”main.php” method=”post” id=”formSearch” name=”formSearch”>
And the submit button is declared as:
<input name=”btnSearch” type=”submit” id=”btnSearch” value=”Search”>
(just one submit button).
Now in FF, it works fine. In IE, it seems to call the Paginate function since I can see the popup window (the alert call in the function)…but the form wont submit.
Funny thing is.. you click the page number.. form won’t submit immediately.. but you click on another link or the submit button yourself, and it will suddeny show the refreshed page with the new page number.
someone please help with this IE wackkiness ?
thanks guys