SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot CDitty's Avatar
    Join Date
    Feb 2000
    Location
    Memphis Tn
    Posts
    162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Dynamically Showing a Table

    Nevermind.

    Chris
    Last edited by CDitty; Dec 30, 2003 at 11:47.

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Most of those functions are using browser-detection, but the variable "browser" is not defined in the code you've posted. Also, you'll need CSS such as the following:
    Code:
    #showsDiv {
      position:absolute;
      overflow:hidden
      left:100px; top20px;
    }
    You can position it with CSS or use javascript.

    If you'd like to try it using object-detection instead of browser-detection, the following is an excerpt from the X library (if you need to support NN4 then I need to give you one more function).
    Code:
    function xGetElementById(e) {
      if(typeof(e)!='string') return e;
      if(document.getElementById) e=document.getElementById(e);
      else if(document.all) e=document.all[e];
      else if(document.layers) e=xLayer(e);
      else e=null;
      return e;
    }
    function xShow(e) {
      if(!(e=xGetElementById(e))) return;
      if(e.style && xDef(e.style.visibility)) e.style.visibility='visible';
      else if(xDef(e.visibility)) e.visibility='show';
    }
    function xHide(e) {
      if(!(e=xGetElementById(e))) return;
      if(e.style && xDef(e.style.visibility)) e.style.visibility='hidden';
      else if(xDef(e.visibility)) e.visibility='hide';
    }
    function xDef() {
      for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])=='undefined') return false;}
      return true;
    }
    (the X library is licensed LGPL)

  3. #3
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oops! You deleted your question while I was answering!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •