Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

Password Rediret in IE8

microsoft.public.internetexplorer.general






Speedup My PC
Reply
  #1 (permalink)  
Old 02-23-2010
Jerry
 

Posts: n/a
Password Rediret in IE8
I am running Window XP Pro and since many services have stopped supporting
IE6, I have installed IE8.

I make simple webpages for friends and some of them want the websites
passworded for access. I use the follow code to password the sites:

<SCRIPT LANGUAGE="JavaScript">


var password = "password" ;
// The desired password

var message = "This is out of bounds,if you have the password come right in,
if not please leave ";
// The message to show when the user is prompted for the password

var incmess = "Looks like you weren't invited, Please leave!";
// The message to show if the password is incorrect

var pw = prompt (message,"");

if (pw != password) {
alert (incmess);
top.location.href = "url for redirect";
}

</SCRIPT>

This code in IE6 yields a popup to enter the password and if the wrong
password is entered, the user is redirected to a url of my choosing.

In IE8 no popup to enter the password is produced and when the page is
clicked, the user is redirected to the url chosen for redirect.

I tried using the meta tag:
<meta http-equiv="X-UA-Compatible" content="IE=7">

This yields the same results as IE so is of no help.

My question is for those using IE8 how do I get IE8 to give the popup to
enter the password?

Any help would be greatly appreciated.
Thank you.




__________ Information from ESET NOD32 Antivirus, version of virus signature database 4888 (20100222) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-23-2010
PA Bear [MS MVP]
 

Posts: n/a
Re: Password Rediret in IE8
Developer-specific resources include:

MSDN IE Development Forum (post such questions here instead)
http://social.msdn.microsoft.com/For...opment/threads

IE Developer Center
http://msdn.microsoft.com/en-us/ie/default.aspx

Learn IE8
http://msdn.microsoft.com/en-us/ie/aa740473.aspx

HTML and DHTML Overviews and Tutorials
http://msdn.microsoft.com/en-us/library/ms537623.aspx and

Cascading Style Sheets (CSS)
http://msdn2.microsoft.com/en-us/ie/aa740476.aspx

Expression Web SuperPreview for Internet Explorer (free, stand-alone visual
debugging tool for IE6, IE7, and IE8)
http://www.microsoft.com/downloads/d...b-dccff3fae677

Expression Web SuperPreview Release Notes
http://www.microsoft.com/expression/...easeNotes.aspx

Validators:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/

PS: Why you don't need your anti-virus to scan your email (or newsgroup
posts): http://thundercloud.net/infoave/tuto...ning/index.htm


Jerry wrote:
> I am running Window XP Pro and since many services have stopped supporting
> IE6, I have installed IE8.
>
> I make simple webpages for friends and some of them want the websites
> passworded for access. I use the follow code to password the sites:
>
> <SCRIPT LANGUAGE="JavaScript">
>
>
> var password = "password" ;
> // The desired password
>
> var message = "This is out of bounds,if you have the password come right
> in,
> if not please leave ";
> // The message to show when the user is prompted for the password
>
> var incmess = "Looks like you weren't invited, Please leave!";
> // The message to show if the password is incorrect
>
> var pw = prompt (message,"");
>
> if (pw != password) {
> alert (incmess);
> top.location.href = "url for redirect";
> }
>
> </SCRIPT>
>
> This code in IE6 yields a popup to enter the password and if the wrong
> password is entered, the user is redirected to a url of my choosing.
>
> In IE8 no popup to enter the password is produced and when the page is
> clicked, the user is redirected to the url chosen for redirect.
>
> I tried using the meta tag:
> <meta http-equiv="X-UA-Compatible" content="IE=7">
>
> This yields the same results as IE so is of no help.
>
> My question is for those using IE8 how do I get IE8 to give the popup to
> enter the password?
>
> Any help would be greatly appreciated.
> Thank you.
>
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4888 (20100222) __________
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com


Reply With Quote
  #3 (permalink)  
Old 02-24-2010
Jerry
 

Posts: n/a
Re: Password Rediret in IE8
Thanks for the response, but I spent the better part of two days going those
links and found nothing that helped. I even sent the question to the
Developer Center (think that is where I sent it) and have not hear anything
from them.

I set the compatibility for all websites in IE8 to be compatible, but since
it is only compatible to IE7 and not IE6 it did NOT help. This is a PITA,
there has to be someway to use passwords for websites.

