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: 8 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);
}


For more information send a message to info at phpclasses dot org.