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

Thread: prevent pop-up

  1. #1
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    prevent pop-up

    Hi all....I'm building a log-on page for a project at my work location. On this page, there is a 'Help' link for people that forget their ID/password. However, when you click on the 'Help' link, it prompts you for your ID/password! How can I prevent this pop-up? is there an attribute that I can specify in the HTML?

    Thanks!
    Steve

  • #2
    Senior Coder BarrMan's Avatar
    Join Date
    Feb 2005
    Location
    Israel.
    Posts
    1,644
    Thanks
    69
    Thanked 83 Times in 82 Posts
    Well, if you don't want the link you should go to the page you have it inside and just delete it.
    If this links does something else too then you can simply remove the onclick attribute of the link:
    Code:
    <a href="goSomewhere.html" onclick="window.open()">Help</a>
    Code:
    <a href="goSomewhere.html">Help</a>

  • #3
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    However, when you click on the 'Help' link, it prompts you for your ID/password! How can I prevent this pop-up?
    Are you trying to prevent the prompt, or the popup? You need to be more specific…and a link to the page in question, or posting some code, is certainly not going to hurt.

  • #4
    Regular Coder
    Join Date
    Apr 2006
    Posts
    117
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Yeah, same type of question for ya.

    Are you talking about a target="_blank" or like permissions (CHMOD) box?

  • #5
    eak
    eak is offline
    Regular Coder eak's Avatar
    Join Date
    Jun 2002
    Location
    Nashville, TN
    Posts
    354
    Thanks
    0
    Thanked 26 Times in 26 Posts
    I think this is what he is looking for.

    This should work, assuming you have control over the server.
    I know it worked for me on my dev server.

    Code:
    <Directory "/your/path/htdocs">
    	
    	AuthUserFile /your/path/.htpasswd
    	AuthName "Some Name here"
    	AuthType Basic
    	require valid-user
    
    	Options None
    	AllowOverride None
    	Order allow,deny
    	Allow from all
    	
    	<FilesMatch  "your_exception_here.php">
    		Order allow,deny
    		Allow from all
    		Satisfy any
    	</FilesMatch>
    </Directory>
    eak | "Doing a good deed is like wetting your pants; every one can see the results, but only you can feel the warmth."


  •  

    Posting Permissions

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