Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jun 2010
    Location
    Canada
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Thumbs down Urgent! IE JavaScript Password Problem

    I'm having trouble with a Javascript pop up box not appearing on Internet Explorer. I have tested it with IE7 and IE8 with no success. It works on Firefox 3.6.3 and Opera.

    On internet explorer this yellow bar appears;


    However, once clicked and given temporary permission the page reloads not showing the pop up box and the yellow bar is still present.

    I have re-created the situation here;
    http://html.comuf.com/

    problem.html is the page I need help on. The correct password is real which redirects you to real.html.

    I am open to using new scripts but this line/function is crucial;
    Code:
    location.href= password + ".html";
    This problem is for a friend of mine who does design work, his client is having trouble with this. The pop up box must appear after allowed temp through IE, or even better no user allowance is required while keeping the password +.html code.

    P.S. I plan to stick around and learn after this gets answered!

  • #2
    Senior Coder jmrker's Avatar
    Join Date
    Aug 2006
    Location
    FL
    Posts
    3,146
    Thanks
    39
    Thanked 505 Times in 499 Posts
    If this is a local script, then the message, I believe, is normal until you change the security settings on your computer.
    Probably will go away if the script is on a server.

  • #3
    New Coder
    Join Date
    Jun 2010
    Location
    Canada
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Hi,

    Thanks for the response.

    It is not a local script. The message is due to security settings on the user computer though. However, once the user clicks the info bar and allows the script to run it does not run and the info bar comes up again.

    Cant this be fixed? Is there a better alternative?

  • #4
    Regular Coder
    Join Date
    Mar 2006
    Posts
    728
    Thanks
    35
    Thanked 132 Times in 123 Posts
    There is an explanation and possible solution for dealing with IE7 and 8 security blocking of user input in prompts and such here-

    http://pipwerks.com/2007/08/08/a-cro...script-prompt/


    window.showModalDialog is also supported in recent versions of Firefox, Chrome, Safai and Opera
    Last edited by mrhoo; 06-09-2010 at 06:25 PM.

  • Users who have thanked mrhoo for this post:

    Staccs (06-09-2010)

  • #5
    New Coder
    Join Date
    Jun 2010
    Location
    Canada
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by mrhoo View Post
    There is an explanation and possible solution for dealing with IE7 and 8 security blocking of user input in prompts and such here-

    http://pipwerks.com/2007/08/08/a-cro...script-prompt/


    window.showModalDialog is also supported in recent versions of Firefox, Chrome, Safai and Opera
    Thank you very much. I am reading it over for the second time - but I'm not sure if I understand coding enough to implement this. Where do I put
    Code:
    location.href= password + ".html";
    ?

    Thanks again, I hope to answer my own question.
    Last edited by Staccs; 06-09-2010 at 07:57 PM.

  • #6
    New Coder
    Join Date
    Jun 2010
    Location
    Canada
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Got it working, then tested it in IE. IE blocks it. And again, even after allowing it doesn't working. I'm thinking I should just try and do it without a popup. Not sure why a pop up is needed anways... Any help is appreciated.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •