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
Nishad BashaNishad Basha 

without using @Remote Action annotation is it possible to run the code in visualforce page?

please give me some ideas.
Ajay K DubediAjay K Dubedi
Hi
        you can use "Action Function" insted of @Remote action
        Here is the example how you can use it....       
<apex:page controller="Controller">
      <apex:form>
            <apex:actionFunction action="{!createFruitList}" name="generateFruits" reRender="selFruits"/>
            <br/>
            Select the Alphabet:
            <apex:selectList id="selAlphabets" value=" {!SelectedAlphabet}"size="1"onchange="generateFruits()">
               <apex:selectOptions value="{!Alphabets}">
                </apex:selectOptions>
            </apex:selectList>
            <br/> 
            Select the Fruit:
            <apex:selectList id="selFruits" size="1">
                <apex:selectOptions value="{!Fruits}">
                </apex:selectOptions>
            </apex:selectList>           
        </apex:form>
 </apex:page>
If this one helps you please mark it best answer that will helps outher.