+ Start a Discussion
LearnerrrLearnerrr 

how to call remote action function on page relode

Raj VakatiRaj Vakati
Try some think like below 
 
<script type="text/javascript">
   
   window.document.onload  =  searchCountry ; 
   
   
var searchCountry =    function searchCountry(acctId, searchString)
    {
        MyController.searchForCountries(acctId, searchString, function(result, event)
        {
            
        },{escape: true});
    }
</script>