Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   JavaScript and Client-Side Browser Scripting (http://www.programmingforums.org/forum23.html)
-   -   Need Javascript Code??? (http://www.programmingforums.org/showthread.php?t=8654)

raf_123 Mar 1st, 2006 5:44 AM

Need Javascript Code???
 
Hi peeps,

When clicking on a link, a new window opens opting for a username and password. Has any1 got the javascript code for this??

Im creating a web-based system, using MySQL and PHP. I need to input the javascript code.

Thanks

Polyphemus_ Mar 1st, 2006 6:05 AM

http://msdn.microsoft.com/library/de...sthumbnail.asp

3 secs with Google.

.TD Mar 1st, 2006 6:49 AM

There should be somekind of punisment for people that haven't even tried to use Google before comming here and asking :p OR better yet, a check box that says "Have you first Googled it?" before you can start a new topic :)

raf_123 Mar 1st, 2006 9:34 AM

funny guy!

anyway thanks

tempest Mar 1st, 2006 1:24 PM

@.TD and Polyphemus_: I think he was talking about HTTP Authentication prompt.

raf_123: If you're talking about something that looks like the image below this, it can't be done in JavaScript (unless M$ has some control for it, which i doubt)... only the server can prompt the browser to open it up via an HTTP 401 response. For more info: (Google for .htpasswd for apache) or ( http://us3.php.net/features.http-auth for php).

http://www.cs.dal.ca/studentservices...cess_title.gif

raf_123 Mar 2nd, 2006 6:12 AM

Thanks tempest.........

Exactly what i wanted....

User and Password window


All times are GMT -5. The time now is 7:36 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC