Run a function on page load using SmartClient -
when page loads, want hide buttons based on user permissions.
i have function need, have press button call it.
how run applyuserpermissions
function right after page loads using smartclient?
function applyuserpermissions(){ btn.setdisabled(false); }
same in plain javascript
the statements executed, 1 one, in same order written.
so this:
<script> function applyuserpermissions(){ btn.setdisabled(false); } // calls on page load applyuserpermissions(); </script>
Comments
Post a Comment