ChrisQuick
Programmer
In one frame (frame A) I have a form for running a ASP query with a submit button. The OnSubmit calls a function named opennew and passes a url that displays a "Running Query.." message in a new window while the ASP runs.
<SCRIPT LANGUAGE="JavaScript">
function opennew(page) {
messageWin = this.open(page, "messageWindow", "dependent=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=200,height=100,top=5,left=5"
}
</SCRIPT>
The results of the query is then displayed in another frame (frame B). In the code that ASP returns I've got:
<script language="JavaScript">
messageWindow.close()
</script>
I keep getting a message stating that messageWindow is not an object.
Any ideas why it doesn't work? [sig][/sig]
<SCRIPT LANGUAGE="JavaScript">
function opennew(page) {
messageWin = this.open(page, "messageWindow", "dependent=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=200,height=100,top=5,left=5"
}
</SCRIPT>
The results of the query is then displayed in another frame (frame B). In the code that ASP returns I've got:
<script language="JavaScript">
messageWindow.close()
</script>
I keep getting a message stating that messageWindow is not an object.
Any ideas why it doesn't work? [sig][/sig]