L8: Dynamic Web Pages: Effective Use of AJAX Flashcards

1
Q

What is AJAX?

A

Asynchronous JavaScript & XML.

Remote scripting. An approach for making server requests without reloading the whole page.

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

What does AJAX rely on?

A
  • Server request browser function (XMLHttpRequest) –> Request to the server for more data.
  • Uses document object model (DOM) scripting to make changes to the current page.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

AJAX =

A

DHTML + XMLHTTPrequest

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

DHTML is a tecnique using:

A
  • XHTML
  • CSS
  • JavaScript
  • DOM
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Ajax relies on DHTML and what other web technology?

A

XMLHttpRequest

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

without implementing AJAX:

A
  • Request is for a url

* Anything that is returned must be a complete page with appropriate headers.

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

with the implementation of AJAX:

A
  • Client-side scripts use XMLHttpRequest to make a request for data.
  • The data does not have to be XML
  • Request can complete at anytime but user is not left waiting for a new page updates achieved through the DOM.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

​The main advantages of Ajax:

A
  • It’s faster to load a certain section of a webpage than returning a whole page.
  • Data-oriented requests mean greater code reuse - especially on the server side.
  • Overall approach can be more like a desktop application.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The disadvantages of Ajax:

A
  • The asynchronous data requests rely on technology that can vary from browser to browser.
  • Different code needed on different browsers
  • Requests may not complete in a timely fashion (or not at all)
  • Pages laden with code take longer to load
  • Network overheads may make short transfers slow in proportion
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

AJAX: Installation

A

Plug-in or installation required

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

AJAX: Speedy Start

A

How quickly users can start to interact

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

AJAX: Granularity

A

The smallest unit of data updates

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

AJAX: Portability

A

Portability across platforms

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

AJAX: Maintenance

A

Difficulty of making and distributing changes

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

AJAX: Sophistication

A

Richness of the user experience

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

UML

A

(Unified Modeling Language) is a standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems.

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

Gran·u·lar·i·ty

A

the scale or level of detail present in a set of data or other phenomenon.

18
Q

AJAX can prevent ____________________.

A

unnecessary page reloads.

19
Q

How does Ajax reduce the effects of change blindness?

A

Eliminates page reloads and reduces load times.

20
Q

Ajax can prevent unnecessary page reloads but error messages and other feedback still need to be obvious. What are some ways to achieve that?

A
  • Use color and animation appropriately

* Consider the position of feedback

21
Q

Updating pages without reloading is only effective if…

A
  • users are looking in the right place or

* the change attracts attention by being large, colorful or animated.

22
Q

Inattention blindness- even large changes may not be seen if..

A
  • The task is demanding

* Users are stressed or fatigued

23
Q

Change blindness- changes will not be noticed, especially if…

A
  • a page reload is involved

* Users are distracted

24
Q

Attentional gambling - users will not attend to content or navigation if..

A
  • If it isn’t where they expected it to be

* If they are distracted

25
Q

What are some perceptual issues in web design?

A
  • Inattention Blindness
  • Change Blindness
  • Attentional (Gambling) Blindness
26
Q

What is change blindness?

A

We cannot see the differences between two images when they are separated by a blank field.

27
Q

Reloading the whole page runs the risk of…

A

change blindness

28
Q

Every page element is represented in the…

A

Document Object Model

29
Q

How does scripted enhancements work in practice?

A
  1. Every page element is represented in the DOM
  2. Each can have a unique ID and a class name (provided through tags)
  3. Scripts can access elements by ID, class or by “walking the model”.
30
Q

What is the focus in Graceful Degradation?

A

Failing Safe aka Fault Tolerance

31
Q

How do you preserve expected navigation behavior?

A
  • Ensure that browser back and forward buttons still do what users expect
  • Do not navigate back and forward buttons to a separate section of the page. Go back in the user’s journey history.
32
Q

What assistive technology do disabled users rely on to use the web?

A
  • Screen readers
  • Magnifiers
  • Braille output devices
  • Alternative pointing devices
  • Speech recognition
33
Q

Web solutions must work in harmony with _____ ______.

A

Assistive technology

34
Q

WAI

A

Web Application Interface

35
Q

The only technology that is guaranteed to work with search engines is ______.

A

HTML

36
Q

To work with search engines, start with a working HTML page and use ______ ______ to add interactivity.

A

progressive enhancement.

Google now claims to index dynamic pages(but results vary).

37
Q

ARIA

A

Accessible Rich Internet Applications

38
Q

T or F: Most accessibility aides do understand JS, but dynamic updates still rely on upcoming technology(ARIA).

A

True

39
Q

What does ARIA provide?

A

Identification of page elements (with roles and landmarks) and a mechanism for notifying browsers of dynamic updates (live regions).

40
Q

How does Ajax reduce the effects of change blindness?

A

Eliminates page reloads

41
Q

What is ARIA in web technology?

A

An accessibility standard