"PA Bear [MS MVP]" <PABearMVP@gmail.com> wrote in message
news:%23lhtM6JtKHA.3360@TK2MSFTNGP06.phx.gbl...
> Developer-specific resources include:
>
> MSDN IE Development Forum (post such questions here instead)
> http://social.msdn.microsoft.com/For...opment/threads
>
> IE Developer Center
> http://msdn.microsoft.com/en-us/ie/default.aspx
>
> Learn IE8
> http://msdn.microsoft.com/en-us/ie/aa740473.aspx
>
> HTML and DHTML Overviews and Tutorials
> http://msdn.microsoft.com/en-us/library/ms537623.aspx and
>
> Cascading Style Sheets (CSS)
> http://msdn2.microsoft.com/en-us/ie/aa740476.aspx
>
> Expression Web SuperPreview for Internet Explorer (free, stand-alone
> visual debugging tool for IE6, IE7, and IE8)
> http://www.microsoft.com/downloads/d...b-dccff3fae677
>
> Expression Web SuperPreview Release Notes
> http://www.microsoft.com/expression/...easeNotes.aspx
>
> Validators:
> http://validator.w3.org/
> http://jigsaw.w3.org/css-validator/
>
> PS: Why you don't need your anti-virus to scan your email (or newsgroup
> posts): http://thundercloud.net/infoave/tuto...ning/index.htm
>
>
> Jerry wrote:
>> I am running Window XP Pro and since many services have stopped
>> supporting
>> IE6, I have installed IE8.
>>
>> I make simple webpages for friends and some of them want the websites
>> passworded for access. I use the follow code to password the sites:
>>
>> <SCRIPT LANGUAGE="JavaScript">
>>
>>
>> var password = "password" ;
>> // The desired password
>>
>> var message = "This is out of bounds,if you have the password come right
>> in,
>> if not please leave ";
>> // The message to show when the user is prompted for the password
>>
>> var incmess = "Looks like you weren't invited, Please leave!";
>> // The message to show if the password is incorrect
>>
>> var pw = prompt (message,"");
>>
>> if (pw != password) {
>> alert (incmess);
>> top.location.href = "url for redirect";
>> }
>>
>> </SCRIPT>
>>
>> This code in IE6 yields a popup to enter the password and if the wrong
>> password is entered, the user is redirected to a url of my choosing.
>>
>> In IE8 no popup to enter the password is produced and when the page is
>> clicked, the user is redirected to the url chosen for redirect.
>>
>> I tried using the meta tag:
>> <meta http-equiv="X-UA-Compatible" content="IE=7">
>>
>> This yields the same results as IE so is of no help.
>>
>> My question is for those using IE8 how do I get IE8 to give the popup to
>> enter the password?
>>
>> Any help would be greatly appreciated.
>> Thank you.
>>
>>
>>
>>
>> __________ Information from ESET NOD32 Antivirus, version of virus
>> signature database 4888 (20100222) __________
>> The message was checked by ESET NOD32 Antivirus.
>>
>> http://www.eset.com

>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4891 (20100223) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>




__________ Information from ESET NOD32 Antivirus, version of virus signature database 4891 (20100223) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




Reply With Quote
  #4 (permalink)  
Old 02-24-2010
Donald Anadell
 

Posts: n/a
Re: Password Rediret in IE8

"Jerry" <jhuffman@lexcominc.net> wrote in message
news:I17hn.329084$FK3.52600@en-nntp-06.dc1.easynews.com...
> Thanks for the response, but I spent the better part of two days going
> those links and found nothing that helped. I even sent the question to
> the Developer Center (think that is where I sent it) and have not hear
> anything from them.
>
> I set the compatibility for all websites in IE8 to be compatible, but
> since it is only compatible to IE7 and not IE6 it did NOT help. This is a
> PITA, there has to be someway to use passwords for websites.


I could not get the code you posted to work here in IE6 or IE8.

The following script works here in both versions of IE:

<SCRIPT LANGUAGE="JavaScript">
var password = "password" ;
// The desired password

var message = "This is out of bounds,if you have the password come right in,
if not please leave ";
// The message to show when the user is prompted for the password

var incmess = "Looks like you weren't invited, Please leave!";
// The message to show if the password is incorrect

var pw = prompt (message,"");

