[ create a new paste ] login | about

Link: http://codepad.org/jtklB6Dc    [ raw code | fork ]

PHP, pasted on Jul 29:
<apex:page controller="AJTCC">
<apex:pageMessages id="rrrz" />
    <script>
        function winnnalert()
        {
           actionfunnc();
    
            
///>>>>>>> alert('Great success!'); //<<<< THIS PART IS THE PROBLEM, PLEASE LOOK.

        }
    </script>

    <apex:form >
    <apex:pageBlock >

        <apex:actionFunction name="actionfunnc" action="{!kaalert}" rerender="rrrz"/>
        <apex:pageblockButtons >
            <apex:commandButton value="Click me!" onclick="winnnalert()"/>    
        </apex:pageblockButtons>
    </apex:pageBlock>
    </apex:form>
</apex:page>


Create a new paste based on this one


Comments: