Forums

This topic is locked

Popup confirming submission!!!

Posted 10 Feb 2004 14:54:48
1
has voted
10 Feb 2004 14:54:48 James Wilkinson posted:
I am using ASP with VBScript.

I have a page containing frames. In the bottom frame there is a 'sign up to mailing list' form.
When someone has completed the form I would like a confirmation popup to appear, also if there is an error, e.g. email already exists, i would like a popup to appear. At the moment i can only get the frame to redirect to an error page.
Can anyone help? It would be much appreciated.

Edited by - slink on 06 Nov 2007 18:58:36

Replies

Replied 10 Feb 2004 16:36:00
10 Feb 2004 16:36:00 Erik Piisila replied:
After form submission, have the page redirect the frame to a copy of it's default state or frameset page. But make the copy have an "onload" "open browser" java statement. Much like this.


<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body onLoad="MM_openBrWindow('/confirmation.asp','popup','scrollbars=yes,width=300,height=300')">
</body>
</html>

Reply to this topic