September 2013
Intermediate to advanced
548 pages
12h 25m
English
The following image shows the clock running in a browser. All the irrelevant details of the browser window, such as the menus, toolbars, and scrollbars, are not shown so that we can concentrate on the code.

The essential part of this application is the display. This contains a time, which is updated every second. From the Erlang point of view, the entire browser is a process; so, to update the clock to the value shown earlier, Erlang sent the browser the following message:
| | Browser ! #{ cmd => fill_div, id => clock, txt => <<"16:30:52">> } |
Inside the browser, we have loaded an HTML page with a small fragment of HTML ...
Read now
Unlock full access