The above is working fine.
Actually to get rid of that I had to show results of the next page instead of same page but would require to find a solution.
posted 6 years ago
Is my below understanding correct?
Since I need to fetch data from server (My menu item leads to a search where based on keyword it fetches form Database), so it is always better in this case to use AJAX and not refresh whole page.(Why to reload whole page for the search?)
Thanks. Suppose there is a Search for keyword where search results would be fetched from the Database? I am new AJAX my understanding is that in this case Search Results should be fetched by an AJAX action. I would go by this approach. Please correct me if I am wrong.