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
mridu86mridu86 

Action function on page load

Hi,

 

I want to do a rerendering on one picklist called Change on the page load(for decreasing & increasing the width).The rerendering is done by apex:actionfunction .Its working fine.But there is one lag,after pageload it will take 2 or 3 sec and then the change drop down will come proper(width normal).I did like  this

<apex:form id="pageForm">
<!-- *>************* Action Functions *************** --> 

 

*<apex:actionfunction name="onload" rerender="alertstabPanel,theTabPanel,DNDataPanelId,PCNDataPanelId,RICDataPanelId,dat

ePickerPanel" /> 

 

How to call this on page load

 

 

Any idea..


Abhay AroraAbhay Arora

just do it like

 

<script>

onload();

</script>

 

in top of your page and it will work.

 

Please mark it as solved if above is what you need