Client-/Server-side AND the DOM Flashcards

1
Q

Define a web application

A

A web application is a dynamic web site with a functionality similar to desktop software

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Frontend VS Backend

A

Frontend -> Client side

Backend -> Server side

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Client VS Server Side Web Applications

A

client-side -> uses client side languages, code is executed on client side

server-side -> server side languages, code executed on server side.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Server Side Execution

A
  • Code is private (on the server)
  • Can enforce specific versions of the scripting language
  • Can use non standard language elements
  • Can access server-side resources
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Client Side Execution

A
  • Code is public, code is sent with a GET request
  • Can be changed by the user
  • Has to be compatible with different browsers
  • Lowers the execution load on the server
  • More network traffic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The Document Object Model (DOM) -what is it?

A

The DOM is an Object tree of HTML tags + an API to manipulate it
–The way for scripting languages to access the web site.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

JS modifying the DOM

A

document. getElementById(“header1”).textContent = “New”;
document. getElementById(“myPic”).src = “cat.jpg”;
document. getElementById(“header1”).style.color = “blue”;
element. removeChild(element.firstChild);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When should DOM modification happen?

A

HTML events e.g.

GO!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly