DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   Login window? (http://www.daniweb.com/forums/thread122803.html)

kitsune May 6th, 2008 1:09 pm
Login window?
 
Hi,

I want to show a login pop up window that has the username and password, I want it to be like the prompt.

Can anyone help....

xan May 6th, 2008 3:07 pm
Re: Login window?
 
If you mean the popup window that appears in your browser asking for a username and password, this relies on the htaccess and htpasswd files, was it this you are looking for or another type of login box?

Traicey May 12th, 2008 3:36 am
Re: Login window?
 
U can create ur login page separately and use window.open in ur home page, using javascript or anywhere in the body of ur default home page the following will lead you to the right path

You can also use the window.moveTo function to move the popup window to a desired location. The code below shows positioning the popup at a desired location

function mypopup()
 {
  mywindow = window.open ("TheNameOfUrLoginWindow.htm",
  "mywindow","location=1,status=1,scrollbars=1,
  width=100,height=100");
  mywindow.moveTo(0,0);
 }
The code positions the popup on the top left corner of the screen.

kitsune May 12th, 2008 4:13 am
Re: Login window?
 
Thank You this is exactly what I want :)

Traicey May 12th, 2008 6:00 am
Re: Login window?
 
Ur welcome :) , Mark it as solved if solved


All times are GMT -4. The time now is 4:03 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC