/    Sign up×
Community /Pin to ProfileBookmark

Why wont my message box appear?

What I had before was a form with a submit and a clear button. The submit button would insert the data into my database. However, what i want to happen is for the user to click the submit button on the page, and a message box to pop up. On that message box, i want to confirm with the user the three values that they have selected. If their entries are correct, then the “ok” button in the message box will then submit the data into the database. If, perhaps, they made a mistake, the “cancel” button in the dialog box will bring them back to the page.

With the code i have created, not even a message box appears. Heres my code. Can anyone offer suggestions as to why my message box does not appear? I truly do appreciate your help.
*** NOTE: I have included the ASP functions to insert and cancel the data just before the HTML. I hope this helps yo help me!!

[code]
end sub

Sub cmdInsert_Click(sender As Object, e As EventArgs)
InsertData()
End Sub

Sub cmdCancel_Click(sender As Object, e As EventArgs)
End Sub

</script>
<html>
<head>
<title>Account Transfers</title>
<link href=”styles.css” type=”text/css” rel=”stylesheet” />

<script language=”JavaScript” type=”text/javascript”>
<!–
function conf(){
str=’Do you want your request to transfer account

‘+document.forms[0].AccNumber.options[document.forms[0].AccNumber.selectedIndex].text;
str+=’from ‘+document.forms[0].FromName.options[document.forms[0].FromName.selectedIndex].text;
str+=’to ‘+document.forms[0].ToName.options[document.forms[0].ToName.selectedIndex].text;
if (!confirm(str))return false;
}
//–>
</script>

</head>
<body class=”empty” leftmargin=”0″ topmargin=”0″ marginheight=”0″ marginwidth=”0″>
<form onsubmit=”return Conf()” action=”submit.asp?Enter=True” method=”post” runat=”server”>
<table height=”100%” cellspacing=”0″ cellpadding=”0″ width=”100%” border=”0″>
<tbody>
<tr bgcolor=”#000000″>
<td valign=”top” align=”left”>
&nbsp;</td>
</tr>
<tr>
<td width=”100%” background=”gor_white.bmp”>
<img height=”1″ src=”images/gor_white.gif” width=”20″ border=”NONE” /></td>
</tr>
<tr bgcolor=”#002041″>
<td valign=”top” align=”left” width=”100%” height=”77″>
<img height=”77″ src=”images/header.bmp” width=”960″ /></td>
</tr>
<tr>
<td width=”100%” background=”gor_white.bmp”>
<img height=”1″ src=”images/gor_white.bmp” width=”20″ border=”NONE” /></td>
</tr>
<tr bgcolor=”#36647e”>
<td valign=”top” align=”left”>
&nbsp;</td>
</tr>
<tr>
<td valign=”center” align=”middle” height=”98%”>
<table bordercolor=”#5e768e” cellspacing=”0″ cellpadding=”5″ width=”80%” bgcolor=”#b6cce4″ border=”1″>
<tbody>
<tr>
<td width=”400″>
<font face=”Verdana” size=”2″><b>Account Number: </b></font><br />

<asp:DropDownList id=”AccNumber” name=”AccNumber” runat=”server”

DataValueField=”accnumber” DataTextField=”AccNumber” Width=”400px”></asp:DropDownList>
</td>
<td rowspan=”4″><CENTER><IMG SRC=”images/login.bmp” width=”360″ height=”270″ border=”0″

valign=”middle”></CENTER></td>
</tr>
<tr>
<td width=”400″>
<font face=”Verdana” size=”2″><b>Transer From:</b></font><br />

<asp:DropDownList id=”fromname” name=”fromName” runat=”server”

DataValueField=”TerritoryName” DataTextField=”TerritoryName” Width=”214px”></asp:DropDownList>
</td>
</tr>
<tr>
<td width=”400″>
<font face=”Verdana” size=”2″><b>Transer to:</b></font><br />
<asp:DropDownList id=”toname” name=”toName” runat=”server” DataValueField=”TerritoryName”

DataTextField=”TerritoryName” Width=”215px”></asp:DropDownList>
</td>
</tr>
<tr>
<td width=”400″> <center>

<input type=”submit”>
</center></td></tr>
</tbody>
</table>
</td>
</tr>
</form>
<td valign=”top” align=”middle”>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr>
<tr>
<td valign=”top” align=”middle” colspan=”3″>
<hr color=”#5e768e” />
</td>
</tr>
<tr>
<td valign=”top” align=”middle” colspan=”3″ bgcolor=”#002041″>
<font class=”text_bold_bl” color=”#FFFFFF” face=”verdana” size=”1″>The contents of this site are highly

confidential and are
the property of Boston Scientific Corporation </font></td>
</tr>

<tr>
<td align=”CENTER” valign=”TOP” bgcolor=”#002041″>
<font class=”copyright”><font class=”copyright_lnk” color=”#FFFFFF” face=”verdana” size=”1″>Copyright 2000 Boston

Scientific Corporation or its affiliates. All rights reserved. </font></td>
</tr>
</tbody>
</table>
</body>
</html>
[/code]

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@sciguyryanJun 14.2004 — I'm no VBS expert but, you appear to e missing your <script type="text/VBScript"> tags for one.
×

Success!

Help @cusoxty spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...