Forum
Calc Builder Support
Calc Builder supportForums
Public write access is disabled. Please login
Re: scroll down 06.08.2012 09:52
Hello,
You can try to paste this code into "Javascript Events" section in your calculator:
//DO NOT MODIFY THIS LINE, IS NEEDED TO HANDLE PROPER CALCULATOR INSTANCE
seed=$('cb_layout_wrapper').getParent().getProperty('id').substr(0,$('cb_layout_wrapper').getParent().getProperty('id').indexOf("_"));
// Event on Calculate Button
$(seed+'_calculate').addEvent('click',function(){
// Go to the end of the page
window.scrollTo(0, document.body.scrollHeight);
});
This get the calculate event and scroll down the page.
Regards,
Moonsoft Team
www.moonsoft.es
You can try to paste this code into "Javascript Events" section in your calculator:
//DO NOT MODIFY THIS LINE, IS NEEDED TO HANDLE PROPER CALCULATOR INSTANCE
seed=$('cb_layout_wrapper').getParent().getProperty('id').substr(0,$('cb_layout_wrapper').getParent().getProperty('id').indexOf("_"));
// Event on Calculate Button
$(seed+'_calculate').addEvent('click',function(){
// Go to the end of the page
window.scrollTo(0, document.body.scrollHeight);
});
This get the calculate event and scroll down the page.
Regards,
Moonsoft Team
www.moonsoft.es
Re: scroll down 12.08.2012 12:01
Hello,
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
www.moonsoft.es
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
www.moonsoft.es
Re: scroll down 13.08.2012 10:58
Hello,
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
modules/mod_calcbuilder/tmpl/user.php
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.
Regards
Moonsoft Team
www.moonsoft.es
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
modules/mod_calcbuilder/tmpl/user.php
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.
Regards
Moonsoft Team
www.moonsoft.es