if (pw != password)

alert (incmess);

else
{
window.location="some URL";
}
</SCRIPT>

NOTE: In IE8 I had to lower the Popup Blocker Settings to "LOW" in order to
avoid the "information bar" in IE8(using the above script).

I'm not a Developer by any means, but there are my findings with regard to
your previously posted code.

Good luck,

Donald Anadell


>
> "PA Bear [MS MVP]" <PABearMVP@gmail.com> wrote in message
> news:%23lhtM6JtKHA.3360@TK2MSFTNGP06.phx.gbl...
>> Developer-specific resources include:
>>
>> MSDN IE Development Forum (post such questions here instead)
>> http://social.msdn.microsoft.com/For...opment/threads
>>
>> IE Developer Center
>> http://msdn.microsoft.com/en-us/ie/default.aspx
>>
>> Learn IE8
>> http://msdn.microsoft.com/en-us/ie/aa740473.aspx
>>
>> HTML and DHTML Overviews and Tutorials
>> http://msdn.microsoft.com/en-us/library/ms537623.aspx and
>>
>> Cascading Style Sheets (CSS)
>> http://msdn2.microsoft.com/en-us/ie/aa740476.aspx
>>
>> Expression Web SuperPreview for Internet Explorer (free, stand-alone
>> visual debugging tool for IE6, IE7, and IE8)
>> http://www.microsoft.com/downloads/d...b-dccff3fae677
>>
>> Expression Web SuperPreview Release Notes
>> http://www.microsoft.com/expression/...easeNotes.aspx
>>
>> Validators:
>> http://validator.w3.org/
>> http://jigsaw.w3.org/css-validator/
>>
>> PS: Why you don't need your anti-virus to scan your email (or newsgroup
>> posts):
>> http://thundercloud.net/infoave/tuto...ning/index.htm
>>
>>
>> Jerry wrote:
>>> I am running Window XP Pro and since many services have stopped
>>> supporting
>>> IE6, I have installed IE8.
>>>
>>> I make simple webpages for friends and some of them want the websites
>>> passworded for access. I use the follow code to password the sites:
>>>
>>> <SCRIPT LANGUAGE="JavaScript">
>>>
>>>
>>> var password = "password" ;
>>> // The desired password
>>>
>>> var message = "This is out of bounds,if you have the password come right
>>> in,
>>> if not please leave ";
>>> // The message to show when the user is prompted for the password
>>>
>>> var incmess = "Looks like you weren't invited, Please leave!";
>>> // The message to show if the password is incorrect
>>>
>>> var pw = prompt (message,"");
>>>
>>> if (pw != password) {
>>> alert (incmess);
>>> top.location.href = "url for redirect";
>>> }
>>>
>>> </SCRIPT>
>>>
>>> This code in IE6 yields a popup to enter the password and if the wrong
>>> password is entered, the user is redirected to a url of my choosing.
>>>
>>> In IE8 no popup to enter the password is produced and when the page is
>>> clicked, the user is redirected to the url chosen for redirect.
>>>
>>> I tried using the meta tag:
>>> <meta http-equiv="X-UA-Compatible" content="IE=7">
>>>
>>> This yields the same results as IE so is of no help.
>>>
>>> My question is for those using IE8 how do I get IE8 to give the popup to
>>> enter the password?
>>>
>>> Any help would be greatly appreciated.
>>> Thank you.
>>>
>>>
>>>
>>>
>>> __________ Information from ESET NOD32 Antivirus, version of virus
>>> signature database 4888 (20100222) __________
>>> The message was checked by ESET NOD32 Antivirus.
>>>
>>> http://www.eset.com

>>
>>
>> __________ Information from ESET NOD32 Antivirus, version of virus
>> signature database 4891 (20100223) __________
>>
>> The message was checked by ESET NOD32 Antivirus.
>>
>> http://www.eset.com
>>
>>
>>

>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4891 (20100223) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
>



Reply With Quote
  #5 (permalink)  
Old 02-24-2010
Jerry
 

Posts: n/a
Re: Password Rediret in IE8
Thanks Donald

IE8 is a pain in the ass to say the least. I did as you suggest and still
getting same results. I checked one of my websites with no redirect just a
plain page and dang it, IE8 is blocking the page so I turned the blocker
off and it is still blocking it.

