Re: XBL Companion Javascript, Multiple Custom Function Triggers
Posted by
Joel Oates on
URL: https://discuss.orbeon.com/XBL-Companion-Javascript-Multiple-Custom-Function-Triggers-tp4664683p4664687.html
I have found a way around this, by using event listeners inside the javascript.
Code for my event listeners that attach the onPrevPage and onNextPage functions to the buttons with the class
prev and
next.
init: function() {
var xblContext = this;
$(xblContext.container).find('.prev')[0].addEventListener('click', xblContext.onPrevPage.bind(xblContext));
$(xblContext.container).find('.next')[0].addEventListener('click', xblContext.onNextPage.bind(xblContext));
},
Sent from the
Orbeon Forms community mailing list mailing list archive at Nabble.com.
--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
To view this discussion on the web visit
https://groups.google.com/d/msgid/orbeon/1568100875157-0.post%40n4.nabble.com.