skip to main | skip to sidebar

21st Century Mandarin

Mainly about the process of programming as both work and study, starting from the ground up.

Sunday, January 30, 2011

Sunday, 1/30/11

Spent entirely too long on this:



function generate(){
var data = document.getElementById('inputText').value;
append(data);
}
function append(data){
var newP = document.createElement("p");
var mytext = document.createTextNode(data);
newP.appendChild(mytext)
document.getElementById("mydiv").appendChild(newP);
}
Posted by aljensen at 7:32 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

Pages

  • Home
  • Projects

Blog Archive

  • ►  2012 (2)
    • ►  January (2)
  • ▼  2011 (165)
    • ►  December (17)
    • ►  November (18)
    • ►  October (17)
    • ►  September (19)
    • ►  August (20)
    • ►  July (11)
    • ►  June (8)
    • ►  May (3)
    • ►  April (7)
    • ►  March (11)
    • ►  February (13)
    • ▼  January (21)
      • Monday 1/31/2011
      • Sunday, 1/30/11
      • Monday 1/28/2011
      • <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" ...
      • <html> <head> <title>A Simple Page </title> ...
      • Sunday 1/23/11
      • Friday 1/21/11
      • Thursday, January 20th 2011
      • Tuesday, January 18th
      • Here is code from Tim Patrick's library program th...
      • Sunday 1/16/11
      • Friday 1/14/11
      • Thursday, 1/13/11
      • Thursday, 1/13/11
      • Tuesday 1/11/10
      • Monday 1/10/11
      • I have no idea how I managed to write this thing a...
      • Wednesday, 1/05/11
      • Tueday 1/04/11
      • Monday 1/03/11
      • Sunday 1/02/2011
  • ►  2010 (84)
    • ►  December (20)
    • ►  November (17)
    • ►  October (15)
    • ►  September (16)
    • ►  August (13)
    • ►  July (3)

About Me

My photo
aljensen
View my complete profile