Connecting Tech Pros Worldwide Forums | Help | Site Map

Getting at the body

Peter Crom
Guest
 
Posts: n/a
#1: Jul 20 '05
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



Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#2: Jul 20 '05

re: Getting at the body


Peter Crom wrote:
[color=blue]
> 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);[/color]

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


PointedEars
Closed Thread