I’m trying to build an “app” with purely client-side interactions, but I’m having trouble linking a Button to a CustomJS action. When I click the button, it causes a refresh of the page, and my CustomJS is never triggered (I’ve checked with simple console.log statements). My code basically looks like this:
Basically I’m using text inputs to make a form, but I only want to trigger an action when the user clicks the button. btn_callback is a CustomJS. I’ve used this kind of hacky form submission with multiple text inputs successfully with sliders, but for some reason can’t get the Button to trigger the CustomJS (and not do a page reload).
I’m trying to build an “app” with purely client-side interactions, but I’m having trouble linking a Button to a CustomJS action. When I click the button, it causes a refresh of the page, and my CustomJS is never triggered (I’ve checked with simple console.log statements). My code basically looks like this:
Basically I’m using text inputs to make a form, but I only want to trigger an action when the user clicks the button. btn_callback is a CustomJS. I’ve used this kind of hacky form submission with multiple text inputs successfully with sliders, but for some reason can’t get the Button to trigger the CustomJS (and not do a page reload).
Any suggestion?
Michelangelo
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
I’m trying to build an “app” with purely client-side interactions, but I’m having trouble linking a Button to a CustomJS action. When I click the button, it causes a refresh of the page, and my CustomJS is never triggered (I’ve checked with simple console.log statements). My code basically looks like this:
Basically I’m using text inputs to make a form, but I only want to trigger an action when the user clicks the button. btn_callback is a CustomJS. I’ve used this kind of hacky form submission with multiple text inputs successfully with sliders, but for some reason can’t get the Button to trigger the CustomJS (and not do a page reload).
Any suggestion?
Michelangelo
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].