Password Rediret in IE8

  • Thread starter Thread starter Jerry
  • Start date Start date
J

Jerry

Guest
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:









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";

}







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:





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
 
Developer-specific resources include:



MSDN IE Development Forum (post such questions here instead)

http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/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/...FamilyID=8e6ac106-525d-45d0-84db-dccff3fae677



Expression Web SuperPreview Release Notes

http://www.microsoft.com/expression/products/Web_SuperPreviewReleaseNotes.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/tutorials/email-scanning/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:

>

>

>

>

> 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";

> }

>

>

>

> 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:

>

>

> 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
 
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]" 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/Forums/en-US/iewebdevelopment/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/...FamilyID=8e6ac106-525d-45d0-84db-dccff3fae677

>

> Expression Web SuperPreview Release Notes

> http://www.microsoft.com/expression/products/Web_SuperPreviewReleaseNotes.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/tutorials/email-scanning/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:

>>

>>

>>

>>

>> 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";

>> }

>>

>>

>>

>> 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:

>>

>>

>> 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
 
"Jerry" 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:





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";

}





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]" 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/Forums/en-US/iewebdevelopment/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/...FamilyID=8e6ac106-525d-45d0-84db-dccff3fae677

>>

>> Expression Web SuperPreview Release Notes

>> http://www.microsoft.com/expression/products/Web_SuperPreviewReleaseNotes.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/tutorials/email-scanning/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:

>>>

>>>

>>>

>>>

>>> 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";

>>> }

>>>

>>>

>>>

>>> 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:

>>>

>>>

>>> 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

>

>

>

>
 
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" wrote in message

news:%23eMiw2WtKHA.1660@TK2MSFTNGP06.phx.gbl...

>

> "Jerry" 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:

>

>

> 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";

> }

>

>

> 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]" 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/Forums/en-US/iewebdevelopment/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/...FamilyID=8e6ac106-525d-45d0-84db-dccff3fae677

>>>

>>> Expression Web SuperPreview Release Notes

>>> http://www.microsoft.com/expression/products/Web_SuperPreviewReleaseNotes.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/tutorials/email-scanning/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:

>>>>

>>>>

>>>>

>>>>

>>>> 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";

>>>> }

>>>>

>>>>

>>>>

>>>> 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:

>>>>

>>>>

>>>> 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
 
> Since IE6 Microsoft has not had a decent browser.



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" wrote in message

> news:%23eMiw2WtKHA.1660@TK2MSFTNGP06.phx.gbl...

>>

>> "Jerry" 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:

>>

>>

>> 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";

>> }

>>

>>

>> 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.
 
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/forums/en-US/category/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]" wrote in message

news:eA0vizXtKHA.5936@TK2MSFTNGP04.phx.gbl...

>> Since IE6 Microsoft has not had a decent browser.


>

> 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" wrote in message

>> news:%23eMiw2WtKHA.1660@TK2MSFTNGP06.phx.gbl...

>>>

>>> "Jerry" 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:

>>>

>>>

>>> 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";

>>> }

>>>

>>>

>>> 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
 
"Jerry" 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:

>

>

>

>

> 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";

> }

>

>

>

> 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:

>

>

> 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
 
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" wrote in message

news:F4855B1C-123C-42A4-AA15-6D59719BAE33@microsoft.com...

>

> "Jerry" 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:

>>

>>

>>

>>

>> 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";

>> }

>>

>>

>>

>> 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:

>>

>>

>> 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
 
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" 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" wrote in message

> news:F4855B1C-123C-42A4-AA15-6D59719BAE33@microsoft.com...

>>

>> "Jerry" 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:

>>>

>>>

>>>

>>>

>>> 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";

>>> }

>>>

>>>

>>>

>>> 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:

>>>

>>>

>>> 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

>

>

>

>
 
Back
Top