Login   Register  
PHP Classes
elePHPant
Icontem

File: scriptprogress.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  Script Progress  >  scriptprogress.js  >  Download  
File: scriptprogress.js
Role: Auxiliary script
Content type: text/plain
Description: a very simple notification script
Class: Script Progress
Flush page output to show progress of server task
Author: By
Last change:
Date: 2012-03-17 03:42
Size: 371 bytes
 

Contents

Class file image Download

var $=function(id) {
  return document.getElementById(id);
}

var notify=function(s) {
  if(!$("notify")) {
    var n = document.createElement("dl");
    n.setAttribute("id", "notify");
    document.body.appendChild(n);
  }
  var c = document.createElement("dt");
  var t = document.createTextNode(s);
  c.appendChild(t);
  $("notify").appendChild(c);
}