building javascript 'wrappers'?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Catherine Lynn Smith

    building javascript 'wrappers'?

    OK, I am looking for advice or tips and suggestions. I have overcome
    a lot of the obstructions I had to building the page design my
    customer was asking for. I am looking now at ways to deliver content
    dynamically within the wonderful framework I created. Whilest I look
    into the various methods of delivering content within a container of
    one form or another in the existing HTML, I am also exploring the
    possibility of using some form of 'wrapper' for existing flat pages
    sorta like how geocities does to user pages to add the yahoo pull-down
    div layers and such.

    While doing some testing, I notice that if I just add a javascript tag
    in the beginning, I can't use the document.body.A ppendChild option for
    the div layers unless I call the function that builds said layers from
    a <body onload="">. When I do it from the onload event, the existing
    HTML layers can effect the placement of the div layers even when I
    have the CSS position set to absolute.

    Short of using some form of server side code to insert at least the
    DIV content in prior to dropping the file on the user's browsers, I
    was wondering if there were any other suggestions on how to do this
    with a minimal amount of coding in the HTML document itself. One of
    my hopes is to limit the 'modifications' to any standard HTML file to
    one or two lines so that anyone else developing pages can do so
    easily, and/or I can create reasonably foolproof server-side wrappers
    to call the javascript code to paste on the 'look-and-feel' elements
    on just about any web page.

    I have a feeling I will probably go the server-side route anyway, but
    I was just curious what other suggestions there might be out there.

    KL
  • Bernard Lechler

    #2
    Re: building javascript 'wrappers'?

    This is precisely the type of thing that server side includes were
    created for. Any sort of solution using JavaScript would be clunky by
    comparison.

    Bernie

    klynntg@hotmail .com (Catherine Lynn Smith) wrote in message news:<5fb632c2. 0309301220.456b 7911@posting.go ogle.com>...[color=blue]
    > OK, I am looking for advice or tips and suggestions. I have overcome
    > a lot of the obstructions I had to building the page design my
    > customer was asking for. I am looking now at ways to deliver content
    > dynamically within the wonderful framework I created. Whilest I look
    > into the various methods of delivering content within a container of
    > one form or another in the existing HTML, I am also exploring the
    > possibility of using some form of 'wrapper' for existing flat pages
    > sorta like how geocities does to user pages to add the yahoo pull-down
    > div layers and such.
    >
    > While doing some testing, I notice that if I just add a javascript tag
    > in the beginning, I can't use the document.body.A ppendChild option for
    > the div layers unless I call the function that builds said layers from
    > a <body onload="">. When I do it from the onload event, the existing
    > HTML layers can effect the placement of the div layers even when I
    > have the CSS position set to absolute.
    >
    > Short of using some form of server side code to insert at least the
    > DIV content in prior to dropping the file on the user's browsers, I
    > was wondering if there were any other suggestions on how to do this
    > with a minimal amount of coding in the HTML document itself. One of
    > my hopes is to limit the 'modifications' to any standard HTML file to
    > one or two lines so that anyone else developing pages can do so
    > easily, and/or I can create reasonably foolproof server-side wrappers
    > to call the javascript code to paste on the 'look-and-feel' elements
    > on just about any web page.
    >
    > I have a feeling I will probably go the server-side route anyway, but
    > I was just curious what other suggestions there might be out there.
    >
    > KL[/color]

    Comment

    Working...