Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
en:create:javascript [07.01.2015 21:08] – [Learn JavaScript] alexander.ritteren:create:javascript [07.01.2015 21:10] – [Inserting JavaScript] alexander.ritter
Line 34: Line 34:
 In **Compose Questionnaire**, the text element is dragged & dropped onto one, or multiple pages, in the questionnaire, or the PHP function ''[[:en:create:functions:text|text()]]'' can also be used. In **Compose Questionnaire**, the text element is dragged & dropped onto one, or multiple pages, in the questionnaire, or the PHP function ''[[:en:create:functions:text|text()]]'' can also be used.
  
-**Note:** JavaScript can only access HTML elements (e.g. questions) that have already been loaded in the HTML page. Therefore, it makes sense to put JavaScript at the end of the page.  +**Note:** JavaScript can only access HTML elements (e.g. questions) that have already been loaded in the HTML page. It therefore makes sense to put JavaScript at the end of the page.  
  
 **Tip:** In principle, HTML/JavaScript code can also be inserted directly into an HTML element of the questionnaire page. However, text elements offer several advantages, which is why inserting the code directly is not recommended. **Tip:** In principle, HTML/JavaScript code can also be inserted directly into an HTML element of the questionnaire page. However, text elements offer several advantages, which is why inserting the code directly is not recommended.
en/create/javascript.txt · Last modified: 12.06.2022 14:00 by christina.treppy
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki