Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:create:javascript [07.01.2015 21:02] – [JavaScript in the Questionnaire] 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.
Line 52: Line 52:
 ===== Learn JavaScript ===== ===== Learn JavaScript =====
  
-There are numerous good introductions to JavaScript on the internet. However, basic programming knowledge is needed beforehand.+There are a number of good introductions to JavaScript on the internet. However, basic programming knowledge is needed beforehand.
  
-A compact introduction with an extensive compendium can be found in [[http://de.selfhtml.org/javascript/index.htm|SelfHTML]] (German only).+[[http://de.selfhtml.org/javascript/index.htm|SelfHTML]] is a website that combines a solid introduction with an extensive compendium [[http://de.selfhtml.org/javascript/index.htm|SelfHTML]] (German only).
  
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