more ramblings of a retired teacher
commenting (maybe ranting) on education - even my own
Categories:

Archives:
Meta:
November 2017
M T W T F S S
« Mar    
 12345
6789101112
13141516171819
20212223242526
27282930  
07/21/13
Click Testing - Day 2
Filed under: P2PU, coding/programming
Posted by: Algot @ 6:26 pm

Yesterday there were small JavaScript steps with popup alerts. See yesterday’s steps at Clicktests. To check out today’s steps, you go to the same place and look at Update text in place.

Today, the click tests go beyond alerts. Instead of popping up alerts with the score, the technique involves the use of the Document Object Model (DOM) and “innerHTML” which allows a bit of text to be replaced after the page has already loaded.

This makes the page change only the part that shows a score, a much nicer result than that intrusive alert box which needs to be cleared away by tapping the Enter key.

Small steps. Some of you are saying I’m too slow. Maybe you should remember I’m starting this at age 67.

The fifth version is still simple, but looks cool, if you ask me. In fact, I give it a score of 10.

These small steps are only possible because of resources from Web searches.


http://www.w3schools.com/css/css_positioning.asp

Also looked at several links about replacing text with this key element:

document.getElementById('foo').innerHTML = \"text you want\";

Leave a Reply