Any idea why this is working in IE but not firefox?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • riggy
    New Member
    • Oct 2008
    • 2

    Any idea why this is working in IE but not firefox?

    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:

    Code:
                              <div align="right">
                                <input type="button" value="Submit Order" onclick="advance()"/>
                            </div></td>

    Here is the Javascript:

    Code:
    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
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    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)

    Comment

    • riggy
      New Member
      • Oct 2008
      • 2

      #3
      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).

      Code:
      <%@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">&nbsp;</td>
          <td width="1011">&nbsp;</td>
          <td width="10">&nbsp;</td>
        </tr>
        <tr>
          <td height="538">&nbsp;</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>&nbsp;</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.&nbsp;&nbsp;&nbsp;You may   use this order form to purchase tickets both to the Pinot Days Grand Festival on   Saturday, November 15th, and for the Winemakers &quot;Table Hop&quot; Dinner at Bin 36 on   Friday, November 14th.&nbsp; If you order tickets by or before November 1st, we will   mail them to you.&nbsp; If you purchase tickets after November 1st, they will await   you at Will Call.&nbsp; </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">&nbsp;</td>
                              <td width="308">&nbsp;</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">&nbsp;</td>
                              <td>&nbsp;</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">&nbsp;</td>
                              <td>&nbsp;</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">&nbsp;</td>
                              <td>&nbsp;</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">&nbsp;</td>
                              <td>&nbsp;</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">&nbsp;</td>
                          <td>&nbsp;</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">&nbsp;</td>
                              <td>&nbsp;</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">&nbsp;</td>
                              <td>&nbsp;</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>&nbsp;&nbsp;&nbsp;</span></div></td>
                              <td align="right">&nbsp;</td>
                              <td>&nbsp;</td>
                            </tr>
                        <tr valign="baseline">
                          <td width="155" align="right" class="Standard_Text">Same as Billing:&nbsp;</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">&nbsp;</td>
                              <td>&nbsp;</td>
                            </tr>
                        <tr valign="baseline">
                          <td height="28" align="right" class="Standard_Text">Address:&nbsp;</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">&nbsp;</td>
                              <td>&nbsp;</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">&nbsp;</td>
                              <td>&nbsp;</td>
                            </tr>
                        <tr valign="baseline">
                          <td height="28" align="right" class="Standard_Text">City:&nbsp;</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">&nbsp;</td>
                              <td>&nbsp;</td>
                            </tr>
                        <tr valign="baseline">
                          <td height="28" align="right" class="Standard_Text">State:&nbsp;</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">&nbsp;</td>
                              <td>&nbsp;</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">&nbsp;</td>
                              <td>&nbsp;</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>&nbsp;&nbsp;&nbsp;</span></div></td>
                              <td align="right">&nbsp;</td>
                              <td>&nbsp;</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">&nbsp;</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>&nbsp;</td>
                                </tr>
                            <tr>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</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>&nbsp;</td>
                            </tr>
                            <tr>
                              <td height="28">&nbsp;</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</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>&nbsp;</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>&nbsp;&nbsp;&nbsp;</span></div></td>
                          <td>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</td>
                        </tr>
                        <tr valign="baseline">
                          <td height="29" align="right" valign="top" nowrap>&nbsp;</td>
                          <td colspan="2" align="left" valign="top">&nbsp;</td>
                          <td>&nbsp;</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>&nbsp;</td>
                            </tr>
                        <tr valign="baseline">
                          <td height="56" align="right" nowrap>&nbsp;</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">&nbsp;</td>
                              <td align="left">
                                <div align="right">
                                  <input type="button" value="Submit Order" onclick="advance()"/>
                              </div></td>
                              <td align="right">&nbsp;</td>
                              <td>&nbsp;</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>&nbsp;</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>&nbsp;</td>
                    </tr>
                </table></td>
            </tr>
          </table></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
      </body>
      </html>
      <%
      statelist.Close()
      Set statelist = Nothing
      %>

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        Originally posted by riggy
        I do believe all the variables are properly initialized.
        do you believe or do you know?
        Originally posted by riggy
        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

        Comment

        Working...