Find your content:

Search form

You are here

reRender outputPanel from javascript function in visualforce

 
Share

I want to reRender "TopPanel" from javascript, is there any way to do this in visualforce ?

<apex:outputPanel id="TopPanel">
<apex:outputPanel>

<script type="text/javascript">
function CreateTabs()
{
    //rerenderCode for TopPanel
}
</script>

Attribution to: Prafulla Patil

Possible Suggestion/Solution #1

This is what an actionFunction is for

<apex:actionFunction name="rerenderTopPanel" rerender="TopPanel" />
<apex:outputPanel id="TopPanel">
</apex:outputPanel>

<script type="text/javascript">
    function createTabs() {
        rerenderTopPanel();
    }
</script>

Attribution to: Phil Rymek
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/4461

My Block Status

My Block Content