UQI135HM Dynamic HTML and Java. Dynamic HTML – 2 aspects Interaction with user (could be forms or...
-
Upload
marcus-baker -
Category
Documents
-
view
221 -
download
0
Transcript of UQI135HM Dynamic HTML and Java. Dynamic HTML – 2 aspects Interaction with user (could be forms or...
![Page 1: UQI135HM Dynamic HTML and Java. Dynamic HTML – 2 aspects Interaction with user (could be forms or Javascript) Setting object properties dynamically (eg.](https://reader036.fdocuments.us/reader036/viewer/2022082820/56649f4a5503460f94c6be11/html5/thumbnails/1.jpg)
UQI135HM
Dynamic HTML and Java
![Page 2: UQI135HM Dynamic HTML and Java. Dynamic HTML – 2 aspects Interaction with user (could be forms or Javascript) Setting object properties dynamically (eg.](https://reader036.fdocuments.us/reader036/viewer/2022082820/56649f4a5503460f94c6be11/html5/thumbnails/2.jpg)
Dynamic HTML – 2 aspects
•Interaction with user (could be forms or Javascript)
•Setting object properties dynamically (eg stylesheets)
![Page 3: UQI135HM Dynamic HTML and Java. Dynamic HTML – 2 aspects Interaction with user (could be forms or Javascript) Setting object properties dynamically (eg.](https://reader036.fdocuments.us/reader036/viewer/2022082820/56649f4a5503460f94c6be11/html5/thumbnails/3.jpg)
Dynamic HTML (1)
•The essential aspect of Dynamic HTML is that the user is involved in providing input - usually via a form.
•The input is associated with variables - which should have a meaningful name (for example, v_shoes, v_coat).
•The variables are processed, usually by a set of JavaScript functions.
•Output is then made to the user - either by setting the values of fields in the table, or (as in the case of the example provided), by setting up a new window.
![Page 4: UQI135HM Dynamic HTML and Java. Dynamic HTML – 2 aspects Interaction with user (could be forms or Javascript) Setting object properties dynamically (eg.](https://reader036.fdocuments.us/reader036/viewer/2022082820/56649f4a5503460f94c6be11/html5/thumbnails/4.jpg)
Dynamic HTML
example
![Page 5: UQI135HM Dynamic HTML and Java. Dynamic HTML – 2 aspects Interaction with user (could be forms or Javascript) Setting object properties dynamically (eg.](https://reader036.fdocuments.us/reader036/viewer/2022082820/56649f4a5503460f94c6be11/html5/thumbnails/5.jpg)
Dynamic HTML (2) – stylesheets etc.
• Example 1 – simple use of Javascript• Example 2 – changing the content• Example 3 – adding content• Example 4 – inline • Example 5 – Using a stylesheet• Example 6 – animating a graphic• Example 7 – more complex Javascript
![Page 6: UQI135HM Dynamic HTML and Java. Dynamic HTML – 2 aspects Interaction with user (could be forms or Javascript) Setting object properties dynamically (eg.](https://reader036.fdocuments.us/reader036/viewer/2022082820/56649f4a5503460f94c6be11/html5/thumbnails/6.jpg)
Java
• Java code is compiled to a .class file in an intermediate code (bytecode)
• This is downloaded and run on the browser by using the Java Runtime Environment (JRE) as a helper.
• Here’s an example• A useful site: www.javaboutique.com