topical media & game development

talk show tell print

professional-web-01-v4-script.js / js



  YAHOO.namespace("buzzWatch");
  YAHOO.namespace("editInPlace");
  
  function init() {
  
      initMenuBar();
      initConfig();
      initPanels();
      initEditInPlace();
      initController();
     
  }
  
  function getMaxAge(oResponse) {
    var cacheControl = oResponse.getResponseHeader['Cache-Control'];
    if (!cacheControl)
      return undefined;
    var result;
    if (result=cacheControl.match(/^.*max-age=(\d+)(;.*)?/))
      return result[1];
    return undefined;
  }
  
  function setValue(element, text) {
    if (typeof element == "string")
      element = document.getElementById(element);
    while (element.firstChild)
      element.removeChild(element.firstChild);
    if (text != undefined)
      element.appendChild(document.createTextNode(text));
  }
  
  YAHOO.util.Event.addListener(window, "load", init);
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.