function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
saimadhusaimadhu 

how to refresh /reload the page

My page has a search box . when i enter the groupname it displays related records underneath the search box and if i click  any record it pulls options and menus for that record.

if i want to search for another groupname ,it is still displaty the entire page with prevoius records. i want to refresh the page when i search a new item. how can I?

 

here is my code

<script type="text/javascript">
function doSearch() {

var t = setTimeout(function() {
searchServer(document.getElementById("pgName").value);
}, 500);
}
</script>


<apex:actionFunction name="searchServer" action="{!runSearch}" status="status2" rerender="soqlDebug,errors,pbtSearch">
<apex:param name="pgName" value="" />
</apex:actionFunction>

<label for="Product Search" style="color:#666;">Product Group Search</label>
<input name="Product Search" id="pgName" onkeyup="doSearch();"  type="text" style="width:220px;" />

</apex:toolbarGroup>

after this i have two more output panels.