Since IE6 Microsoft has not had a decent browser.

"Donald Anadell" <danadell@nospamersmikrotec.com> wrote in message
news:%23eMiw2WtKHA.1660@TK2MSFTNGP06.phx.gbl...
>
> "Jerry" <jhuffman@lexcominc.net> wrote in message
> news:I17hn.329084$FK3.52600@en-nntp-06.dc1.easynews.com...
>> Thanks for the response, but I spent the better part of two days going
>> those links and found nothing that helped. I even sent the question to
>> the Developer Center (think that is where I sent it) and have not hear
>> anything from them.
>>
>> I set the compatibility for all websites in IE8 to be compatible, but
>> since it is only compatible to IE7 and not IE6 it did NOT help. This is
>> a PITA, there has to be someway to use passwords for websites.

>
> I could not get the code you posted to work here in IE6 or IE8.
>
> The following script works here in both versions of IE:
>
> <SCRIPT LANGUAGE="JavaScript">
> var password = "password" ;
> // The desired password
>
> var message = "This is out of bounds,if you have the password come right
> in, if not please leave ";
> // The message to show when the user is prompted for the password
>
> var incmess = "Looks like you weren't invited, Please leave!";
> // The message to show if the password is incorrect
>
> var pw = prompt (message,"");
>
> if (pw != password)
>
> alert (incmess);
>
> else
> {
> window.location="some URL";
> }
> </SCRIPT>
>
> NOTE: In IE8 I had to lower the Popup Blocker Settings to "LOW" in order
> to avoid the "information bar" in IE8(using the above script).
>
> I'm not a Developer by any means, but there are my findings with regard to
> your previously posted code.
>
> Good luck,
>
> Donald Anadell
>
>
>>
>> "PA Bear [MS MVP]" <PABearMVP@gmail.com> wrote in message
>> news:%23lhtM6JtKHA.3360@TK2MSFTNGP06.phx.gbl...
>>> Developer-specific resources include:
>>>
>>> MSDN IE Development Forum (post such questions here instead)
>>> http://social.msdn.microsoft.com/For...opment/threads
>>>
>>> IE Developer Center
>>> http://msdn.microsoft.com/en-us/ie/default.aspx
>>>
>>> Learn IE8
>>> http://msdn.microsoft.com/en-us/ie/aa740473.aspx
>>>
>>> HTML and DHTML Overviews and Tutorials
>>> http://msdn.microsoft.com/en-us/library/ms537623.aspx and
>>>
>>> Cascading Style Sheets (CSS)
>>> http://msdn2.microsoft.com/en-us/ie/aa740476.aspx
>>>
>>> Expression Web SuperPreview for Internet Explorer (free, stand-alone
>>> visual debugging tool for IE6, IE7, and IE8)
>>> http://www.microsoft.com/downloads/d...b-dccff3fae677
>>>
>>> Expression Web SuperPreview Release Notes
>>> http://www.microsoft.com/expression/...easeNotes.aspx
>>>
>>> Validators:
>>> http://validator.w3.org/
>>> http://jigsaw.w3.org/css-validator/
>>>
>>> PS: Why you don't need your anti-virus to scan your email (or newsgroup
>>> posts):
>>> http://thundercloud.net/infoave/tuto...ning/index.htm
>>>
>>>
>>> Jerry wrote:
>>>> I am running Window XP Pro and since many services have stopped
>>>> supporting
>>>> IE6, I have installed IE8.
>>>>
>>>> I make simple webpages for friends and some of them want the websites
>>>> passworded for access. I use the follow code to password the sites:
>>>>
>>>> <SCRIPT LANGUAGE="JavaScript">
>>>>
>>>>
>>>> var password = "password" ;
>>>> // The desired password
>>>>
>>>> var message = "This is out of bounds,if you have the password come
>>>> right in,
>>>> if not please leave ";
>>>> // The message to show when the user is prompted for the password
>>>>
>>>> var incmess = "Looks like you weren't invited, Please leave!";
>>>> // The message to show if the password is incorrect
>>>>
>>>> var pw = prompt (message,"");
>>>>
>>>> if (pw != password) {
>>>> alert (incmess);
>>>> top.location.href = "url for redirect";
>>>> }
>>>>
>>>> </SCRIPT>
>>>>
>>>> This code in IE6 yields a popup to enter the password and if the wrong
>>>> password is entered, the user is redirected to a url of my choosing.
>>>>
>>>> In IE8 no popup to enter the password is produced and when the page is
>>>> clicked, the user is redirected to the url chosen for redirect.
>>>>
>>>> I tried using the meta tag:
>>>> <meta http-equiv="X-UA-Compatible" content="IE=7">
>>>>
>>>> This yields the same results as IE so is of no help.
>>>>
>>>> My question is for those using IE8 how do I get IE8 to give the popup
>>>> to
>>>> enter the password?
>>>>
>>>> Any help would be greatly appreciated.
>>>> Thank you.
>>>>
>>>>
>>>>
>>>>
>>>> __________ Information from ESET NOD32 Antivirus, version of virus
>>>> signature database 4888 (20100222) __________
>>>> The message was checked by ESET NOD32 Antivirus.
>>>>
>>>> http://www.eset.com
>>>
>>>
>>> __________ Information from ESET NOD32 Antivirus, version of virus
>>> signature database 4891 (20100223) __________
>>>
>>> The message was checked by ESET NOD32 Antivirus.
>>>
>>> http://www.eset.com
>>>
>>>
>>>

