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
Alfredo OrnelasAlfredo Ornelas 

Button style Calculator

Can you give me an idea how to create a button style calculator in visualforce? simple math: + , - , / , * , =
AshwaniAshwani
If you have idea about creating calculator in .net or jsp then it is similar to it. Insted of ajas here you need to use <apex:commandbutton> for calculation logic and <apex:input> for input.
Alfredo OrnelasAlfredo Ornelas
OK, thank you!
James LoghryJames Loghry
If you want to make it pretty, then most likely the better route is to search for a javascript calculator.  There are plenty of examples out there, utilizing jquery or other frameworks.  Here is one example: http://therockncoder.blogspot.com/2012/05/jquery-mobile-calculator.html The trick would be to retrieve the value into your controller, though.
Alfredo OrnelasAlfredo Ornelas
Thanks James!