You need to sign in to do that
Don't have an account?
Vivekh88
Onchange event in Visualforce not working
Hi,
i want to fire onchange event without going out of input text box and save the values.
Onchange fucntion works whenever i enter a field value and click somewhere outside and then save.
Is there any other event to make this scenario possible?
My code:
<b style="vertical-align:inherit">New: </b>
<apex:InputField style="height:70px;width:180px;" value="{!a.acc.Updates__c}" rendered="{!disableInput}" id="updatetext">
<apex:actionSupport event="onchange" action="{!handleUpdateChange}" reRender="AccDMLTable">
<apex:param id="updval" name="updval" value="{!a.acc.ID}" assignTo="{!objSelectedStudentId1}"/>
</apex:actionSupport>
</apex:inputField>
Thanks
Vivekh
i want to fire onchange event without going out of input text box and save the values.
Onchange fucntion works whenever i enter a field value and click somewhere outside and then save.
Is there any other event to make this scenario possible?
My code:
<b style="vertical-align:inherit">New: </b>
<apex:InputField style="height:70px;width:180px;" value="{!a.acc.Updates__c}" rendered="{!disableInput}" id="updatetext">
<apex:actionSupport event="onchange" action="{!handleUpdateChange}" reRender="AccDMLTable">
<apex:param id="updval" name="updval" value="{!a.acc.ID}" assignTo="{!objSelectedStudentId1}"/>
</apex:actionSupport>
</apex:inputField>
Thanks
Vivekh
Events supprted for actionsupport are , "onblur", "onchange", "onclick", "ondblclick", "onfocus", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "onselect". On your case only "onchange" and "onmouseout" can be useful. But in case of "onchange" I think it is the behaviour what you are getting right now.
Thanks,
Prosenjit
Its not working
You can wrap the whole code within <apex:actionRegion> that means,
you can use this snippet.
Thanks
Prosenjit
I tried adding <apex:actionRegion> but still facing the same issue.
Thanks
Vivek