2 respuestas
Hi Chandra, please follow below steps:-A component that provides support for invoking controller action methods directly from JavaScript code using an AJAX request. An component must be a child of an component. <apex:commandButton value="Search" onclick="check();" reRender="nPbt" />
function check(){
var user = document.getElementById('pg:frm:nPB:ip').value;
if(user == ''){
alert('Please Enter noise Name before Proceeding.');
return true;
}
else
noiseSearchAF();
return true;
}
if you need any assistanse, Please let me know!!<apex:actionFunction action="{!noiseSearch}" name="noiseSearchAF" rerender="nPbt">
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh