callable is null, when calling a function. #2203
-
Hi everyone, I'm using a JS 👎 carousel to display some image. document.querySelector('#NextSlide').onclick = function () {
slider.goTo('next');
}; So far no problem. Now I'm modifying it the all content of the full carousel and that require me the re-associate / bind the button with the action. Of course I rather prefer to do it with Brython ! ❤️ I've tried those both document['NextSlide'].bind('click', window.slider.goTo('next');) and def Trying(ev):
window.slider.goTo('next')
document['NextSlide'].bind('click', Trying ) But I get in the browser console
Any ideas ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Never mind, I've found the problem. in the JS library the window.TheSilderOBJ.rebuild() but window.TheSilderOBJ = window.TheSilderOBJ.rebuild() Cheers |
Beta Was this translation helpful? Give feedback.
Never mind, I've found the problem.
in the JS library the
.rebuild()
function was misleading...and should not be use like this
but
Cheers