SID-02360: Behaviour JS Questions
| Status: |
Asked |
TWiki version: |
4.1.2 |
Perl version: |
5.16.3 |
| Category: |
CategoryJavaScript |
Server OS: |
CentOS 7 |
Last update: |
7 years ago |
I am developing a plugin on our twiki installation. I don't do it the regular way.
I linked my own
JavaScript file inside the topic where the plugin will be active. The plugin adds a button. The button opens a window. In the window, the person fills in some data and the data is being sent to the server where an appropriate topic update will be made.
My linked
JavaScript uses a flatpickr library - it's a library for calendar picker. When I initialize the flatpickr I get a message in my console saying: "document.getElementsBySelector
http://localhost/twiki/pub/TWiki/BehaviourContrib/behaviour.compressed.js:76:22"
;.
I read the documentation for the behaviour.js and I am not sure if I understand this correctly. Is behaviour.js used to register event handlers to
JavaScript events? Nothing seems to be malfunctioning at the topic page - is it safe to ignore this error message?
--
TWiki Guest - 2018-05-07
Discussion and Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.