Here is my problem.
I Created a link on page 1 that opens modeless popup password window.
[HTML]<A onClick="window.showModelessDialog('smPassword.asp ','ScrollData','status:false;dialogWidth:400px;dia logHeight:200px')">
<U>My Password</U>
</a>
[/HTML]
Works Great !
From that Password page ('smPassword.asp'), I enter the password, verify it is valid and then open another page for data entry.
Expand|Select|Wrap|Line Numbers
- <Div align="center">
- <h3>Enter Password</h3>
- <form method="Post" ACTION="">
- <input type="password" name="pwd" value=""><br><br>
- <input type="submit" value="Enter Password" onClick="checkpwd(this.form)">
- </form>
- </Div>
Expand|Select|Wrap|Line Numbers
- function checkpwd(form)
- {
- var pwd;
- pwd=form.pwd.value;
- if (pwd == "Password")
- {
- window.open("<%=strServerName%>/Path1/Path2/BlahBlahBlah.asp", "windowname", "height=500, width=1015, left=1, top =1, resizable=yes, dependent=yes, scrollbars=yes");
- window.close(); 'This closes the dialog window confirmed it works correctly
- <%
- Session("loginokay") = True
- %>
- }
- else
- {
- alert("Incorrect Password - Please Try Again !");
- }
- }
the BlahBlahBlah.asp window opens and then....
the 'smPassword.asp' window re-opens (remember we closed it and verified it in the code), on top of BlahBlahBlah.asp and NOT in the modeless view.
I have to close it and the BlahBlahBlah.asp page is there good to go.
One last thing, If I call a Non Existant window in the window.open(<%strServerName%> code the Page Cannot Be Found window opens AND so does the smPassword window in NON dialog mode. I have checked code in all affected pages and there is absolutley no other reference to smPassword.asp.
Very Weird.
Question: What is causing the 'smPassword.asp' window to open again.
--------------------------------------------------------------------------------
frozedog