We are currently investigating the changes to the Weebly system as part of the Carbon update. With the help of our members we have identified a few minor bugs and are working on fixing them. If you do spot any issues, please do inform us and we will attend to them.
If you would like to dive into the code, please be aware of the following issues with the Weebly framework:
Access JQuery
// closure
(function($) {
$('#foo').doThatThing();
)(jQuery);
and
Access JQuery (cont.)
// dom:ready
jQuery(function($) {
$('#foo').doThatThing();
});
If you would like to dive into the code, please be aware of the following issues with the Weebly framework:
- Using $ to access JQuery
Weebly uses the Prototype JavaScript framework, which also uses $. Using $ to access JQuery will not work.
If you need to use JQuery, Weebly recommends
Access JQuery
// closure
(function($) {
$('#foo').doThatThing();
)(jQuery);
and
Access JQuery (cont.)
// dom:ready
jQuery(function($) {
$('#foo').doThatThing();
});
- Display in the editor
Javascript may not work as you expect in the editor. This is because the site's markup will not be present when the DOM ready event fires.