The problem with your way, is that if i
select "save as" in the file menu of IE,
it downloads also the *.js files from where you
get the code whit 'document.write'.

if the HTML/XML code is in the
client screen, he can read it copy it, etc.
so the only way is: not sending to
the client browser the code. ;-)


----- Original Message ----- 
From: "John V. Pataki" <[EMAIL PROTECTED]>
To: "Raymond Forbes" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, February 10, 2004 9:15 PM
Subject: RE: Hide Code


> True, and I guess I am saying that 'one' way to do
> that would be to create a javascript source file that
> has the sole purpose of reading an html file and
> sending it to the browser using document.write....
>
>
> maybe something like this ( 3 files needed ).
>
> HTML_1.HTML is called by the client browser
> JSCRIPT.JS is called by HTML_1.HTML via <script>
> HTML_2.HTML is where the code you want to hide lives
> and is read by JSCRIPT.JS and sent to the browser.
>
> This would be one way (why you would do this I do not
> know)... to hide your html code from the browser since
> the file called by the cliend is HTML_1 and it calls
> the external JSCRIPT file. This code in turns reads
> and writes the contents of HTML_2
>
> Hmm... this is all in theory of course... I haven't
> tried something like this in a while... but I believe
> it would work.
>
> John
>
>
>
>
>
> --- Raymond Forbes <[EMAIL PROTECTED]> wrote:
> > Absolutely.  But his question was whether it was
> > possible to hide the html
> > that is generated.
> >
> > -----Original Message-----
> > From: John V. Pataki [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 10, 2004 4:56 PM
> > To: Raymond Forbes; [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: Hide Code
> >
> > Raymond,
> >
> > Well, Yes you are correct if you put the code in the
> > same file that is being called. However, if you
> > embedd
> > your code into an external javascript source and
> > call
> > that source from the html file that is being called
> > by
> > the client. The client will not see the code that
> > generates what the browser is displaying.
> >
> > John
> >
> >
> > --- Raymond Forbes <[EMAIL PROTECTED]> wrote:
> > > That would be impossible.  This is all client side
> > > technology, the browser
> > > HAS to see the code to display the content.  The
> > > browser runs on the client
> > > machine so all that data is available to the
> > client.
> > >
> >
> >
> >
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]
> > > On Behalf Of Mario
> > > Sanchez
> > > Sent: Tuesday, February 10, 2004 9:06 AM
> > > To: Sanjay Godbole
> > > Cc: [EMAIL PROTECTED]
> > > Subject: Re: Hide Code
> > >
> > > thanks - then, can the html/xml that is generated
> > by
> > > the script be hidden?
> > >
> > > Sanjay Godbole wrote:
> > >
> > > >When you do view/source, you don't see the perl
> > > script. What you see is the
> > > >HTML/XML code which is generated through this
> > perl
> > > script.
> > > >
> > > >Rgds,
> > > >
> > > >Sanjay Godbole
> > > >
> > > >
> > > >-----Original Message-----
> > > >From: [EMAIL PROTECTED]
> > >
> > >[mailto:[EMAIL PROTECTED]
> > > On Behalf Of Mario
> > > >Sanchez
> > > >Sent: Tuesday, February 10, 2004 11:38 AM
> > > >Cc: [EMAIL PROTECTED]
> > > >Subject: Hide Code
> > > >
> > > >Hi,
> > > >Is there a practical way to prevent someone from
> > > using View,Source on a
> > > >browser from looking at the perl/cgi script?
> > > >Thanks
> > > >
> > > >_______________________________________________
> > > >ActivePerl mailing list
> > > >[EMAIL PROTECTED]
> > > >To unsubscribe:
> > > http://listserv.ActiveState.com/mailman/mysubs
> > > >
> > > >
> > >
> >
>
>__________________________________________________________________________
> > > >Disclaimer: This e-mail message is intended only
> > > for the personal use of
> > > >the recipient(s) named above.  If you are not an
> > > intended recipient, you
> > > >may not review, copy or distribute this message.
> > If
> > > you have received this
> > > >communication in error, please notify us
> > > immediately by e-mail and delete
> > > >the original message.
> > > >This e-mail expresses views only of the sender,
> > > which are not to be
> > > >attributed to Rite Aid Corporation and may not be
> > > copied or distributed
> > > >without this statement.
> > > >
> > > >
> > > >
> > > >
> > >
> > > _______________________________________________
> > > ActivePerl mailing list
> > > [EMAIL PROTECTED]
> > > To unsubscribe:
> > > http://listserv.ActiveState.com/mailman/mysubs
> > >
> > >
> > > _______________________________________________
> > > ActivePerl mailing list
> > > [EMAIL PROTECTED]
> > > To unsubscribe:
> > http://listserv.ActiveState.com/mailman/mysubs
> >
> >
> > =====
> > John V. Pataki
> > Logged in to my Yahoo Mail account on the web.
> >
> >
> >
>
>
> =====
> John V. Pataki
> Logged in to my Yahoo Mail account on the web.
>
> _______________________________________________
> ActivePerl mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to