So, I have an order form that works fine in IE but when you enter the info in Firefox and click the Submit Button, nothing happens. I am not sure if the button is not working or if there is a error in the Javascript code. Regardless, I have one of those situations where I can look at this all day and see nothing. Please help! TIA.....
When you click the submit buttn, I do a form fields error check . If there are errors, you get a alert. If no errors, I submit the form.
Here is the button code: -
<div align="right">
-
<input type="button" value="Submit Order" onclick="advance()"/>
-
</div></td>
-
-
Here is the javascript : -
function advance() {
-
var fname = document.getElementById("FullName").value;
-
var badd1 = document.getElementById("BAdd1").value;
-
var bcity = document.getElementById("BCity").value;
-
var bzip = document.getElementById("BZip").value;
-
var email = document.getElementById("emailaddress").value;
-
var sadd1 = document.getElementById("SAdd1").value;
-
var scity = document.getElementById("SCity").value;
-
var szip = document.getElementById("SZip").value;
-
var to = document.getElementById("Age_Verify").checked;
-
var ccname = document.getElementById("CC_Name").value;
-
var cctype = document.getElementById("CCType").value;
-
var ccnumber = document.getElementById("CC_Number").value;
-
var Fest = document.getElementById("T_GF").value;
-
var Dinner = document.getElementById("T_WMD").value;
-
-
var error = "";
-
if ((Fest == "0") && (Dinner== "0")) {
-
error = error + "-No Tickets Were Ordered\n";
-
}
-
if (fname=="") {
-
error = error + "-Full Name\n";
-
}
-
if (badd1=="") {
-
error = error + "-Billing Address\n";
-
}
-
if (bcity=="") {
-
error = error + "-Billing City\n";
-
}
-
if (bzip=="") {
-
error = error + "-Billing Zip Code\n";
-
}
-
if (email=="") {
-
error = error + "-Email\n";
-
}
-
if (sadd1=="") {
-
error = error + "-Shipping Address\n";
-
}
-
if (scity=="") {
-
error = error + "-Shipping City\n";
-
}
-
if (szip=="") {
-
error = error + "-Shipping Zip Code\n";
-
}
-
if (ccname=="") {
-
error = error + "-Credit Card Name\n";
-
}
-
if (cctype=="") {
-
error = error + "-Credit Card Type\n";
-
}
-
if (ccnumber=="") {
-
error = error + "-Credit Card Number\n";
-
}
-
if (error != "") {
-
alert("The following fields are required:\n"+error)
-
if (!to) {
-
alert("You must verify that you are over 21 by clicking the checkbox.")
-
}
-
} else if (!to) {
-
alert("You must verify that you are over 21 by clicking the checkbox.")
-
} else {
-
document.getElementById("form1").submit();
-
}
-
}
-
</script>
-
-
Regards,
Steve
3 1748 Dormilich 8,658
Recognized Expert Moderator Expert
hard to tell without the complete html form code. have you checked whether the values in advance() are set?
regards
BTW: IE doesn't handle true XHTML (but that's not part of the problem)
Thanks for the repsonse, attached is the complete code. I do believe all the variables are properly initialized. What would casuse Java to work in IE and not in Firefox (I have never understood that concept). -
<%@LANGUAGE="VBSCRIPT"%>
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
<script type="text/javascript">
-
-
-
function sUpdate(){
-
var c = document.getElementById("same").checked;
-
if (c) {
-
document.getElementById("SAdd1").value = document.getElementById("BAdd1").value;
-
document.getElementById("SAdd2").value = document.getElementById("BAdd2").value;
-
document.getElementById("SCity").value = document.getElementById("BCity").value;
-
document.getElementById("SState").value = document.getElementById("BState").value;
-
document.getElementById("SZip").value = document.getElementById("BZip").value;
-
}
-
}
-
-
function to_currency(val,currency){
-
val=""+Math.round(100*val);
-
var dec_point=val.length-2;
-
var first_part=val.substring(0,dec_point);
-
var second_part=val.substring(dec_point,val.length);
-
var result=first_part+"."+second_part;
-
if(!currency){
-
currency="";
-
}
-
result=currency+result;
-
if(val=0) {
-
result="$0.00";
-
}
-
-
-
return result;}// -->
-
-
function Calc_Ord()
-
{
-
var val1 = document.form1.T_GF.value;
-
var val2 = document.form1.T_WMD.value;
-
var disc1 = document.form1.Discount_Code.value.toUpperCase();
-
if ((disc1 == "SCHAUMBURG") || (disc1 == "SAV") || (disc1 == "SPECTATOR") || (disc1 == "FLICK") || (disc1 == "CHEESE") || (disc1 == "MARI") || (disc1 == "STORE") || (disc1 == "BIN36") || (disc1 == "DAIRY")|| (disc1 == "BOTT")|| (disc1 == "PERM") || (disc1 == "CANDID")|| (disc1 == "WHITE")|| (disc1 == "KERRY")|| (disc1 == "FLOR")|| (disc1 == "IGOUR")|| (disc1 == "REID") ){
-
var ext1 = val1 * 45.00;
-
document.form1.Unit_Amt_1.value = 45;
-
var ext2 = val2 * 117.00;
-
document.form1.Unit_Amt_2.value = 117;
-
}
-
else if ((disc1 == "AIWF") || (disc1 == "AIWF")){
-
var ext1 = val1 * 40.00;
-
document.form1.Unit_Amt_1.value = 40;
-
var ext2 = val2 * 104.00;
-
document.form1.Unit_Amt_2.value = 104;
-
}
-
else {
-
var ext1 = val1 * 50.00;
-
document.form1.Unit_Amt_1.value = 50;
-
var ext2 = val2 * 130.00;
-
document.form1.Unit_Amt_2.value = 130;
-
}
-
var grtot1 = ext1 + ext2;
-
document.form1.Ext_Amt_1.value = to_currency(ext1,"$ ");
-
document.form1.Ext_Amt_2.value = to_currency(ext2,"$ ");
-
document.form1.Tot_Amt.value = to_currency(grtot1,"$ ");
-
}
-
-
function advance() {
-
var fname = document.getElementById("FullName").value;
-
var badd1 = document.getElementById("BAdd1").value;
-
var bcity = document.getElementById("BCity").value;
-
var bzip = document.getElementById("BZip").value;
-
var email = document.getElementById("emailaddress").value;
-
var sadd1 = document.getElementById("SAdd1").value;
-
var scity = document.getElementById("SCity").value;
-
var szip = document.getElementById("SZip").value;
-
var to = document.getElementById("Age_Verify").checked;
-
var ccname = document.getElementById("CC_Name").value;
-
var cctype = document.getElementById("CCType").value;
-
var ccnumber = document.getElementById("CC_Number").value;
-
var Fest = document.getElementById("T_GF").value;
-
var Dinner = document.getElementById("T_WMD").value;
-
-
var error = "";
-
if ((Fest == "0") && (Dinner== "0")) {
-
error = error + "-No Tickets Were Ordered\n";
-
}
-
if (fname=="") {
-
error = error + "-Full Name\n";
-
}
-
if (badd1=="") {
-
error = error + "-Billing Address\n";
-
}
-
if (bcity=="") {
-
error = error + "-Billing City\n";
-
}
-
if (bzip=="") {
-
error = error + "-Billing Zip Code\n";
-
}
-
if (email=="") {
-
error = error + "-Email\n";
-
}
-
if (sadd1=="") {
-
error = error + "-Shipping Address\n";
-
}
-
if (scity=="") {
-
error = error + "-Shipping City\n";
-
}
-
if (szip=="") {
-
error = error + "-Shipping Zip Code\n";
-
}
-
if (ccname=="") {
-
error = error + "-Credit Card Name\n";
-
}
-
if (cctype=="") {
-
error = error + "-Credit Card Type\n";
-
}
-
if (ccnumber=="") {
-
error = error + "-Credit Card Number\n";
-
}
-
if (error != "") {
-
alert("The following fields are required:\n"+error)
-
if (!to) {
-
alert("You must verify that you are over 21 by clicking the checkbox.")
-
}
-
} else if (!to) {
-
alert("You must verify that you are over 21 by clicking the checkbox.")
-
} else {
-
document.getElementById("form1").submit();
-
}
-
}
-
</script>
-
-
<%
-
'Add a new record to the recordset
-
dim rnd_max,rnd_min
-
rnd_max=999999
-
rnd_min=100000
-
randomize
-
rnd_num_pw=(Int((rnd_max-rnd_min+1)*Rnd(10)+rnd_min))
-
-
Dim adoCon, adocon2
-
Dim strSQL 'Holds the SQL query to query the database
-
-
'Create an ADO connection object
-
Set adoCon = Server.CreateObject("ADODB.Connection")
-
Set adoCon2 = Server.CreateObject("ADODB.Connection")
-
-
'Set an active connection to the Connection object using a DSN-less connection
-
adoCon.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("/database/small_pinot.mdb")
-
adoCon2.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("/database/Pinot_Days_Orders.mdb")
-
-
'Create an ADO recordset object
-
Set rsCust = Server.CreateObject("ADODB.Recordset")
-
Set StateList = Server.CreateObject("ADODB.Recordset")
-
-
strSQL = "SELECT * FROM USStates ORDER By StateID"
-
StateList.Open strSQL, adoCon
-
-
-
-
If (CStr(Request("MM_update")) = "form1") Then
-
'Set an active connection to the Connection object using a DSN-less connection
-
-
'Create an ADO recordset object
-
Set rsAddMain = Server.CreateObject("ADODB.Recordset")
-
Set rsAddDetail = Server.CreateObject("ADODB.Recordset")
-
-
'Initialise the strSQL variable with an SQL statement to query the database
-
strSQL = "SELECT Order_Main.* FROM Order_Main"
-
'Set the cursor type we are using so we can navigate through the recordset
-
rsAddMain.CursorType = 2
-
'Set the lock type so that the record is locked by ADO when it is updated
-
rsAddMain.LockType = 3
-
'Open the recordset with the SQL query
-
rsAddMain.Open strSQL, adoCon2
-
-
strSQL = "SELECT Order_Detail.* FROM Order_Detail"
-
'Set the cursor type we are using so we can navigate through the recordset
-
rsAddDetail.CursorType = 2
-
'Set the lock type so that the record is locked by ADO when it is updated
-
rsAddDetail.LockType = 3
-
'Open the recordset with the SQL query
-
rsAddDetail.Open strSQL, adoCon2
-
'Tell the recordset we are adding a new record to it
-
-
-
rsAddMain.AddNew
-
rsAddMain.Fields("Entity_Num") = Request.Form("entity_num")
-
rsAddMain.Fields("Entity_Name") = Request.Form("FullName")
-
rsAddMain.Fields("B_Address_1") = Request.Form("Badd1")
-
rsAddMain.Fields("B_Address_2") = Request.Form("Badd2")
-
rsAddMain.Fields("B_City") = Request.Form("BCity")
-
rsAddMain.Fields("B_State") = Request.Form("BState")
-
rsAddMain.Fields("B_Zip_Code") = Request.Form("BZip")
-
rsAddMain.Fields("S_Address_1") = Request.Form("SAdd1")
-
rsAddMain.Fields("S_Address_2") = Request.Form("SAdd2")
-
rsAddMain.Fields("S_City") = Request.Form("SCity")
-
rsAddMain.Fields("S_State") = Request.Form("SState")
-
rsAddMain.Fields("S_Zip_Code") = Request.Form("SZip")
-
rsAddMain.Fields("Contact_Phone") = Request.Form("telephone")
-
rsAddMain.Fields("Contact_Email") = Request.Form("emailaddress")
-
rsAddMain.Fields("CC_Type") = Request.Form("CCType")
-
rsAddMain.Fields("CC_Name") = Request.Form("cc_Name")
-
rsAddMain.Fields("CC_Number") = Request.Form("cc_Number")
-
rsAddMain.Fields("CC_Month") = Request.Form("expmonth")
-
rsAddMain.Fields("CC_Year") = Request.Form("expyear")
-
rsAddMain.Fields("Total") = Request.Form("Tot_Amt")
-
rsAddMain.Fields("Discount_Code") = Request.Form("Discount_Code")
-
rsAddMain.Fields("Comments") = Request.Form("Comments")
-
rsAddMain.Fields("Status") = "Pending"
-
rsAddMain.Fields("Billing_Status") = "Unpaid"
-
'Write the updated recordset to the database
-
rsAddMain.Update
-
if Request.Form("T_GF") <> 0 then
-
rsAddDetail.AddNew
-
rsAddDetail.Fields("Entity_Num") = Request.Form("entity_num")
-
rsAddDetail.Fields("ItemID") = 10
-
rsAddDetail.Fields("Ordered") = Request.Form("T_GF")
-
rsAddDetail.Fields("Unit_Price") = Request.Form("Unit_Amt_1")
-
rsAddDetail.Fields("Total") = Request.Form("Ext_Amt_1")
-
rsAddDetail.Update
-
end if
-
if Request.Form("T_WMD") <> 0 then
-
rsAddDetail.AddNew
-
rsAddDetail.Fields("Entity_Num") = Request.Form("entity_num")
-
rsAddDetail.Fields("ItemID") = 11
-
rsAddDetail.Fields("Ordered") = Request.Form("T_WMD")
-
rsAddDetail.Fields("Unit_Price") = Request.Form("Unit_Amt_2")
-
rsAddDetail.Fields("Total") = Request.Form("Ext_Amt_2")
-
rsAddDetail.Update
-
end if
-
'Reset server objects
-
rsAddMain.Close
-
rsAddDetail.Close
-
'Redirect to the guestbook.asp page
-
Response.Redirect "http://www.pinotdays.com/Order_Events/Order_Confirmation_Email.asp?ID=" & Request.Form("entity_num")
-
end if
-
%>
-
<html xmlns="http://www.w3.org/1999/xhtml">
-
<link href="/bawp2004.css" rel="stylesheet" type="text/css" />
-
<head>
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-
-
<title>Pinot Days Order Form</title>
-
-
<link href="bawp2004.css" rel="stylesheet" type="text/css" />
-
<style type="text/css">
-
<!--
-
a:link {
-
color: #660000;
-
text-decoration: underline;
-
}
-
a:visited {
-
text-decoration: underline;
-
}
-
a:hover {
-
text-decoration: underline;
-
}
-
a:active {
-
text-decoration: underline;
-
}
-
body {
-
background-color: #33460C;
-
}
-
-->
-
</style>
-
<script type="text/javascript" src="../p7pm/p7popmenu.js"></script>
-
<style type="text/css" media="screen">
-
<!--
-
@import url("../p7pm/p7pmh1.css");
-
.style22 {color: #FFFFFF}
-
-->
-
</style>
-
</head>
-
<link href="/bawp2004.css" rel="stylesheet" type="text/css" />
-
-
<body onload="P7_initPM(1,1,1,-20,10)">
-
<table width="1026" height="604" align="center" cellpadding="0" cellspacing="0" bgcolor="#33460C">
-
<tr>
-
<td width="9" height="27"> </td>
-
<td width="1011"> </td>
-
<td width="10"> </td>
-
</tr>
-
<tr>
-
<td height="538"> </td>
-
<td align="left" valign="top"><table width="1011" height="450" border="8" align="center" cellpadding="0" cellspacing="0" bordercolor="#6D1E24" bgcolor="#CCCC99">
-
<tr>
-
<td width="993" height="234" align="left" valign="top"><table width="987" height="232" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
-
<tr>
-
<td height="232" align="left" valign="top"><table width="993" height="230" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
-
<tr>
-
<td width="995" height="184" align="left" valign="top"><img src="/images/Pinot_Days_Banner_Wide_2.jpg" width="1045" height="200" /></td>
-
</tr>
-
<tr>
-
<td height="23" align="left" valign="top"><table width="994" height="23" border="0" cellpadding="0" cellspacing="0">
-
<tr>
-
<td width="994" height="23" nowrap="nowrap"><ul id="p7PMnav">
-
<li><a href="../home.asp"><span class="style22">Home</span></a></li>
-
<li><a href="#" class="p7PMtrg"><span class="style22">Event Info</span></a>
-
<ul>
-
<li><a href="../Events/Festival_Events.asp?YearID=2008&LocID=CHI">Event Details</a></li>
-
<li><a href="../Events/Event_Venue.asp">Event Venues</a></li>
-
<li><a href="../Events/Hotel_Information.asp">Hotel Information</a></li>
-
<li><a href="../Events/Our_Charities.asp">Our Charities</a></li>
-
<li><a href="../Events/faq.asp">FAQ's</a></li>
-
</ul>
-
</li>
-
<li><a href="#" class="p7PMtrg"><span class="style22">Ticketing</span></a>
-
<ul>
-
<li><a href="https://www.pinotdays.com/Order_Events/Pinot_Days_Order_Form.asp">Order Event Tickets</a></li>
-
<li><a href="../Ticketing/Trade_Signup.asp">Request Trade Tickets</a></li>
-
<li><a href="../Ticketing/Trade_Requirements.asp">Trade Requirements</a></li>
-
</ul>
-
</li>
-
<li><a href="#" class="p7PMtrg"><span class="style22">Exhibitor Info</span></a>
-
<ul>
-
<li><a href="../Exhibitor_Info/Exhibitor_Signup.asp">Become an Exhibitor</a></li>
-
<li><a href="../Exhibitor_Info/Exhibitor_Information.asp">Exhibitor's Information</a></li>
-
<li><a href="#" class="p7PMtrg">Our Exhibitors</a>
-
<ul>
-
<li><a href="../Exhibitor_Info/exhibitors_2008.asp">San Francisco</a></li>
-
<li><a href="../Exhibitor_Info/exhibitors_2008_NYC.asp">New York</a></li>
-
<li><a href="../Exhibitor_Info/exhibitors_2008_Chi.asp">Chicago</a></li>
-
</ul>
-
</ul>
-
</li>
-
<li><a href="#" class="p7PMtrg"><span class="style22">Sponsors</span></a>
-
<ul>
-
<li><a href="../Sponsors/Become_Sponsor.asp">Become A Sponsor</a></li>
-
<li><a href="#" class="p7PMtrg">Our Sponsors</a>
-
<ul>
-
<li><a href="../Sponsors/Our_Sponors_Chi.asp">Chicago</a></li>
-
<li><a href="../Sponsors/Our_Sponsors_SF.asp">San Francisco</a></li>
-
<li><a href="../Sponsors/Our_Sponsors_NYC.asp">New York</a></li>
-
</ul>
-
</li>
-
</ul>
-
</li>
-
<li><a href="../Volunteers/Call_To_Volunteer.asp"><span class="style22">Volunteer</span></a></li>
-
<li><a href="Join_List.asp"><span class="style22">Mailing List</span></a></li>
-
<li><a href="#" class="p7PMtrg"><span class="style22">About Us</span></a>
-
<ul>
-
<li><a href="../About_Us/About_Us.asp">The Organizers</a></li>
-
<li><a href="../About_Us/Contact_Info.asp">Contact Information</a></li>
-
<li><a href="../About_Us/Our_Goal.asp">Our Goal</a></li>
-
<li><a href="../About_Us/Privacy_Policy.html">Privacy Policy</a></li>
-
</ul>
-
</li>
-
<li><a href="../Newsletter/Newsletter_Main.asp"><span class="style22">Newsletter</span></a></li>
-
<!--[if lte IE 6]><style>#p7PMnav a{height:1em;}#p7PMnav li{height:1em;}#p7PMnav ul li{float:left;clear:both;width:100%}</style><![endif]-->
-
<!--[if IE 6]><style>#p7PMnav ul li{clear:none;}</style><![endif]-->
-
</ul></td>
-
</tr>
-
-
</table></td>
-
</tr>
-
</table></td>
-
</tr>
-
</table></td>
-
</tr>
-
-
<tr>
-
<td height="199" align="left" valign="top"> <table width="1031" border="0" align="center" cellpadding="0" cellspacing="0">
-
-
<tr>
-
<td> </td>
-
</tr>
-
<tr>
-
<td width="1031"><div align="center"><span class="pinothdrsmallBOLD">Pinot Days Event Order Form </span></div></td>
-
</tr>
-
-
<tr>
-
<td><table width="963" border="0" cellspacing="10" cellpadding="0">
-
<tr>
-
<td width="943" ><div class="pinothdrsmallBlack">We are glad that you want to join us at Pinot Days Chicago, 2008. You may use this order form to purchase tickets both to the Pinot Days Grand Festival on Saturday, November 15th, and for the Winemakers "Table Hop" Dinner at Bin 36 on Friday, November 14th. If you order tickets by or before November 1st, we will mail them to you. If you purchase tickets after November 1st, they will await you at Will Call. </div></td>
-
</tr>
-
</table></td>
-
</tr>
-
<tr>
-
<td><form method="POST" name="form1" action="">
-
<table width="964" align="center">
-
<tr valign="baseline">
-
<td width="155" align="right" nowrap>Full Name*:</td>
-
<td width="386" align="left">
-
<input name="FullName" type="text" class="inputfield_small" value="" size="40" maxlength="40"> </td>
-
<td width="95" align="right"> </td>
-
<td width="308"> </td>
-
</tr>
-
<tr valign="baseline">
-
<td nowrap align="right">Address*:</td>
-
<td align="left">
-
<input name="Badd1" type="text" class="inputfield_small" id="Badd1" value="" size="60" maxlength="75"> </td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td nowrap align="right"></td>
-
<td align="left">
-
<input name="BAdd2" type="text" class="inputfield_small" id="BAdd2" size="60" maxlength="75"> </td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td nowrap align="right">City*:</td>
-
<td align="left"><input name="BCity" type="text" class="inputfield_small" id="BCity" size="30" maxlength="30" /></td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td align="right" nowrap="nowrap">State*:</td>
-
<td align="left"><select name="BState" size="1" class="inputfield_small" id="BState">
-
<option value=" ">-- Please Select a Billing State --</option>
-
<%
-
While (NOT statelist.EOF)
-
%>
-
<option value="<%=(statelist.Fields.Item("StateID").Value)%>"><%=(statelist.Fields.Item("StateID").Value)%></option>
-
<%
-
statelist.MoveNext()
-
Wend
-
%>
-
</select></td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td nowrap align="right">Zip Code*:</td>
-
<td align="left"><input name="BZip" type="text" class="inputfield_small" id="BZip" size="15" maxlength="15" /></td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td nowrap align="right">Email Address*: </td>
-
<td align="left"><input name="emailaddress" type="text" class="inputfield" id="emailaddress" size="60" maxlength="60" /></td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td nowrap align="right">Telephone:</td>
-
<td align="left"><input name="telephone" type="text" class="inputfield" id="telephone" size="15" maxlength="20" /></td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td colspan="4" align="right" nowrap><div align="left">
-
<hr />
-
</div></td>
-
</tr>
-
<tr valign="baseline">
-
<td colspan="2" align="right" nowrap><div align="left"><span class="Header_1"><b>Shipping Information</b> </span></div></td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td width="155" align="right" class="Standard_Text">Same as Billing: </td>
-
<td width="386" align="left" class="Standard_Text"><input name="checkbox" type="checkbox" class="form_input_small" id="same" onclick="sUpdate()" value="same" /></td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td height="28" align="right" class="Standard_Text">Address: </td>
-
<td class="Standard_Text" align="left"><input name="SAdd1" type="text" class="inputfield_small" id="SAdd1" value="<%= SAdd1%>" size="60" maxlength="75" onchange="addUpdate('SAdd1')"/></td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td height="28" align="right" class="Standard_Text"></td>
-
<td class="Standard_Text" align="left"><input name="SAdd2" type="text" class="inputfield_small" id="SAdd2" value="<%= SAdd2%>" size="60" maxlength="75" onchange="addUpdate('SAdd2')"/></td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td height="28" align="right" class="Standard_Text">City: </td>
-
<td class="Standard_Text" align="left"><input name="SCity" type="text" class="inputfield_small" id="SCity" value="<%= SCity%>" size="35" maxlength="40" onchange="addUpdate('SCity')"/></td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td height="28" align="right" class="Standard_Text">State: </td>
-
<td align="left"><select name="SState" size="1" class="inputfield_small" id="SState">
-
<option value=" ">-- Please Select a Shipping State --</option>
-
<%
-
statelist.movefirst
-
While (NOT statelist.EOF)
-
%>
-
<option value="<%=(statelist.Fields.Item("StateID").Value)%>"><%=(statelist.Fields.Item("StateID").Value)%></option>
-
<%
-
statelist.MoveNext()
-
Wend
-
%>
-
</select></td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td height="36" align="right">Zip Code:</td>
-
<td class="Standard_Text" align="left"><input type="text" name="SZip" id="SZip" class="inputfield_small" size="15" maxlength="15" value="<%= SZip%>" onchange="addUpdate('SZip')"/></td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td height="12" colspan="4" align="right" nowrap><div align="left">
-
<div align="left">
-
<hr />
-
</div>
-
</div></td>
-
</tr>
-
<tr valign="baseline">
-
<td colspan="2" align="right" nowrap><div align="left"><span class="Header_1"><b>Event Order Details</b> </span></div></td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td height="118" colspan="4" align="right" nowrap><table width="948" height="138" border="1" align="left" cellpadding="0" cellspacing="0" class="maintable">
-
<tr class="bold10pttext">
-
<td><div align="right"><u><strong>Event</strong></u></div></td>
-
<td><div align="right"><u><strong>Date</strong></u></div></td>
-
<td><div align="right"><u><strong>Time</strong></u></div></td>
-
<td><div align="right"><u><strong>Location</strong></u></div></td>
-
<td><div align="right"><u><strong>Price</strong></u></div></td>
-
<td><div align="right"><u><strong># of Tickets </strong></u></div></td>
-
<td><div align="right"><u>Total Price </u></div></td>
-
<td><u></u></td>
-
</tr>
-
<tr>
-
<td height="31"><div align="right">Grand Festival </div></td>
-
<td><div align="right">November 15, 2008 </div></td>
-
<td><div align="right">1-5PM</div></td>
-
<td><div align="right">Navy Pier, Chicago </div></td>
-
<td><div align="right">$50</div></td>
-
<td>
-
<div align="right">
-
<select name="T_GF" class="inputfield_small_Right" id="T_GF" onChange="Calc_Ord()" >
-
<option value="0" selected="selected">0</option>
-
<option value="1">1</option>
-
<option value="2">2</option>
-
<option value="3">3</option>
-
<option value="4">4</option>
-
<option value="5">5</option>
-
<option value="6">6</option>
-
<option value="7">7</option>
-
<option value="8">8</option>
-
<option value="9">9</option>
-
<option value="10">10</option>
-
<option value="11">11</option>
-
<option value="12">12</option>
-
<option value="13">13</option>
-
<option value="14">14</option>
-
<option value="15">15</option>
-
<option value="16">16</option>
-
<option value="17">17</option>
-
<option value="18">18</option>
-
<option value="19">19</option>
-
<option value="20">20</option>
-
</select>
-
</div></td>
-
<td width="84"><div align="right">
-
<input name="Ext_Amt_1" type="text" class="NoSeeFormLightGray" id="Ext_Amt_1" size="8" maxlength="8" readonly="true"/>
-
</div></td>
-
<td width="19"> </td>
-
</tr>
-
<tr>
-
<td height="31"><div align="right">Winemakers Dinner </div></td>
-
<td><div align="right">November 14, 2008 </div></td>
-
<td><div align="right">7-11PM</div></td>
-
<td><div align="right">Bin 36 Restaurant </div></td>
-
<td><div align="right">$130</div></td>
-
<td><div align="right">
-
<select name="T_WMD" class="inputfield_small_Right" id="T_WMD" onChange="Calc_Ord()">
-
<option value="0" selected="selected">0</option>
-
<option value="1">1</option>
-
<option value="2">2</option>
-
<option value="3">3</option>
-
<option value="4">4</option>
-
<option value="5">5</option>
-
<option value="6">6</option>
-
<option value="7">7</option>
-
<option value="8">8</option>
-
<option value="9">9</option>
-
<option value="10">10</option>
-
<option value="11">11</option>
-
<option value="12">12</option>
-
<option value="13">13</option>
-
<option value="14">14</option>
-
<option value="15">15</option>
-
<option value="16">16</option>
-
<option value="17">17</option>
-
<option value="18">18</option>
-
<option value="19">19</option>
-
<option value="20">20</option>
-
</select>
-
</div></td>
-
<td align="right"><input name="Ext_Amt_2" type="text" class="NoSeeFormLightGray" id="Ext_Amt_2" size="8" maxlength="8" readonly="true"/></td>
-
<td> </td>
-
</tr>
-
<tr>
-
<td> </td>
-
<td> </td>
-
<td> </td>
-
<td> </td>
-
<td> </td>
-
<td><div align="right">Discount Code: </div></td>
-
<td><input name="Discount_Code" type="text" class="inputfield_small" id="Discount_Code" size="12" maxlength="10" onChange="Calc_Ord()" /></td>
-
<td> </td>
-
</tr>
-
<tr>
-
<td height="28"> </td>
-
<td> </td>
-
<td> </td>
-
<td> </td>
-
<td> </td>
-
<td><div align="right"><strong>Order Total:</strong></div></td>
-
<td align="right"><input name="Tot_Amt" type="text" class="NoSeeFormLightGray" id="Tot_Amt" size="8" maxlength="8" readonly="true"/></td>
-
<td> </td>
-
</tr>
-
</table></td>
-
</tr>
-
<tr valign="baseline">
-
<td colspan="4" align="right" nowrap="nowrap" class="Text"><div align="left">
-
<hr />
-
</div></td>
-
</tr>
-
<tr valign="baseline">
-
<td colspan="3" align="right" nowrap="nowrap" class="Text"><div align="left"><span class="Header_1"><b>Payment Information</b> </span></div></td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td align="right" nowrap="nowrap" class="Text"> Name on Credit Card: </td>
-
<td colspan="2" align="left" valign="top"><input name="cc_Name" type="text" class="inputfield_small" id="cc_Name" value="" size="50" maxlength="50" /></td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td align="right" nowrap="nowrap" class="Text">Credit Card Type:</td>
-
<td colspan="2" align="left" valign="top"><select name="CCType" class="inputfield_small">
-
<option value=" " selected="selected"> </option>
-
<option value="AMEX">American Express</option>
-
<option value="MC">MasterCard</option>
-
<option value="VISA">Visa</option>
-
</select></td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td align="right" nowrap="nowrap" class="Text">Credit Card Number: </td>
-
<td colspan="2" align="left" valign="top"><input name="cc_Number" type="text" class="inputfield_small" id="cc_Number" size="20" maxlength="20" /></td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td height="21" align="right" valign="baseline" nowrap><span class="Text">Exp. Date: </span></td>
-
<td colspan="2" align="left" valign="top"><table width="172" height="19" border="0" cellpadding="0" cellspacing="0">
-
<tr valign="baseline">
-
<td height="19"><select name="expmonth" size="1" class="inputfield_small" id="expmonth">
-
<option value="1">01</option>
-
<option value="2">02</option>
-
<option value="3">03</option>
-
<option value="4">04</option>
-
<option value="5">05</option>
-
<option value="6">06</option>
-
<option value="7">07</option>
-
<option value="8">08</option>
-
<option value="9">09</option>
-
<option value="10">10</option>
-
<option value="11">11</option>
-
<option value="12">12</option>
-
</select></td>
-
<td align="left"><select name="expyear" size="1" class="inputfield_small" id="expyear">
-
<option value="2008" selected="selected">2008</option>
-
<option value="2009">2009</option>
-
<option value="2010">2010</option>
-
<option value="2011">2011</option>
-
<option value="2012">2012</option>
-
<option value="2013">2013</option>
-
<option value="2014">2014</option>
-
<option value="2015">2015</option>
-
</select></td>
-
</tr>
-
-
</table></td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td height="29" align="right" valign="top" nowrap> </td>
-
<td colspan="2" align="left" valign="top"> </td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td height="68" align="right" valign="top" nowrap>Comments:</td>
-
<td colspan="2" align="left" valign="top"><textarea name="comments" cols="100" rows="3" class="inputfield_small" id="comments"></textarea></td>
-
<td> </td>
-
</tr>
-
<tr valign="baseline">
-
<td height="56" align="right" nowrap> </td>
-
<td colspan="2" align="left"><div align="right">Please click here to verify all ticketed attendees are 21 years of age or older. To review our Ticket Purchase and Event Attenmdeance terms and consitions, Please click <a href="/faq.asp">here</a>: </div></td>
-
<td align="left" valign="middle"><input name="Age_Verify" type="checkbox" class="inputfield_small" id="Age_Verify" value="checkbox" /></td>
-
</tr>
-
<tr valign="baseline">
-
<td nowrap align="right"> </td>
-
<td align="left">
-
<div align="right">
-
<input type="button" value="Submit Order" onclick="advance()"/>
-
</div></td>
-
<td align="right"> </td>
-
<td> </td>
-
</tr>
-
</table>
-
<input type="hidden" name="MM_update" value="form1">
-
<input type="hidden" name="Unit_Amt_2">
-
<input type="hidden" name="Unit_Amt_1">
-
<input type="hidden" name="entity_num" value="<%=rnd_num_pw%>">
-
<input type="hidden" name="MM_insert" value="form1">
-
</form>
-
<p> </p></td>
-
</tr>
-
<tr>
-
<td><script language="JavaScript" src='https://seal.XRamp.com/seal.asp?type=A' type="text/javascript"></script></td>
-
</tr>
-
<tr>
-
<td> </td>
-
</tr>
-
</table></td>
-
</tr>
-
</table></td>
-
<td> </td>
-
</tr>
-
<tr>
-
<td> </td>
-
<td> </td>
-
<td> </td>
-
</tr>
-
</table>
-
</body>
-
</html>
-
<%
-
statelist.Close()
-
Set statelist = Nothing
-
%>
-
-
Dormilich 8,658
Recognized Expert Moderator Expert
I do believe all the variables are properly initialized.
do you believe or do you know?
What would casuse Java to work in IE and not in Firefox (I have never understood that concept).
firstly, it’s javascript not java
secondly, this is caused by the fact that Microsoft developed something similar (but different) called JScript for not paying fees for Netscape’s Javascript (← this was a Netscape invention).
And to come back to the variables, they may be properly initialized, but they don’t contain values, because you forgot to set the according ids (there are name attributes, but getElementById( ) is looking for a id attribute)
regards
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Gregory Piñero |
last post by:
Hi guys,
I'm trying to run this statement:
os.system(r'"C:\Program Files\Mozilla Firefox\firefox.exe"' + '
"www.blendedtechnologies.com"')
The goal is to have firefox open to that website.
When I type r'"C:\Program Files\Mozilla Firefox\firefox.exe"' + '
|
by: The Bicycling Guitarist |
last post by:
http://www.TheBicyclingGuitarist.net/css/index.css
I have red nav buttons that turn blue when hovered over and turn purple
after being visited. The red and blue work in FireFox, but not the visited
color. How can I fix this? It's always worked in MSIE cough cough.
It's for my index page http://www.TheBicyclingGuitarist.net/index.htm
|
by: TJS |
last post by:
I am finding that the serverside requiredvalidator doesn't fire in the
firefox browser, and user request proceeds through to my updateProfile
method. Validation is working correctly in the IE browser.
Anyone seen this problem or have any ideas why this might be occurring ??
(I have web.config browsercaps updated from http://slingfive.com/ )
code:
=========
|
by: Mark Olbert |
last post by:
The doPostBack javascript functioning is not submitting the page when called by linkbuttons (or an
autopostback checkbox, for that matter).
I'm aware of a problem with Netscape browsers and the postback code, but I have a workaround for
that installed (and it looks like the code generated by ASP.NET when it renders the page does the
same thing, namely, setting document<). However, the
problem still exists under firefox.
Has anyone come...
|
by: Atul Chaturvedi |
last post by:
If we use ASP.NET 2.0 Login Control, we are unable to click on Login and
Reset Buttons on Safari running on Apple Mac OS X Version 10.3.2 .
How can i resolve the problem.
| |
by: Velvet |
last post by:
I'm using the standard upload component in ASP.NET 1.1 to allow authors to
upload manuscripts to our server.
This is working fine except for some people using FireFox. The problem is,
the upload is working for MY fireFox browser so I'm unable to troubleshoot
and step through the code to see what is really going on. The is one
customer who has the same browser version as me and another who has an older
version.
I have told these...
|
by: Snt |
last post by:
Hi!
I am trying to get AJAX working on multiple browsers and am having a
problem with Firefox.
I have the following code:
function handleState3(){
switch(http.readyState) {
case 0: // Uninitialized
|
by: Sura |
last post by:
Hi
I have a flash interactive window which has html links and this
appears on an html page. This window can be moved with the mouse on
the html page. The html page has an iFrame too. When the flash window
comes above the iframe area the html links stop working. Yet the links
remain active when the flash window is outside the iFrame area. This
problem is coming in Firefox, but running fine in IE.
If anybody has any solution, please...
|
by: willyWEB66 |
last post by:
Hi everyone,
I have this code in javascript where the XML file is loaded and displayed to an html using XSLT. It works fine in IE but not in Firefox. My problem is in the looping to the childNodes. It seems that Firefox does not recognize this line of code >> xmlDoc.getElementsByTagName("urlValue").childNodes.nodeValue
I'm not sure if this is the line that is not working, or the lines before it. I'm looping to the childNodes to compare to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |