Password Dialog Box for microsoft frontpage

Microsoft Windows operating system, and software for Windows platform, including QuickTime Player and iTunes for Windows. We also discuss topics about Microsoft Corp.

Moderators: Josh, Don_HH2K, Mandrake

Password Dialog Box for microsoft frontpage

Postby Ron Williams » Tue 08 Mar, 2005 7:37 pm

Is there any easy way to make a password dialog box for a frontpage website. I have frontpage 2002.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
User avatar
Ron Williams
BANNED
BANNED
 
Posts: 845
Joined: Tue 25 Nov, 2003 9:47 am
Location: Cambridge, Maryland

Postby Pu7o » Tue 08 Mar, 2005 7:55 pm

ín frontpage? doubt it, since fp doesn't code anything "server-side". While it could be possible to code a password dialog in javascript, it would be easily readable by everyone who accessed the website....
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.6) Gecko/20050306 Firefox/1.0.1 (mmoy Community Edition P2Y-X09)
User avatar
Pu7o
Macfox
Macfox
 
Posts: 2014
Joined: Thu 06 Jan, 2005 12:03 pm
Location: Portugal

Postby Don_HH2K » Tue 08 Mar, 2005 8:14 pm

Easy. Put this in the HEAD section of your HTML document:
Code: Select all
<SCRIPT language="JavaScript"><!--hidevar password;var pass1="PASSWORD GOES HERE";password=prompt('TEXT ON P-UP',' ');if (password==pass1)alert('TEXT IF CORRECT');else { window.location="URL OF PAGE THAT IT GOES TO IF THEY ANSWERED WRONG"; }//--></SCRIPT>

I'm not sure if that's cross-browser, though, and it is always possible for somebody to just look at the source to find out.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Donzilla/0.6PR1 (like Netscape/7.2; wml/1.3)
Laptop: HP Compaq nx6325 - Turion 64 X2 @ 2GHz, 2GB DDR2, 100GB HD, ATI Radeon X300, 15" LCD, Seven Pro
Handheld: Palm Treo 650 - Intel PXA270 @ 312MHz, 10MB RAM, 32MB flash, 2.7" LCD, Palm OS 5.4
User avatar
Don_HH2K
Moderator
Moderator
 
Posts: 5112
Joined: Sun 09 May, 2004 3:59 pm

Postby Pu7o » Wed 09 Mar, 2005 8:19 am

yeah that was what i meant, if the password dialog is in js, then one only has to look at the source to know the password... definitively not a good idea...
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; appLanguage) AppleWebKit/125.5.5 (KHTML, like Gecko) Safari/125.11
User avatar
Pu7o
Macfox
Macfox
 
Posts: 2014
Joined: Thu 06 Jan, 2005 12:03 pm
Location: Portugal


Return to Windows (and Microsoft talk)

Who is online

Registered users: Google [Bot], Yahoo [Bot]