5. Troubleshooting scripts: Difference between revisions
Jump to navigation
Jump to search
Created page with " '''Problem''' JavaScript is not functioning as intended. As a result, there is no corresponding action when the trigger button for the event is pressed. '''Solution''' #..." |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
'''Problem''' | '''Problem''' | ||
JavaScript is not functioning as intended. | JavaScript is not functioning as intended. No corresponding action happens when the trigger button for the event is pressed. | ||
''' | '''Hints''' | ||
# Open the JavaScript console by pressing | # Open the JavaScript console by pressing Ctrl+Shift+J (Mac:Command+Shift+J) and look for error messages. | ||
# Check for | # Check for syntax errors in your code and ensure that interface functions are written correctly. | ||
# | # Check that predefined hooks and functions like e.g. on_trigger() are written correctly. Syntax highlighting and coloring may help you identify these issues. | ||
# | # When resolving widgets, verify the used widgets address (e.g. "/mxw/render/opacity") and make sure that it is valid. To find the correct address, maybe refer to the list of address suggestions available in the 'Receiver' menu. |
Latest revision as of 18:39, 1 March 2023
Problem
JavaScript is not functioning as intended. No corresponding action happens when the trigger button for the event is pressed.
Hints
- Open the JavaScript console by pressing Ctrl+Shift+J (Mac:Command+Shift+J) and look for error messages.
- Check for syntax errors in your code and ensure that interface functions are written correctly.
- Check that predefined hooks and functions like e.g. on_trigger() are written correctly. Syntax highlighting and coloring may help you identify these issues.
- When resolving widgets, verify the used widgets address (e.g. "/mxw/render/opacity") and make sure that it is valid. To find the correct address, maybe refer to the list of address suggestions available in the 'Receiver' menu.