Calc Builder Support

Calc Builder support
No se permite escribir sin estar logado. Por favor, login

scroll down 05.08.2012 18:04

Is there a way to make the page scroll down after pressing calculate?

Re: scroll down 06.08.2012 09:52


You can try to paste this code into "Javascript Events" section in your calculator:


// Event on Calculate Button
// Go to the end of the page
window.scrollTo(0, document.body.scrollHeight);

This get the calculate event and scroll down the page.

Moonsoft Team

Re: scroll down 12.08.2012 07:22

didn't work, any other suggestions?

Re: scroll down 12.08.2012 12:01

this is the only way we can think of, we have tested it and it places the scroll at the beginning of the result section (which is the bottom of the page at the time you press calculate). Please check you have copied the script as stated before, and look for any javascript error at your page which may be causing the script to fail.

Hope this helps, regards
Moonsoft Team

Re: scroll down 13.08.2012 03:58

Is there a way to scroll it to the end of the result section? I think that would probably do the trick. My result section is pretty long.

Re: scroll down 13.08.2012 10:58

you can't link to the end of a section that is not present on the page, because when you click calculate button, the result has not returned yet. In addition, when showing the results, a reveal effect is played, so it takes a while until is enterely shown. Until that moment, going to the end of the page will lead you to the beginning of the result section.
So, in order to get what you need, you would need to do some more complex coding, changing the core code of the extension. In case you want to give it a try, you should modify the file


changing the function submitAjaxForm to avoid playing effects, and executing the scroll to the end once the result is shown.

If you want us to do a custom version with this change, please place a ticket at helpdesk or send us an email and we'll give you a quote.

Moonsoft Team

Re: scroll down 13.08.2012 20:49

OK I'll send you an email. Thanks
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Lo que nuestros clientes opinan de nosotros