|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Promting popup
Hi. Im having a little problem.
I need to be able to make a popup, thus when clicking a link, while not loged in, a popup is promted, with a username and password field, and a submit button, then when filled and submitted, the box closes, and the original site is loaded. If not filled correctly, the original site will redirect to index site. im using .php. - Pheifel |
|
#2
|
||||
|
||||
|
http://jsexamples.com/search/?op=2&q=24 - this site has a tonne of examples on how to do popups.
|
|
#3
|
|||
|
|||
|
this is the code that i have in my popup.js document.
what i need to figure out, is how to refresh index.php after the out() function have been loaded by clicking the login button in the popUpWindow() function. - Pheifel Code:
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
var URLStr = "Login.php";
var left = "300";
var top = "200";
var width = "300";
var height = "100";
if(popUpWin)
{
if(!popUpWin.closed) popUpWin.close();
}
popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,m enub ar=no,scrollbar=no,resizable=no,copyhistory=yes,wi dth='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
var exit=true;
function out()
{
if (exit)*{ window.close("Login.php"); window.refresh("index.php"); }
}
|
|
#4
|
||||
|
||||
|
Look up the window.opener() method - it has been discussed in this forum several times. It allows you to perform operations on the opening window, from a remote window.
|
|
#5
|
|||
|
|||
|
yep... i found it
after som searching. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Promting popup |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|