Question about Ajax and custom buttons

Can you please provide a simple sample how to do this in Suite?