salesforce - Using two actions on a single checkbox event -
i having problems while trying render pageblocksection in visualforce. code have used given below.
<apex:pageblocksection title="my content section" columns="2"> <apex:pageblocksectionitem> <apex:outputlabel value="account site"/> <apex:outputpanel> <apex:inputtext value="{!account.site}" id="account__site" onclick="changefont(this)"> <apex:actionsupport event="onclick" rerender="thepageblock" status="status"/> </apex:outputpanel> </apex:pageblocksectionitem> </apex:pageblocksection>
here trying render page block , javascript function @ same time, i,e checking of checkbox(account site). problem here when try execute changefont(this) function in onclick of apex:inputtext , try render "thepageblock" in event="onclick" of apex:actionsupport rendering not take place. there problem code or should different way.
thanks..
try calling javascript function onsubmit
or oncomplete
attribute of apex:actionsupport
tag:
<apex:inputtext value="{!account.site}" id="account__site" > <apex:actionsupport event="onclick" rerender="thepageblock" status="status" onsubmit="changefont(this)" /> </apex:inputtext>
Comments
Post a Comment