Jump to main content
URZ Workshop „Creating websites with TUCAL“
JavaScript
URZ Workshop „Creating websites with TUCAL“ 

JavaScript

General

  • JavaScript or JQuery can be used to program dynamic effects on web pages easily and across browsers or to make web applications more comfortable
  • Our websites already contain jQuery
    All functions of this JavaScript library can be used
  • Additional JavaScript code should always be integrated via a separate file (do not use inline code!) – integration is done via variable $javascript in the page header
    • $javascript[] = 'example/code.js'
  • Typical application scenarios include:
    • dynamic manipulation of web pages
    • plausibility check (data validation) of form input before submission
    • Display of dialog boxes and pop-ups
    • Sending and receiving data without reloading the page in the browser (Ajax)
    • Suggestion of search terms during input
  • The possibilities of JavaScript or JQuery are very manifold, therefore use:

Example of use: Survey

Would you like to dive into JavaScript programming in more detail?

 


Source code for this example

To implement this survey, HTML and JQuery are used:

  • HTML Code
  • JavaScript Code

Example of use: Checklist „Does a study program fit me?“

Interest and Motivation

Completely true Somewhat true Somewhat untrue Not true at all
Am I interested in a particular field and eager to learn more about it?
Can I stay engaged with a topic and work on it independently for an extended period of time?
Am I willing to study regularly and persevere even when things get difficult?

Learning and Working Style

Completely true Somewhat true Somewhat untrue Not true at all
Can I organize my studies and learning independently?
Do I enjoy reading and understanding longer texts or academic literature?
Can I concentrate on a task even when it takes a long time to complete?

Everyday Life and Future Plans

Completely true Somewhat true Somewhat untrue Not true at all
Can I imagine investing several years in education and learning?
Does studying fit with my career plans and goals?

The evaluation occurs only within the current browser session and is not saved or shared with third parties.


Source Code for this Example

To implement such a checklist, HTML and JQuery are used:

  • HTML Code
  • JavaScript Code