Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / April 2007

Tip: Looking for answers? Try searching our database.

not display source code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wendy Elizabeth - 07 Apr 2007 21:04 GMT
I want to be able to hide the source code from people when they are on the
internet using my vbscript (classic asp) application. The part I do not want
them to see is information like name, address, social security number.
 Can you tell me how I can hide this information from users when they use
internet explorer, hit view and then select source?
 I would not mind using javascript that is embedded in the classic asp
application if you could show me how to do this.
 Thanks!
Sandeep - 09 Apr 2007 10:44 GMT
Hi..Wendy Elizabeth,

<SCRIPT language=JavaScript>

var message="Sorry, that function is disabled.";

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
</SCRIPT>

Thanks
Sandeep
www.autonomysystems.com

> I want to be able to hide the source code from people when they are on the
> internet using my vbscript (classic asp) application. The part I do not want
[quoted text clipped - 4 lines]
> application if you could show me how to do this.
>   Thanks!
Wendy Elizabeth - 09 Apr 2007 14:26 GMT
Sandeep:

These are static values that are on the vbscript page. There is not event
that will keep these values from not displaying. What would you do if you do
not want these events to show?

Thanks,

Wendy Elizabeth

> Hi..Wendy Elizabeth,
>
[quoted text clipped - 34 lines]
> > application if you could show me how to do this.
> >   Thanks!
Wendy Elizabeth - 09 Apr 2007 14:28 GMT
Sandeep:

These are static values. The display will always occur. What do I do so that
the values do not show up?

Thanks,

Wendy Elizabeth

> Hi..Wendy Elizabeth,
>
[quoted text clipped - 34 lines]
> > application if you could show me how to do this.
> >   Thanks!

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.