>>
>>
>>
>> __________ Information from ESET NOD32 Antivirus, version of virus
>> signature database 4891 (20100223) __________
>>
>> The message was checked by ESET NOD32 Antivirus.
>>
>> http://www.eset.com
>>
>>
>>
>>

>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4892 (20100224) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>




__________ Information from ESET NOD32 Antivirus, version of virus signature database 4892 (20100224) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




Reply With Quote
  #6 (permalink)  
Old 02-24-2010
PA Bear [MS MVP]
 

Posts: n/a
Re: Password Rediret in IE8
> Since IE6 Microsoft has not had a decent browser.

<sigh> Why do you blame "Microsoft" for your own incompetencies?

Jerry wrote:
> Thanks Donald
>
> IE8 is a pain in the ass to say the least. I did as you suggest and still
> getting same results. I checked one of my websites with no redirect just
> a
> plain page and dang it, IE8 is blocking the page so I turned the blocker
> off and it is still blocking it.
>
> Since IE6 Microsoft has not had a decent browser.
>
> "Donald Anadell" <danadell@nospamersmikrotec.com> wrote in message
> news:%23eMiw2WtKHA.1660@TK2MSFTNGP06.phx.gbl...
>>
>> "Jerry" <jhuffman@lexcominc.net> wrote in message
>> news:I17hn.329084$FK3.52600@en-nntp-06.dc1.easynews.com...
>>> Thanks for the response, but I spent the better part of two days going
>>> those links and found nothing that helped. I even sent the question to
>>> the Developer Center (think that is where I sent it) and have not hear
>>> anything from them.
>>>
>>> I set the compatibility for all websites in IE8 to be compatible, but
>>> since it is only compatible to IE7 and not IE6 it did NOT help. This is
>>> a PITA, there has to be someway to use passwords for websites.

>>
>> I could not get the code you posted to work here in IE6 or IE8.
>>
>> The following script works here in both versions of IE:
>>
>> <SCRIPT LANGUAGE="JavaScript">
>> var password = "password" ;
>> // The desired password
>>
>> var message = "This is out of bounds,if you have the password come right
>> in, if not please leave ";
>> // The message to show when the user is prompted for the password
>>
>> var incmess = "Looks like you weren't invited, Please leave!";
>> // The message to show if the password is incorrect
>>
>> var pw = prompt (message,"");
>>
>> if (pw != password)
>>
>> alert (incmess);
>>
>> else
>> {
>> window.location="some URL";
>> }
>> </SCRIPT>
>>
>> NOTE: In IE8 I had to lower the Popup Blocker Settings to "LOW" in order
>> to avoid the "information bar" in IE8(using the above script).
>>
>> I'm not a Developer by any means, but there are my findings with regard
>> to
>> your previously posted code.


Reply With Quote
  #7 (permalink)  
Old 02-25-2010
Jerry
 

Posts: n/a
Re: Password Rediret in IE8
I may be incompetent, I know I am not the brightest bulb on the tree, but I
have made these simple pages for a number of years and in IE6 I never had an
issue. I tried IE7 for about a month and finally went back to IE6. Now
along comes IE8 and I installed it because so many good websites are no
longer supporting IE6. To me with IE8 Microsoft was has gone overboard with
security and hiding things where no reasonable person would look for them.
IT hangs up constantly and is not friendly with other utilities such as
RoboForm. When I tell it to turn OFF blocking, I expect it to turn the dang
thing off.

