I am using an action function to rerender an output panel in my visualforce page after i fetch some data from the controller, and then i manipulate it with some javascript (also inside the same output panel). This works fine in my sandbox environment but for some reason in the production environment the ouput panel does render so i know my apex function passed with no problem but the javascript in that output panel doesn't run (i tried alert, debugger, and console logs and nothing shows).

here is the visualforce page section:

<apex:form >
    <apex:actionFunction name="doInit" action="{!initEndingPage}" rerender="allPanel"/>
    <apex:outputPanel id="allPanel">
        <apex:outputPanel rendered="{!NOT(endPageInit)}">
            <script type="text/javascript">
            window.onload=function() {
        <apex:outputPanel rendered="{!endPageInit}">
                my javascript code

any ideas?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.