CalcBuilder Forum

Enter key

User moon_300 2012-03-06 18:09:30

Hi, I am using version 0.1.1.
I have two option lists in my calculation page.
When "Enter" key is pressed after selecting items from the option lists, we are directed to a results page instead of showing the results of the ajax request on the same page.
The results page is a white page consisting only the calculation results.
Is it possible to have the results shown on the same page instead of being directed to the results page when enter key is pressed from the keyboard.

The "calculate" button works as we wish.
We need the "enter" key to work like clicking "calculate" button.
Please let us know if you can understand why this may happen.

Thank you in advance.

Moonsoft support 2012-03-06 18:49:20


This issue can be solve by doing this:

- Add onsubmit="return false" to form tag (line 295) as follows

This avoid form to get submitted.

- Add some javascript to avoid Enter in fields. You can add this lines inside window.addEvent('load', function().... (line 147) :

$$('#calc_adminForm input').each(function(el) {
el.addEvent('keydown',function(e) {
if (e.key=='enter'){

Hope this helps. Regards,

Moonsoft Team

User moon_300 2012-03-06 19:10:26

Thank you very much

This is really all I expected
Great response time :)
Solved it

Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
List Manager

Build different lists for your site

Buy now!