Paste

Posted on
Page
of 6
Prev
/ 6
Last Next
  • var Builder = {
    NODEMAP: {

    AREA: 'map',
    CAPTION: 'table',
    COL: 'table',
    COLGROUP: 'table',
    LEGEND: 'fieldset',
    OPTGROUP: 'select',
    OPTION: 'select',
    PARAM: 'object',
    TBODY: 'table',
    TD: 'table',
    TFOOT: 'table',
    TH: 'table',
    THEAD: 'table',
    TR: 'table'
    

    },
    // note: For Firefox < 1.5, OPTION and OPTGROUP tags are currently broken,
    // due to a Firefox bug
    node: function(elementName) {

    elementName = elementName.toUpperCase();
    
    // try innerHTML approach
    var parentTag = this.NODEMAP[elementName] || 'div';
    var parentElement = document.createElement(parentTag);
    try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707
      parentElement.innerHTML = "<" + elementName + "></" + elementName + ">";
    } catch(e) {}
    var element = parentElement.firstChild || null;
    
    // see if browser added wrapping tags
    if(element && (element.tagName != elementName))
      element = element.getElementsByTagName(elementName)[0];
    
    // fallback to createElement approach
    if(!element) element = document.createElement(elementName);
    
    // abort if nothing could be created
    if(!element) return;
    
    // attributes (or text)
    if(arguments[1])
      if(this._isStringOrNumber(arguments[1]) ||
        (arguments[1] instanceof Array)) {
          this._children(element, arguments[1]);
        } else {
          var attrs = this._attributes(arguments[1]);
          if(attrs.length) {
            try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707
              parentElement.innerHTML = "<" +elementName + " " +
                attrs + "></" + elementName + ">";
            } catch(e) {}
            element = parentElement.firstChild || null;
            // workaround firefox 1.0.X bug
            if(!element) {
              element = document.createElement(elementName);
              for(attr in arguments[1]) 
                element[attr == 'class' ? 'className' : attr] = arguments[1][attr];
            }
            if(element.tagName != elementName)
              element = parentElement.getElementsByTagName(elementName)[0];
            }
        } 
    
    // text, or array of children
    if(arguments[2])
      this._children(element, arguments[2]);
    
     return element;
    

    },
    _text: function(text) {

     return document.createTextNode(text);
    

    },
    _attributes: function(attributes) {

    var attrs = [];
    for(attribute in attributes)
      attrs.push((attribute=='className' ? 'class' : attribute) +
          '="' + attributes[attribute].toString().escapeHTML() + '"');
    return attrs.join(" ");
    

    },
    _children: function(element, children) {

    if(typeof children=='object') { // array can hold nodes and text
      children.flatten().each( function(e) {
        if(typeof e=='object')
          element.appendChild(e)
        else
          if(Builder._isStringOrNumber(e))
            element.appendChild(Builder._text(e));
      });
    } else
      if(Builder._isStringOrNumber(children)) 
         element.appendChild(Builder._text(children));
    

    },
    _isStringOrNumber: function(param) {

    return(typeof param=='string' || typeof param=='number');
    

    }
    }

  • Graeme Obree

  • Shit, sorry, that was long, didn't realise..... I suppose that's the point of the thread

  • 614-564-5110

  • Mallen Dec'd R T Mr

  • asm Mallen Dec'd R T Mr

    I really like this one

  • How about this one:

    Dear Grace

    I regretfully inform you that it has become necessary to tender my resignation as of Friday 3rd August. I have found my time here to be both rewarding and worthwhile, and I will miss working with my colleagues in WSFS. I am aware that I am resigning sooner than I originally planned, and this is solely due to a change in the schedule for house-hunting in London for residence during my degree.

    Thank you for providing me with this opportunity.

    Yours faithfully,

    Alexander Myers

  • Last login: Mon Jul 30 01:39:19 2007 from marvin

    Q: What do you call a half-dozen Indians with

    (I think it was a careless button-down-swipe in an xterm...)

  • @asm are u at art college? Which one?

  • saint martins. how could you tell? you don't know hovis do you?

  • The Ip-art Award for Visual Arts is a brilliant opportunity for recent
    graduates and emerging talent from in and around Ipswich, offering a
    prize
    of £500 to create new work as well as a solo exhibition in the Town
    Hall
    Galleries.
    For submission details visit http://www.ip-art.com/news.php or contact Julia
    Devonshire on 01473 432862 / julia.devonshire@ipswich.gov.uk.

    Deadline for submissions for 2007: September 10th

  • 5 au 15 aout..

  • asm saint martins. how could you tell? you don't know hovis do you?

    I could tell from your website! I graduated from Chelsea in 2006..... we must have some sort of connection :-) I'm now at London Film School

    [SORRY FOR THE OFF TOPIC]

  • boatswain or bosun noun a warrant officer in the navy, or the foreman of a crew, who is in charge of a ship's lifeboats, rigging, sails, etc and its maintenance.

  • co11 2uj

  • http://www.pedalmafia.com/mafid/mafia_id.html

    ^Hah, that says something doesnt it... i think i have a problem :(.

  • ts1 3qp

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque imperdiet tincidunt metus. Ut in massa. Praesent nisi tortor, mollis sed, pretium id, auctor vitae, lacus. Vestibulum velit. Sed tristique quam sed dui. Sed et metus nec turpis tristique pellentesque. Phasellus sollicitudin, ligula sed dapibus condimentum, risus arcu ornare odio, quis commodo tellus magna ac justo. Nullam eget purus nec tellus hendrerit dignissim.

  • Hermes- Priya mohindra 55 East 59th Street 2nd floor.
    212 835 6477

  • Intersection
    112-116 old street
    london ec1v 9bg
    t: +44 (0)207 608 11 66
    f: +44 (0)207 608 10 90
    m: +44 (0)77 6789 63 77

  • Photo of Diane

  • \begin{subequations}
    \label{num3}
    \beq
    U_i^\alpha-u_i^\infty(x^\alpha)=\frac{F^\alpha_i}{6\pi \mu a}+(1+\frac{1}{6}a^2\nabla^2)u'_i(x^\alpha),
    \eeq
    \beq
    \Omega_i^\alpha-\Omega_i^\infty=\frac{Li^\alpha}{8\pi \mu a^3}+\frac{1}{2}\varepsilon{ijk}\nabla_ju'k(x^\alpha),
    \eeq
    \beq
    -E
    {ij}^\infty=\frac{S{ij}^\alpha}{(\frac{20}{3})\pi \mu a^3}+\left(1+\frac{a^2}{10}\nabla^2\right)e'{ij}(x^\alpha),
    \eeq
    \label{batandg}
    \end{subequations}

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Paste

Posted by Avatar for big_mummy_smeear @big_mummy_smeear

Actions