Forum
Calc Builder Support
Calc Builder supportForums
No se permite escribir sin estar logado. Por favor, login
Re: Native support for joomla jquery in Mod Calcbuilder 08.05.2018 09:35
Hello,
some versions ago we added a set of switches at 'preferences' tab, in order to choose if the module imports jquery framework, bootstrap framework. etc. This switch allows you to use the jquery library already present at your page, and also ensure you'll always have a working version of the library in case your template loads an incompatible version at any time (without having to upgrade/buy our extension again). Even with the switch enabled, importing jquery library is always done using an specific alias for calcbuilder (CB) , so using this instance won't cause any side effect.
Regards
Moonsoft Team
www.moonsoft.es
some versions ago we added a set of switches at 'preferences' tab, in order to choose if the module imports jquery framework, bootstrap framework. etc. This switch allows you to use the jquery library already present at your page, and also ensure you'll always have a working version of the library in case your template loads an incompatible version at any time (without having to upgrade/buy our extension again). Even with the switch enabled, importing jquery library is always done using an specific alias for calcbuilder (CB) , so using this instance won't cause any side effect.
Regards
Moonsoft Team
www.moonsoft.es
Re: Native support for joomla jquery in Mod Calcbuilder 07.09.2018 15:20
We noticed a small problem in the mod calcbuilder template file regarding the line 66
$document->addScript ( JRoute::_ ( $scriptbase . 'jquery-ui-1.10.3.custom.min.js' ) );
This line should be moved outside of the if statement and set line 77 for instance to avoid a js error on pages where the module is displayed and native jquery is provided by the template.
Seems like the file jquery-ui-1.10.3.custom.min.js is not provided by templates and then if we choose not to import bootstrap and jquery this fails.
Can you confirm ?
We use helix ultimate and sppagebuilder pro
Regards
Jean
$document->addScript ( JRoute::_ ( $scriptbase . 'jquery-ui-1.10.3.custom.min.js' ) );
This line should be moved outside of the if statement and set line 77 for instance to avoid a js error on pages where the module is displayed and native jquery is provided by the template.
Seems like the file jquery-ui-1.10.3.custom.min.js is not provided by templates and then if we choose not to import bootstrap and jquery this fails.
Can you confirm ?
We use helix ultimate and sppagebuilder pro
Regards
Jean
Re: Native support for joomla jquery in Mod Calcbuilder 10.09.2018 10:05
Hi,
With Calc Builder you can choose to import Jquery or not, if you choose to import the component works with no error, but if you choose not to use Jquery, obviously you should provide it in any other way, mostly the template. jQuery and jQueryUI versions are linked, so one jQueryUI version works with some jQuery versions and not with others, so if decide not to use jQuery from Calc Builder, you should provide both(and compatible) jQuery and jQueryUI. Anyway you can choose to include jQuery from Calc Builder as it won't conflict with the one from your template.
About templates, there are more than 10000 templates for Joomla, so we can't confirm if in your specific case you should change the line as you did or there is any other better solution (it should be ok if now it works for you). Only we can give you the reason why jQuery and jQueryUI are linked and why should be added together.
Regards,
Moonsoft Team
www.moonsoft.es
With Calc Builder you can choose to import Jquery or not, if you choose to import the component works with no error, but if you choose not to use Jquery, obviously you should provide it in any other way, mostly the template. jQuery and jQueryUI versions are linked, so one jQueryUI version works with some jQuery versions and not with others, so if decide not to use jQuery from Calc Builder, you should provide both(and compatible) jQuery and jQueryUI. Anyway you can choose to include jQuery from Calc Builder as it won't conflict with the one from your template.
About templates, there are more than 10000 templates for Joomla, so we can't confirm if in your specific case you should change the line as you did or there is any other better solution (it should be ok if now it works for you). Only we can give you the reason why jQuery and jQueryUI are linked and why should be added together.
Regards,
Moonsoft Team
www.moonsoft.es