PHP Classes

File: scriptprogress.js

Recommend this page to a friend!
  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: 12 years ago
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);
}