You need to sign in to do that
Don't have an account?

How can javascript after action complete?
Visualforce page:
Controller
Result : updateCarts had call before action and show alert : 'ABCDEF';
How can javascript after action complete?
<apex:column > <apex:commandLink action="{!deleteItem}" reRender="frmList" oncomplete="updateCarts();"> Remove</apex:commandLink></apex:column>JAVASCRIPT:
<script> function updateCarts(){ var listId = "{!ids}"; alert(listId); } </script>
Controller
public string ids { get; set;} public CartsController() { ids= 'ABCDEF'; } public void deleteItem() { ids='123456'; }
Result : updateCarts had call before action and show alert : 'ABCDEF';
How can javascript after action complete?
See if it fetches any kind of help to you.
With Regards,
Protar https://dltutuapp.com/tutuapp-download/ https://showbox.run/ https://kodi.software/