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:24] – [Screen Output: alert] eechriseg-259:lecture5 [2013/02/12 08:27] (current) – [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">
 </div> </div>
 </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>');
 </code> </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.1360657456.txt.gz · Last modified: 2013/02/12 08:24 by eechris