I went to this forum which I believe is a Microsoft forum:
http://social.msdn.microsoft.com/for...iedevelopment/

I asked the same question (over a week ago) that I asked here and have yet
to get a response of any kind.

Why do I blame Microsoft; it is their product and from what I can gather
there is little support, no where to get any useful help that I can find.

Now I am off my soapbox. I will continue to try to find a solution to my
problem, but right now I am super frustrated.

Thank you

"PA Bear [MS MVP]" <PABearMVP@gmail.com> wrote in message
news:eA0vizXtKHA.5936@TK2MSFTNGP04.phx.gbl...
>> Since IE6 Microsoft has not had a decent browser.

>
> <sigh> Why do you blame "Microsoft" for your own incompetencies?
>
> Jerry wrote:
>> Thanks Donald
>>
>> IE8 is a pain in the ass to say the least. I did as you suggest and
>> still
>> getting same results. I checked one of my websites with no redirect just
>> a
>> plain page and dang it, IE8 is blocking the page so I turned the blocker
>> off and it is still blocking it.
>>
>> Since IE6 Microsoft has not had a decent browser.
>>
>> "Donald Anadell" <danadell@nospamersmikrotec.com> wrote in message
>> news:%23eMiw2WtKHA.1660@TK2MSFTNGP06.phx.gbl...
>>>
>>> "Jerry" <jhuffman@lexcominc.net> wrote in message
>>> news:I17hn.329084$FK3.52600@en-nntp-06.dc1.easynews.com...
>>>> Thanks for the response, but I spent the better part of two days going
>>>> those links and found nothing that helped. I even sent the question to
>>>> the Developer Center (think that is where I sent it) and have not hear
>>>> anything from them.
>>>>
>>>> I set the compatibility for all websites in IE8 to be compatible, but
>>>> since it is only compatible to IE7 and not IE6 it did NOT help. This
>>>> is
>>>> a PITA, there has to be someway to use passwords for websites.
>>>
>>> I could not get the code you posted to work here in IE6 or IE8.
>>>
>>> The following script works here in both versions of IE:
>>>
>>> <SCRIPT LANGUAGE="JavaScript">
>>> var password = "password" ;
>>> // The desired password
>>>
>>> var message = "This is out of bounds,if you have the password come right
>>> in, if not please leave ";
>>> // The message to show when the user is prompted for the password
>>>
>>> var incmess = "Looks like you weren't invited, Please leave!";
>>> // The message to show if the password is incorrect
>>>
>>> var pw = prompt (message,"");
>>>
>>> if (pw != password)
>>>
>>> alert (incmess);
>>>
>>> else
>>> {
>>> window.location="some URL";
>>> }
>>> </SCRIPT>
>>>
>>> NOTE: In IE8 I had to lower the Popup Blocker Settings to "LOW" in order
>>> to avoid the "information bar" in IE8(using the above script).
>>>
>>> I'm not a Developer by any means, but there are my findings with regard
>>> to
>>> your previously posted code.

>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4893 (20100224) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>




__________ Information from ESET NOD32 Antivirus, version of virus signature database 4893 (20100224) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




Reply With Quote
  #8 (permalink)  
Old 02-25-2010
Dan
 

Posts: n/a
Re: Password Rediret in IE8

"Jerry" <jhuffman@lexcominc.net> wrote in message
news:mfOgn.328304$FK3.289140@en-nntp-06.dc1.easynews.com...
> I am running Window XP Pro and since many services have stopped supporting
> IE6, I have installed IE8.
>
> I make simple webpages for friends and some of them want the websites
> passworded for access. I use the follow code to password the sites:
>
> <SCRIPT LANGUAGE="JavaScript">
>
>
> var password = "password" ;
> // The desired password
>
> var message = "This is out of bounds,if you have the password come right
> in, if not please leave ";
> // The message to show when the user is prompted for the password
>
> var incmess = "Looks like you weren't invited, Please leave!";
> // The message to show if the password is incorrect
>
> var pw = prompt (message,"");
>
> if (pw != password) {
> alert (incmess);
> top.location.href = "url for redirect";
> }
>
> </SCRIPT>
>
> This code in IE6 yields a popup to enter the password and if the wrong
> password is entered, the user is redirected to a url of my choosing.
>
> In IE8 no popup to enter the password is produced and when the page is
> clicked, the user is redirected to the url chosen for redirect.
>
> I tried using the meta tag:
> <meta http-equiv="X-UA-Compatible" content="IE=7">
>
> This yields the same results as IE so is of no help.
>
> My question is for those using IE8 how do I get IE8 to give the popup to
> enter the password?
>
> Any help would be greatly appreciated.
> Thank you.
>


