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
VeniVeni 

Action support onclick event is not working....please help me..........................

for my project i written one

 

 

 

 <apex:form>
        <apex:outputpanel id="counter">
            <apex:outputText value="Click Me!: {!count}"/>
            <apex:actionSupport event="onclick"
                                action="{!incrementCounter}"
                                rerender="counter" status="counterStatus"/>
        </apex:outputpanel>
        <apex:actionStatus id="counterStatus"/>
  


</apex:form>

 

 

in my controller

 

 

 
Integer count = 0;

public PageReference incrementCounter() {
count++;
return null;
}

public Integer getCount() {
return count;
}
 but its onclick event not working in this page..

 

but i copy this same code,and put in new page its fine..i dont know why this code not run some apexpage

and controller..plzhelp me...

bob_buzzardbob_buzzard

Works fine on my dev environment too.

 

This smacks that there's some problematic javascript elsewhere in the page.  Can you post the whole page?