You can load the window properties from a recordset or ADODB connection and then use the javascript like in this example:
winpops = window.open(("yourpage.asp?nickname=<%= nickname %>),"Cheking Password","width=<%= width %>,height=<%= height %>,top=<%= top %>,left=<%= left %>,");
winpops.focus();
I don't know what you want to do exactly. But here, the script will open a window and send the nickname as a variable. The second parameter is the window title and then I sepcify width, height, etc. from my database parameters.
Then, I ask for the password in that window and submit the form with the nickname and password variable to a page that will check the password like this:
<% If Request("password")=recordset1.Fields.Item("passwo rd").Value Then %>
//here you write the javascript for closing the window
<% Else %>
Wrong password
<% End If %>
Hope that helps.
|