3 seconds of searching on Google for the terms

IE8 prompt

and the 3rd result is this: https://bugs.launchpad.net/ivle/+bug/411731

prompt() is disabled in IE8.

Don't use prompt(), it's a mess and isn't universally supported. If you need
to have a "pop up" to ask a user to enter something, use a div layer. Also,
why are you including the password in clear text in the script itself? It's
not hard for someone to hit View Source and get around this terrible attempt
at keeping unknown users out.

--
Dan

Reply With Quote
  #9 (permalink)  
Old 02-26-2010
Jerry
 

Posts: n/a
Re: Password Rediret in IE8
Thanks for the response Dan. I had done a lot of googling but "IE8 prompt"
was not one I had thought about but I will try that.

If the prompt() is disabled in IE, I will check that and see if it can be
turned on.

As far as needing a popup for password entry, I have never seen password
script that did not put that popup in. The reason I like the script I am
using is that if someone tries the look at the source code, they can NOT see
the view source to get the password from there. That makes it a little more
secure.

I do appreciate the help. Thank you

"Dan" <news@worldofspack.com> wrote in message
news:F4855B1C-123C-42A4-AA15-6D59719BAE33@microsoft.com...
>
> "Jerry" <jhuffman@lexcominc.net> wrote in message
> news:mfOgn.328304$FK3.289140@en-nntp-06.dc1.easynews.com...
>> I am running Window XP Pro and since many services have stopped
>> supporting IE6, I have installed IE8.
>>
>> I make simple webpages for friends and some of them want the websites
>> passworded for access. I use the follow code to password the sites:
>>
>> <SCRIPT LANGUAGE="JavaScript">
>>
>>
>> var password = "password" ;
>> // The desired password
>>
>> var message = "This is out of bounds,if you have the password come right
>> in, if not please leave ";
>> // The message to show when the user is prompted for the password
>>
>> var incmess = "Looks like you weren't invited, Please leave!";
>> // The message to show if the password is incorrect
>>
>> var pw = prompt (message,"");
>>
>> if (pw != password) {
>> alert (incmess);
>> top.location.href = "url for redirect";
>> }
>>
>> </SCRIPT>
>>
>> This code in IE6 yields a popup to enter the password and if the wrong
>> password is entered, the user is redirected to a url of my choosing.
>>
>> In IE8 no popup to enter the password is produced and when the page is
>> clicked, the user is redirected to the url chosen for redirect.
>>
>> I tried using the meta tag:
>> <meta http-equiv="X-UA-Compatible" content="IE=7">
>>
>> This yields the same results as IE so is of no help.
>>
>> My question is for those using IE8 how do I get IE8 to give the popup to
>> enter the password?
>>
>> Any help would be greatly appreciated.
>> Thank you.
>>

>
> 3 seconds of searching on Google for the terms
>
> IE8 prompt
>
> and the 3rd result is this: https://bugs.launchpad.net/ivle/+bug/411731
>
> prompt() is disabled in IE8.
>
> Don't use prompt(), it's a mess and isn't universally supported. If you
> need to have a "pop up" to ask a user to enter something, use a div layer.
> Also, why are you including the password in clear text in the script
> itself? It's not hard for someone to hit View Source and get around this
> terrible attempt at keeping unknown users out.
>
> --
> Dan
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4898 (20100226) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>




__________ Information from ESET NOD32 Antivirus, version of virus signature database 4898 (20100226) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




Reply With Quote
  #10 (permalink)  
Old 02-26-2010
Dan
 

Posts: n/a
Re: Password Rediret in IE8
I can use telnet, Fiddler2, or just disable javascript in the browser and
view the source. There are a vast number of other ways to view it.

