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 revision
Previous revision
eg-259:lecture5 [2013/02/12 08:20] – [Console output] eechriseg-259:lecture5 [2013/02/12 08:27] (current) – [Screen Output: jQuery magic] eechris
Line 569: Line 569:
 </code> </code>
 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 =====
 +  * HTML placeholder
 +<code html>
 +<div id="result">
 +</div>
 +</code>
 +  * Output function
 +<code javascript>
 +$('#result').append('<p>The html you would have written with <code>document.write()</code></p>');
 +</code>
 +  * Result
 +<code html>
 +<div id="result">
 +<p>The html you would have written with <code>document.write()</code></p>
 +</div>
 +</code>
 ===== Screen Output: alert ===== ===== Screen Output: alert =====
  
eg-259/lecture5.1360657249.txt.gz · Last modified: 2013/02/12 08:20 by eechris