+ Start a Discussion
Darshit Pathak 3Darshit Pathak 3 

How to Pass input value from VF page to controller without Submitting the form?

Consider the below code:
Page :
<apex:form >
      <table>
          <tr>
              <td>
                  Description: &nbsp;&nbsp;
              </td>
              <td>
                  <apex:inputTextarea value="{!dsc}" >
                      <apex:actionSupport reRender="searchResultPanel" event="onKeyUp"/>
                  </apex:inputTextarea>
              </td>
          </tr>
      </table>
<div>
          <apex:outputPanel id="searchResultPanel">
          {!dsc}
</apex:outputPanel>
      </div>

</apex:form>
</apex:page>

Controller :
public with sharing class BotPageController {
    public String dsc { get; set; }
    public BotPageController() {
        
    }


I want that whenever input is given in the textArea , it should be reflected on outputPanel in real time. without any submit button.
How to achieve this?
Basically I want the String to be stored in the controller variable as soon as it is changed on the page.
Sampath SuranjiSampath Suranji
Hi,
Since javascript (here the event name )are case sensitive, change the event as,
event="onkeyup"

regards
Sampath