Pramod Jain wrote:
Just want to add that one needs to be vigilant here when hiding the button. Pramod has given the correct way to do this.
The wrong way: Setting the Display property to False will also hide the button, but make it unclickable from Javascript as the button is not actually rendered on the page.
hi Pradiv!
Given: JavaScript and Server Action:
SyntaxEditor Code Snippet
setInterval(mytime,15000);
Find: JavaScript to call that Server Action:
Cookbook:
1. Drag a button (CallMe) and set its Extended Property to:
2. Put the server action in the Destination propert: CallMe
3. Call the server action from Javascript (i simulate by clicking the OK Button):
and the javascript:
4. Try It!
NB. return false makes the server action of the OK button is NOT called.
regards,
bb
This should work .