User Tools

Site Tools


eg-259:lecture5

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
eg-259:lecture5 [2013/02/12 08:24] – [Screen Output: alert] eechriseg-259:lecture5 [2013/02/12 08:24] – [Screen Output: jQuery magic] eechris
Line 570: Line 570:
 It's better than ''document.write'' because as well as outputting string versions of its arguments, it will actually output objects that you can browse. It's better than ''document.write'' because as well as outputting string versions of its arguments, it will actually output objects that you can browse.
 ===== Screen Output: jQuery magic ===== ===== Screen Output: jQuery magic =====
 +  * HTML placeholder
 <code html> <code html>
 <div id="result"> <div id="result">
Line 576: Line 576:
 </code> </code>
  
 +  * Output function
 <code javascript> <code javascript>
 $('#result').append('<p>The html you would have written with <code>document.write()</code></p>'); $('#result').append('<p>The html you would have written with <code>document.write()</code></p>');
eg-259/lecture5.txt · Last modified: 2013/02/12 08:27 by eechris