Getting at the body

Discussion in 'Javascript' started by Peter Crom, Oct 28, 2003.

  1. Peter Crom

    Peter Crom Guest

    Hi everybody,

    I have the following problem:
    I would like to have a sort of 'coded body', that is, I offer a body with an
    encrypting javascript routine that 'unpacks' the coded body at the client,
    so it customizes to its local properties, depending on browser, screensize
    and the like.
    Therefore I need to be able to 'read' the body, adjust it, and rewrite te
    whole lot with a document.writeln (newbody);

    But how is this 'reading' done? Can anyone give me the golden tip?

    Thanks in advance for the use of your brains and knowlegde...

    Peter Crom
    Peter Crom, Oct 28, 2003
    #1
    1. Advertising

  2. Peter Crom wrote:

    > I would like to have a sort of 'coded body', that is, I offer a body with an
    > encrypting javascript routine that 'unpacks' the coded body at the client,
    > so it customizes to its local properties, depending on browser, screensize
    > and the like.
    > Therefore I need to be able to 'read' the body, adjust it, and rewrite te
    > whole lot with a document.writeln (newbody);


    You do not need and you do not want that, not even in an intranet.
    BTW, use document.write("...") instead of document.writeln(...).


    PointedEars
    Thomas 'PointedEars' Lahn, Nov 23, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rohith KS
    Replies:
    1
    Views:
    108
  2. Jarmo Pertman
    Replies:
    2
    Views:
    120
    Jarmo Pertman
    May 21, 2009
  3. London Boy
    Replies:
    2
    Views:
    318
    Keith Bowes
    Jan 12, 2004
  4. Replies:
    5
    Views:
    200
    A. Sinan Unur
    Sep 8, 2005
  5. John W. Kennedy

    Setting or getting body.class on IE

    John W. Kennedy, Oct 16, 2005, in forum: Javascript
    Replies:
    2
    Views:
    80
    John W. Kennedy
    Oct 16, 2005
Loading...

Share This Page