If I ever need simple passworded access to a web page I use .htaccess or a
similar server side setting; or a server side script (ASP, PHP, etc), and
have all processing done at the server side - no need to use any client
scripting, no chance of the password being seen because it's never in the
source, and can use a standard HTML form for password entry.

Dan


"Jerry" <jhuffman@lexcominc.net> wrote in message
news:ieRhn.331896$FK3.303493@en-nntp-06.dc1.easynews.com...
> Thanks for the response Dan. I had done a lot of googling but "IE8
> prompt" was not one I had thought about but I will try that.
>
> If the prompt() is disabled in IE, I will check that and see if it can be
> turned on.
>
> As far as needing a popup for password entry, I have never seen password
> script that did not put that popup in. The reason I like the script I am
> using is that if someone tries the look at the source code, they can NOT
> see the view source to get the password from there. That makes it a
> little more secure.
>
> I do appreciate the help. Thank you
>
> "Dan" <news@worldofspack.com> wrote in message
> news:F4855B1C-123C-42A4-AA15-6D59719BAE33@microsoft.com...
>>
>> "Jerry" <jhuffman@lexcominc.net> wrote in message
>> news:mfOgn.328304$FK3.289140@en-nntp-06.dc1.easynews.com...
>>> I am running Window XP Pro and since many services have stopped
>>> supporting IE6, I have installed IE8.
>>>
>>> I make simple webpages for friends and some of them want the websites
>>> passworded for access. I use the follow code to password the sites:
>>>
>>> <SCRIPT LANGUAGE="JavaScript">
>>>
>>>
>>> var password = "password" ;
>>> // The desired password
>>>
>>> var message = "This is out of bounds,if you have the password come right
>>> in, if not please leave ";
>>> // The message to show when the user is prompted for the password
>>>
>>> var incmess = "Looks like you weren't invited, Please leave!";
>>> // The message to show if the password is incorrect
>>>
>>> var pw = prompt (message,"");
>>>
>>> if (pw != password) {
>>> alert (incmess);
>>> top.location.href = "url for redirect";
>>> }
>>>
>>> </SCRIPT>
>>>
>>> This code in IE6 yields a popup to enter the password and if the wrong
>>> password is entered, the user is redirected to a url of my choosing.
>>>
>>> In IE8 no popup to enter the password is produced and when the page is
>>> clicked, the user is redirected to the url chosen for redirect.
>>>
>>> I tried using the meta tag:
>>> <meta http-equiv="X-UA-Compatible" content="IE=7">
>>>
>>> This yields the same results as IE so is of no help.
>>>
>>> My question is for those using IE8 how do I get IE8 to give the popup to
>>> enter the password?
>>>
>>> Any help would be greatly appreciated.
>>> Thank you.
>>>

>>
>> 3 seconds of searching on Google for the terms
>>
>> IE8 prompt
>>
>> and the 3rd result is this: https://bugs.launchpad.net/ivle/+bug/411731
>>
>> prompt() is disabled in IE8.
>>
>> Don't use prompt(), it's a mess and isn't universally supported. If you
>> need to have a "pop up" to ask a user to enter something, use a div
>> layer. Also, why are you including the password in clear text in the
>> script itself? It's not hard for someone to hit View Source and get
>> around this terrible attempt at keeping unknown users out.
>>
>> --
>> Dan
>>
>> __________ Information from ESET NOD32 Antivirus, version of virus
>> signature database 4898 (20100226) __________
>>
>> The message was checked by ESET NOD32 Antivirus.
>>
>> http://www.eset.com
>>
>>
>>

>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4898 (20100226) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
>




Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not reset admin password under safe mode due to password policy? john microsoft.public.windows.vista.security 1 01-26-2010 16:21
Forgot e-mail password; messed-up Live password reset...account disabled and in limbo.... kaydianne microsoft.public.windows.vista.mail 1 07-04-2009 16:14
*!NOT your usual Vista Password Problem - Incorrect Password even every time even after resetting fvuong microsoft.public.windows.vista.administration accounts passwords 34 03-25-2009 15:59
MSN password, Outlook password, AIM and more. Password recovery and find product key tplink60 Security & Privacy Software Feed 0 01-09-2009 02:34
Security World: Password protect web pages with HTML Password Lock Steve Security News 0 05-18-2007 12:01




All times are GMT +1. The time now is 21:15.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120