You need to sign in to do that
Don't have an account?
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.