Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
en:create:javascript [13.02.2018 09:17] – Update admin | en:create:javascript [19.03.2021 09:40] – [Inserting JavaScript] sophia.schauer |
---|
===== Inserting JavaScript ===== | ===== Inserting JavaScript ===== |
| |
Create a new text element in **Text Elements and Labels** in order to use JavaScript on a page in the questionnaire. This element will contain HTML code and the actual JavaScript code between the ''<script>'' tags within this. | In order to use JavaScript on a page of the questionnaire, one puts |
| * either in a section with **Add text** |
| * or under **Text Elements and Labels** |
| you create a new text element. Select the //Formating// "HTML code" for the text. |
| |
<code javascript> | <code javascript> |
| |
| |
===== Fehler finden ===== | ===== Troubleshooting ===== |
| |
If the JavaScript code does not work as it should, there is the browser's error console for debugging. These can be found -- depending on the browser -- in different places ([[http://webmasters.stackexchange.com/a/77337/30902|Stackexchange: Shortcuts]], [[https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors#Step_3:_Diagnosis|Wordpress: Diagnosis]], [[http://www.stramaxon.com/2013/10/developer-tools-in-browser.html|How to Open Developer Tools]]). | If the JavaScript code does not work as it should, there is the browser's error console for debugging. These can be found -- depending on the browser -- in different places ([[http://webmasters.stackexchange.com/a/77337/30902|Stackexchange: Shortcuts]], [[https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors#Step_3:_Diagnosis|Wordpress: Diagnosis]], [[http://www.stramaxon.com/2013/10/developer-tools-in-browser.html|How to Open Developer Tools]]). |