473,239 Members | 1,505 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,239 software developers and data experts.

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

2
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:

Expand|Select|Wrap|Line Numbers
  1.                           <div align="right">
  2.                             <input type="button" value="Submit Order" onclick="advance()"/>
  3.                         </div></td>
  4.  
  5.  

Here is the javascript:

Expand|Select|Wrap|Line Numbers
  1. function advance() {
  2.     var fname = document.getElementById("FullName").value;
  3.     var badd1 = document.getElementById("BAdd1").value;
  4.     var bcity = document.getElementById("BCity").value;
  5.     var bzip = document.getElementById("BZip").value;
  6.     var email = document.getElementById("emailaddress").value;
  7.     var sadd1 = document.getElementById("SAdd1").value;
  8.     var scity = document.getElementById("SCity").value;
  9.     var szip = document.getElementById("SZip").value;
  10.     var to = document.getElementById("Age_Verify").checked;
  11.     var ccname = document.getElementById("CC_Name").value;
  12.     var cctype = document.getElementById("CCType").value;
  13.     var ccnumber = document.getElementById("CC_Number").value;
  14.     var Fest = document.getElementById("T_GF").value;
  15.     var Dinner = document.getElementById("T_WMD").value;
  16.  
  17.     var error = "";
  18.     if ((Fest == "0") && (Dinner== "0")) {
  19.         error = error + "-No Tickets Were Ordered\n";
  20.     }
  21.     if (fname=="") {
  22.         error = error + "-Full Name\n";
  23.     }
  24.     if (badd1=="") {
  25.         error = error + "-Billing Address\n";
  26.     }
  27.     if (bcity=="") {
  28.         error = error + "-Billing City\n";
  29.     }
  30.     if (bzip=="") {
  31.         error = error + "-Billing Zip Code\n";
  32.     }
  33.     if (email=="") {
  34.         error = error + "-Email\n";
  35.     }
  36.     if (sadd1=="") {
  37.         error = error + "-Shipping Address\n";
  38.     }
  39.     if (scity=="") {
  40.         error = error + "-Shipping City\n";
  41.     }
  42.     if (szip=="") {
  43.         error = error + "-Shipping Zip Code\n";
  44.     }
  45.     if (ccname=="") {
  46.         error = error + "-Credit Card Name\n";
  47.     }
  48.     if (cctype=="") {
  49.         error = error + "-Credit Card Type\n";
  50.     }
  51.     if (ccnumber=="") {
  52.         error = error + "-Credit Card Number\n";
  53.     }
  54.     if (error != "") {
  55.         alert("The following fields are required:\n"+error)
  56.         if (!to) {
  57.             alert("You must verify that you are over 21 by clicking the checkbox.")
  58.         }
  59.     } else if (!to) {
  60.         alert("You must verify that you are over 21 by clicking the checkbox.")
  61.     } else {
  62.         document.getElementById("form1").submit();
  63.     }
  64. }
  65. </script>
  66.  
  67.  



Regards,
Steve
Oct 9 '08 #1
3 1716
Dormilich
8,658 Expert Mod 8TB
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)
Oct 9 '08 #2
riggy
2
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).

Expand|Select|Wrap|Line Numbers
  1. <%@LANGUAGE="VBSCRIPT"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <script type="text/javascript">
  4.  
  5.  
  6. function sUpdate(){
  7.     var c = document.getElementById("same").checked;
  8.     if (c) {
  9.         document.getElementById("SAdd1").value = document.getElementById("BAdd1").value;
  10.         document.getElementById("SAdd2").value = document.getElementById("BAdd2").value;
  11.         document.getElementById("SCity").value = document.getElementById("BCity").value;
  12.         document.getElementById("SState").value = document.getElementById("BState").value;
  13.         document.getElementById("SZip").value = document.getElementById("BZip").value;
  14.     }    
  15. }
  16.  
  17. function to_currency(val,currency){
  18.   val=""+Math.round(100*val);
  19.   var dec_point=val.length-2; 
  20.    var first_part=val.substring(0,dec_point); 
  21.     var second_part=val.substring(dec_point,val.length); 
  22.      var result=first_part+"."+second_part;
  23.   if(!currency){
  24.         currency="";
  25.    }
  26.   result=currency+result;
  27.   if(val=0) {
  28.       result="$0.00";
  29.   }
  30.  
  31.  
  32.   return result;}// -->
  33.  
  34. function Calc_Ord()
  35. {
  36. var val1 = document.form1.T_GF.value;
  37. var val2 = document.form1.T_WMD.value;
  38. var disc1 = document.form1.Discount_Code.value.toUpperCase();
  39.     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") ){
  40.         var ext1 = val1 * 45.00;
  41.         document.form1.Unit_Amt_1.value = 45;
  42.         var ext2 = val2 * 117.00;
  43.         document.form1.Unit_Amt_2.value = 117;
  44.     } 
  45.     else if ((disc1 == "AIWF") || (disc1 == "AIWF")){
  46.         var ext1 = val1 * 40.00;
  47.         document.form1.Unit_Amt_1.value = 40;
  48.         var ext2 = val2 * 104.00;
  49.         document.form1.Unit_Amt_2.value = 104;
  50.     }    
  51.     else {
  52.         var ext1 = val1 * 50.00;
  53.         document.form1.Unit_Amt_1.value = 50;
  54.         var ext2 = val2 * 130.00;
  55.         document.form1.Unit_Amt_2.value = 130;
  56.     }    
  57. var grtot1 = ext1 + ext2;
  58. document.form1.Ext_Amt_1.value = to_currency(ext1,"$ ");
  59. document.form1.Ext_Amt_2.value = to_currency(ext2,"$ ");
  60. document.form1.Tot_Amt.value = to_currency(grtot1,"$ ");
  61. }
  62.  
  63. function advance() {
  64.     var fname = document.getElementById("FullName").value;
  65.     var badd1 = document.getElementById("BAdd1").value;
  66.     var bcity = document.getElementById("BCity").value;
  67.     var bzip = document.getElementById("BZip").value;
  68.     var email = document.getElementById("emailaddress").value;
  69.     var sadd1 = document.getElementById("SAdd1").value;
  70.     var scity = document.getElementById("SCity").value;
  71.     var szip = document.getElementById("SZip").value;
  72.     var to = document.getElementById("Age_Verify").checked;
  73.     var ccname = document.getElementById("CC_Name").value;
  74.     var cctype = document.getElementById("CCType").value;
  75.     var ccnumber = document.getElementById("CC_Number").value;
  76.     var Fest = document.getElementById("T_GF").value;
  77.     var Dinner = document.getElementById("T_WMD").value;
  78.  
  79.     var error = "";
  80.     if ((Fest == "0") && (Dinner== "0")) {
  81.         error = error + "-No Tickets Were Ordered\n";
  82.     }
  83.     if (fname=="") {
  84.         error = error + "-Full Name\n";
  85.     }
  86.     if (badd1=="") {
  87.         error = error + "-Billing Address\n";
  88.     }
  89.     if (bcity=="") {
  90.         error = error + "-Billing City\n";
  91.     }
  92.     if (bzip=="") {
  93.         error = error + "-Billing Zip Code\n";
  94.     }
  95.     if (email=="") {
  96.         error = error + "-Email\n";
  97.     }
  98.     if (sadd1=="") {
  99.         error = error + "-Shipping Address\n";
  100.     }
  101.     if (scity=="") {
  102.         error = error + "-Shipping City\n";
  103.     }
  104.     if (szip=="") {
  105.         error = error + "-Shipping Zip Code\n";
  106.     }
  107.     if (ccname=="") {
  108.         error = error + "-Credit Card Name\n";
  109.     }
  110.     if (cctype=="") {
  111.         error = error + "-Credit Card Type\n";
  112.     }
  113.     if (ccnumber=="") {
  114.         error = error + "-Credit Card Number\n";
  115.     }
  116.     if (error != "") {
  117.         alert("The following fields are required:\n"+error)
  118.         if (!to) {
  119.             alert("You must verify that you are over 21 by clicking the checkbox.")
  120.         }
  121.     } else if (!to) {
  122.         alert("You must verify that you are over 21 by clicking the checkbox.")
  123.     } else {
  124.         document.getElementById("form1").submit();
  125.     }
  126. }
  127. </script>
  128.  
  129. <%
  130. 'Add a new record to the recordset
  131. dim rnd_max,rnd_min
  132. rnd_max=999999
  133. rnd_min=100000
  134. randomize
  135. rnd_num_pw=(Int((rnd_max-rnd_min+1)*Rnd(10)+rnd_min))
  136.  
  137. Dim adoCon, adocon2
  138. Dim strSQL                 'Holds the SQL query to query the database
  139.  
  140. 'Create an ADO connection object
  141. Set adoCon = Server.CreateObject("ADODB.Connection")
  142. Set adoCon2 = Server.CreateObject("ADODB.Connection")
  143.  
  144. 'Set an active connection to the Connection object using a DSN-less connection
  145. adoCon.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("/database/small_pinot.mdb")
  146. adoCon2.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("/database/Pinot_Days_Orders.mdb")
  147.  
  148. 'Create an ADO recordset object
  149. Set rsCust = Server.CreateObject("ADODB.Recordset")
  150. Set StateList = Server.CreateObject("ADODB.Recordset")
  151.  
  152. strSQL = "SELECT * FROM USStates ORDER By StateID"
  153. StateList.Open strSQL, adoCon
  154.  
  155.  
  156.  
  157. If (CStr(Request("MM_update")) = "form1") Then
  158.     'Set an active connection to the Connection object using a DSN-less connection
  159.  
  160.     'Create an ADO recordset object
  161.     Set rsAddMain = Server.CreateObject("ADODB.Recordset")
  162.     Set rsAddDetail = Server.CreateObject("ADODB.Recordset")
  163.  
  164.     'Initialise the strSQL variable with an SQL statement to query the database
  165.     strSQL = "SELECT Order_Main.* FROM Order_Main"
  166.     'Set the cursor type we are using so we can navigate through the recordset
  167.     rsAddMain.CursorType = 2
  168.     'Set the lock type so that the record is locked by ADO when it is updated
  169.     rsAddMain.LockType = 3
  170.     'Open the recordset with the SQL query
  171.     rsAddMain.Open strSQL, adoCon2
  172.  
  173.     strSQL = "SELECT Order_Detail.* FROM Order_Detail"
  174.     'Set the cursor type we are using so we can navigate through the recordset
  175.     rsAddDetail.CursorType = 2
  176.     'Set the lock type so that the record is locked by ADO when it is updated
  177.     rsAddDetail.LockType = 3
  178.     'Open the recordset with the SQL query
  179.     rsAddDetail.Open strSQL, adoCon2
  180.     'Tell the recordset we are adding a new record to it
  181.  
  182.  
  183.     rsAddMain.AddNew
  184.     rsAddMain.Fields("Entity_Num") = Request.Form("entity_num")
  185.     rsAddMain.Fields("Entity_Name") = Request.Form("FullName")
  186.     rsAddMain.Fields("B_Address_1") = Request.Form("Badd1")
  187.     rsAddMain.Fields("B_Address_2") = Request.Form("Badd2")
  188.     rsAddMain.Fields("B_City") = Request.Form("BCity")
  189.     rsAddMain.Fields("B_State") = Request.Form("BState")
  190.     rsAddMain.Fields("B_Zip_Code") = Request.Form("BZip")
  191.     rsAddMain.Fields("S_Address_1") = Request.Form("SAdd1")
  192.     rsAddMain.Fields("S_Address_2") = Request.Form("SAdd2")
  193.     rsAddMain.Fields("S_City") = Request.Form("SCity")
  194.     rsAddMain.Fields("S_State") = Request.Form("SState")
  195.     rsAddMain.Fields("S_Zip_Code") = Request.Form("SZip")
  196.     rsAddMain.Fields("Contact_Phone") = Request.Form("telephone")
  197.     rsAddMain.Fields("Contact_Email") = Request.Form("emailaddress")
  198.     rsAddMain.Fields("CC_Type") = Request.Form("CCType")
  199.     rsAddMain.Fields("CC_Name") = Request.Form("cc_Name")
  200.     rsAddMain.Fields("CC_Number") = Request.Form("cc_Number")
  201.     rsAddMain.Fields("CC_Month") = Request.Form("expmonth")
  202.     rsAddMain.Fields("CC_Year") = Request.Form("expyear")
  203.     rsAddMain.Fields("Total") = Request.Form("Tot_Amt")
  204.     rsAddMain.Fields("Discount_Code") = Request.Form("Discount_Code")
  205.     rsAddMain.Fields("Comments") = Request.Form("Comments")
  206.     rsAddMain.Fields("Status") = "Pending"
  207.     rsAddMain.Fields("Billing_Status") = "Unpaid"
  208.     'Write the updated recordset to the database
  209.     rsAddMain.Update
  210.     if Request.Form("T_GF") <> 0 then
  211.         rsAddDetail.AddNew
  212.         rsAddDetail.Fields("Entity_Num") = Request.Form("entity_num")
  213.         rsAddDetail.Fields("ItemID") = 10
  214.         rsAddDetail.Fields("Ordered") = Request.Form("T_GF")
  215.         rsAddDetail.Fields("Unit_Price") = Request.Form("Unit_Amt_1")
  216.         rsAddDetail.Fields("Total") = Request.Form("Ext_Amt_1")
  217.         rsAddDetail.Update
  218.     end if
  219.     if Request.Form("T_WMD") <> 0 then
  220.         rsAddDetail.AddNew
  221.         rsAddDetail.Fields("Entity_Num") = Request.Form("entity_num")
  222.         rsAddDetail.Fields("ItemID") = 11
  223.         rsAddDetail.Fields("Ordered") = Request.Form("T_WMD")
  224.         rsAddDetail.Fields("Unit_Price") = Request.Form("Unit_Amt_2")
  225.         rsAddDetail.Fields("Total") = Request.Form("Ext_Amt_2")
  226.         rsAddDetail.Update
  227.     end if
  228.     'Reset server objects
  229.     rsAddMain.Close
  230.     rsAddDetail.Close
  231.     'Redirect to the guestbook.asp page
  232.     Response.Redirect "http://www.pinotdays.com/Order_Events/Order_Confirmation_Email.asp?ID=" & Request.Form("entity_num")
  233. end if
  234. %>
  235. <html xmlns="http://www.w3.org/1999/xhtml">
  236. <link href="/bawp2004.css" rel="stylesheet" type="text/css" />
  237. <head>
  238. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  239.  
  240. <title>Pinot Days Order Form</title>
  241.  
  242. <link href="bawp2004.css" rel="stylesheet" type="text/css" />
  243. <style type="text/css">
  244. <!--
  245. a:link {
  246.     color: #660000;
  247.     text-decoration: underline;
  248. }
  249. a:visited {
  250.     text-decoration: underline;
  251. }
  252. a:hover {
  253.     text-decoration: underline;
  254. }
  255. a:active {
  256.     text-decoration: underline;
  257. }
  258. body {
  259.     background-color: #33460C;
  260. }
  261. -->
  262. </style>
  263. <script type="text/javascript" src="../p7pm/p7popmenu.js"></script>
  264. <style type="text/css" media="screen">
  265. <!--
  266. @import url("../p7pm/p7pmh1.css");
  267. .style22 {color: #FFFFFF}
  268. -->
  269. </style>
  270. </head>
  271. <link href="/bawp2004.css" rel="stylesheet" type="text/css" />
  272.  
  273. <body onload="P7_initPM(1,1,1,-20,10)">
  274. <table width="1026" height="604" align="center" cellpadding="0" cellspacing="0" bgcolor="#33460C">
  275.   <tr>
  276.     <td width="9" height="27">&nbsp;</td>
  277.     <td width="1011">&nbsp;</td>
  278.     <td width="10">&nbsp;</td>
  279.   </tr>
  280.   <tr>
  281.     <td height="538">&nbsp;</td>
  282.     <td align="left" valign="top"><table width="1011" height="450" border="8" align="center" cellpadding="0" cellspacing="0" bordercolor="#6D1E24" bgcolor="#CCCC99">
  283.       <tr>
  284.         <td width="993" height="234" align="left" valign="top"><table width="987" height="232" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
  285.           <tr>
  286.             <td height="232" align="left" valign="top"><table width="993" height="230" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
  287.               <tr>
  288.                 <td width="995" height="184" align="left" valign="top"><img src="/images/Pinot_Days_Banner_Wide_2.jpg" width="1045" height="200" /></td>
  289.               </tr>
  290.               <tr>
  291.                 <td height="23" align="left" valign="top"><table width="994" height="23" border="0" cellpadding="0" cellspacing="0">
  292.                   <tr>
  293.                     <td width="994" height="23" nowrap="nowrap"><ul id="p7PMnav">
  294.                       <li><a href="../home.asp"><span class="style22">Home</span></a></li>
  295.                       <li><a href="#" class="p7PMtrg"><span class="style22">Event Info</span></a>
  296.                           <ul>
  297.                             <li><a href="../Events/Festival_Events.asp?YearID=2008&LocID=CHI">Event Details</a></li>
  298.                             <li><a href="../Events/Event_Venue.asp">Event Venues</a></li>
  299.                             <li><a href="../Events/Hotel_Information.asp">Hotel Information</a></li>
  300.                             <li><a href="../Events/Our_Charities.asp">Our Charities</a></li>
  301.                             <li><a href="../Events/faq.asp">FAQ's</a></li>
  302.                           </ul>
  303.                       </li>
  304.                       <li><a href="#" class="p7PMtrg"><span class="style22">Ticketing</span></a>
  305.                           <ul>
  306.                             <li><a href="https://www.pinotdays.com/Order_Events/Pinot_Days_Order_Form.asp">Order Event Tickets</a></li>
  307.                             <li><a href="../Ticketing/Trade_Signup.asp">Request Trade Tickets</a></li>
  308.                             <li><a href="../Ticketing/Trade_Requirements.asp">Trade Requirements</a></li>
  309.                           </ul>
  310.                       </li>      
  311.                       <li><a href="#" class="p7PMtrg"><span class="style22">Exhibitor Info</span></a>
  312.                           <ul>
  313.                             <li><a href="../Exhibitor_Info/Exhibitor_Signup.asp">Become an Exhibitor</a></li>
  314.                             <li><a href="../Exhibitor_Info/Exhibitor_Information.asp">Exhibitor's Information</a></li>
  315.                             <li><a href="#" class="p7PMtrg">Our Exhibitors</a>
  316.                               <ul>
  317.                                 <li><a href="../Exhibitor_Info/exhibitors_2008.asp">San Francisco</a></li>
  318.                                 <li><a href="../Exhibitor_Info/exhibitors_2008_NYC.asp">New York</a></li>
  319.                                 <li><a href="../Exhibitor_Info/exhibitors_2008_Chi.asp">Chicago</a></li>
  320.                             </ul>
  321.                         </ul>
  322.                       </li>
  323.                       <li><a href="#" class="p7PMtrg"><span class="style22">Sponsors</span></a>
  324.                             <ul>
  325.                             <li><a href="../Sponsors/Become_Sponsor.asp">Become A Sponsor</a></li>
  326.                             <li><a href="#" class="p7PMtrg">Our Sponsors</a>
  327.                                 <ul>
  328.                                   <li><a href="../Sponsors/Our_Sponors_Chi.asp">Chicago</a></li>
  329.                                   <li><a href="../Sponsors/Our_Sponsors_SF.asp">San Francisco</a></li>
  330.                                   <li><a href="../Sponsors/Our_Sponsors_NYC.asp">New York</a></li>
  331.                                 </ul>
  332.                             </li>
  333.                             </ul>
  334.                       </li>
  335.                       <li><a href="../Volunteers/Call_To_Volunteer.asp"><span class="style22">Volunteer</span></a></li>
  336.                       <li><a href="Join_List.asp"><span class="style22">Mailing List</span></a></li>
  337.                       <li><a href="#" class="p7PMtrg"><span class="style22">About Us</span></a>
  338.                           <ul>
  339.                             <li><a href="../About_Us/About_Us.asp">The Organizers</a></li>
  340.                             <li><a href="../About_Us/Contact_Info.asp">Contact Information</a></li>
  341.                             <li><a href="../About_Us/Our_Goal.asp">Our Goal</a></li>
  342.                             <li><a href="../About_Us/Privacy_Policy.html">Privacy Policy</a></li>
  343.                           </ul>
  344.                       </li>
  345.                       <li><a href="../Newsletter/Newsletter_Main.asp"><span class="style22">Newsletter</span></a></li>
  346.                       <!--[if lte IE 6]><style>#p7PMnav a{height:1em;}#p7PMnav li{height:1em;}#p7PMnav ul li{float:left;clear:both;width:100%}</style><![endif]-->
  347.                       <!--[if IE 6]><style>#p7PMnav ul li{clear:none;}</style><![endif]-->
  348.                     </ul></td>
  349.                   </tr>
  350.  
  351.                 </table></td>
  352.               </tr>
  353.             </table></td>
  354.           </tr>
  355.         </table></td>
  356.       </tr>
  357.  
  358.       <tr>
  359.         <td height="199" align="left" valign="top">          <table width="1031" border="0" align="center" cellpadding="0" cellspacing="0">
  360.  
  361.             <tr>
  362.               <td>&nbsp;</td>
  363.             </tr>
  364.             <tr>
  365.               <td width="1031"><div align="center"><span class="pinothdrsmallBOLD">Pinot Days Event Order Form </span></div></td>
  366.               </tr>
  367.  
  368.             <tr>
  369.               <td><table width="963" border="0" cellspacing="10" cellpadding="0">
  370.                 <tr>
  371.                   <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>
  372.                   </tr>
  373.                 </table></td>
  374.               </tr>
  375.             <tr>
  376.               <td><form method="POST" name="form1" action="">
  377.                 <table width="964" align="center">
  378.                   <tr valign="baseline">
  379.                     <td width="155" align="right" nowrap>Full Name*:</td>
  380.                         <td width="386" align="left">
  381.                         <input name="FullName" type="text" class="inputfield_small" value="" size="40" maxlength="40">                      </td>
  382.                         <td width="95" align="right">&nbsp;</td>
  383.                         <td width="308">&nbsp;</td>
  384.                       </tr>
  385.                   <tr valign="baseline">
  386.                     <td nowrap align="right">Address*:</td>
  387.                         <td align="left">
  388.                         <input name="Badd1" type="text" class="inputfield_small" id="Badd1" value="" size="60" maxlength="75">                      </td>
  389.                         <td align="right">&nbsp;</td>
  390.                         <td>&nbsp;</td>
  391.                       </tr>
  392.                   <tr valign="baseline">
  393.                     <td nowrap align="right"></td>
  394.                         <td align="left">
  395.                         <input name="BAdd2" type="text" class="inputfield_small" id="BAdd2" size="60" maxlength="75">                      </td>
  396.                         <td align="right">&nbsp;</td>
  397.                         <td>&nbsp;</td>
  398.                       </tr>
  399.                   <tr valign="baseline">
  400.                     <td nowrap align="right">City*:</td>
  401.                         <td align="left"><input name="BCity" type="text" class="inputfield_small" id="BCity" size="30" maxlength="30" /></td>
  402.                         <td align="right">&nbsp;</td>
  403.                         <td>&nbsp;</td>
  404.                       </tr>
  405.                   <tr valign="baseline">
  406.                     <td align="right" nowrap="nowrap">State*:</td>
  407.                         <td align="left"><select name="BState" size="1" class="inputfield_small" id="BState">
  408.                           <option value="  ">-- Please Select a Billing State --</option>
  409.                           <%
  410. While (NOT statelist.EOF)
  411. %>
  412.                           <option value="<%=(statelist.Fields.Item("StateID").Value)%>"><%=(statelist.Fields.Item("StateID").Value)%></option>
  413.                           <%
  414.   statelist.MoveNext()
  415. Wend
  416. %>
  417.                         </select></td>
  418.                         <td align="right">&nbsp;</td>
  419.                         <td>&nbsp;</td>
  420.                       </tr>
  421.                   <tr valign="baseline">
  422.                     <td nowrap align="right">Zip Code*:</td>
  423.                     <td align="left"><input name="BZip" type="text" class="inputfield_small" id="BZip" size="15" maxlength="15" /></td>
  424.                     <td align="right">&nbsp;</td>
  425.                     <td>&nbsp;</td>
  426.                   </tr>
  427.                   <tr valign="baseline">
  428.                     <td nowrap align="right">Email Address*: </td>
  429.                         <td align="left"><input name="emailaddress" type="text" class="inputfield" id="emailaddress" size="60" maxlength="60" /></td>
  430.                         <td align="right">&nbsp;</td>
  431.                         <td>&nbsp;</td>
  432.                       </tr>
  433.                   <tr valign="baseline">
  434.                     <td nowrap align="right">Telephone:</td>
  435.                         <td align="left"><input name="telephone" type="text" class="inputfield" id="telephone" size="15" maxlength="20" /></td>
  436.                         <td align="right">&nbsp;</td>
  437.                         <td>&nbsp;</td>
  438.                       </tr>
  439.                   <tr valign="baseline">
  440.                     <td colspan="4" align="right" nowrap><div align="left">
  441.                       <hr />
  442.                     </div></td>
  443.                     </tr>
  444.                   <tr valign="baseline">
  445.                     <td colspan="2" align="right" nowrap><div align="left"><span class="Header_1"><b>Shipping Information</b>&nbsp;&nbsp;&nbsp;</span></div></td>
  446.                         <td align="right">&nbsp;</td>
  447.                         <td>&nbsp;</td>
  448.                       </tr>
  449.                   <tr valign="baseline">
  450.                     <td width="155" align="right" class="Standard_Text">Same as Billing:&nbsp;</td>
  451.                         <td width="386" align="left" class="Standard_Text"><input name="checkbox" type="checkbox" class="form_input_small" id="same" onclick="sUpdate()" value="same" /></td>
  452.                         <td align="right">&nbsp;</td>
  453.                         <td>&nbsp;</td>
  454.                       </tr>
  455.                   <tr valign="baseline">
  456.                     <td height="28" align="right" class="Standard_Text">Address:&nbsp;</td>
  457.                         <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>
  458.                         <td align="right">&nbsp;</td>
  459.                         <td>&nbsp;</td>
  460.                       </tr>
  461.                   <tr valign="baseline">
  462.                     <td height="28" align="right" class="Standard_Text"></td>
  463.                         <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>
  464.                         <td align="right">&nbsp;</td>
  465.                         <td>&nbsp;</td>
  466.                       </tr>
  467.                   <tr valign="baseline">
  468.                     <td height="28" align="right" class="Standard_Text">City:&nbsp;</td>
  469.                         <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>
  470.                         <td align="right">&nbsp;</td>
  471.                         <td>&nbsp;</td>
  472.                       </tr>
  473.                   <tr valign="baseline">
  474.                     <td height="28" align="right" class="Standard_Text">State:&nbsp;</td>
  475.                         <td align="left"><select name="SState" size="1" class="inputfield_small" id="SState">
  476.                           <option value="  ">-- Please Select a Shipping State --</option>
  477.                           <%
  478. statelist.movefirst                          
  479. While (NOT statelist.EOF)
  480. %>
  481.                           <option value="<%=(statelist.Fields.Item("StateID").Value)%>"><%=(statelist.Fields.Item("StateID").Value)%></option>
  482.                           <%
  483.   statelist.MoveNext()
  484. Wend
  485. %>
  486.                         </select></td>
  487.                         <td align="right">&nbsp;</td>
  488.                         <td>&nbsp;</td>
  489.                       </tr>
  490.                   <tr valign="baseline">
  491.                     <td height="36" align="right">Zip Code:</td>
  492.                         <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>
  493.                         <td align="right">&nbsp;</td>
  494.                         <td>&nbsp;</td>
  495.                       </tr>
  496.                   <tr valign="baseline">
  497.                     <td height="12" colspan="4" align="right" nowrap><div align="left">
  498.                       <div align="left">
  499.                         <hr />
  500.                       </div>
  501.                     </div></td>
  502.                     </tr>
  503.                   <tr valign="baseline">
  504.                     <td colspan="2" align="right" nowrap><div align="left"><span class="Header_1"><b>Event Order Details</b>&nbsp;&nbsp;&nbsp;</span></div></td>
  505.                         <td align="right">&nbsp;</td>
  506.                         <td>&nbsp;</td>
  507.                       </tr>
  508.                   <tr valign="baseline">
  509.                     <td height="118" colspan="4" align="right" nowrap><table width="948" height="138" border="1" align="left" cellpadding="0" cellspacing="0" class="maintable">
  510.                           <tr class="bold10pttext">
  511.                             <td><div align="right"><u><strong>Event</strong></u></div></td>
  512.                             <td><div align="right"><u><strong>Date</strong></u></div></td>
  513.                             <td><div align="right"><u><strong>Time</strong></u></div></td>
  514.                             <td><div align="right"><u><strong>Location</strong></u></div></td>
  515.                             <td><div align="right"><u><strong>Price</strong></u></div></td>
  516.                             <td><div align="right"><u><strong># of Tickets </strong></u></div></td>
  517.                             <td><div align="right"><u>Total Price </u></div></td>
  518.                             <td><u></u></td>
  519.                           </tr>
  520.                           <tr>
  521.                             <td height="31"><div align="right">Grand Festival </div></td>
  522.                             <td><div align="right">November 15, 2008 </div></td>
  523.                             <td><div align="right">1-5PM</div></td>
  524.                             <td><div align="right">Navy Pier, Chicago </div></td>
  525.                             <td><div align="right">$50</div></td>
  526.                             <td>
  527.                               <div align="right">
  528.                                 <select name="T_GF" class="inputfield_small_Right" id="T_GF" onChange="Calc_Ord()" >
  529.                                   <option value="0" selected="selected">0</option>
  530.                                   <option value="1">1</option>
  531.                                   <option value="2">2</option>
  532.                                   <option value="3">3</option>
  533.                                   <option value="4">4</option>
  534.                                   <option value="5">5</option>
  535.                                   <option value="6">6</option>
  536.                                   <option value="7">7</option>
  537.                                   <option value="8">8</option>
  538.                                   <option value="9">9</option>
  539.                                   <option value="10">10</option>
  540.                                   <option value="11">11</option>
  541.                                   <option value="12">12</option>
  542.                                   <option value="13">13</option>
  543.                                   <option value="14">14</option>
  544.                                   <option value="15">15</option>
  545.                                   <option value="16">16</option>
  546.                                   <option value="17">17</option>
  547.                                   <option value="18">18</option>
  548.                                   <option value="19">19</option>
  549.                                   <option value="20">20</option>
  550.                                 </select>
  551.                               </div></td>
  552.                             <td width="84"><div align="right">
  553.                               <input name="Ext_Amt_1" type="text" class="NoSeeFormLightGray" id="Ext_Amt_1" size="8" maxlength="8" readonly="true"/>
  554.                             </div></td>
  555.                             <td width="19">&nbsp;</td>
  556.                             </tr>
  557.                       <tr>
  558.                         <td height="31"><div align="right">Winemakers Dinner </div></td>
  559.                             <td><div align="right">November 14, 2008 </div></td>
  560.                             <td><div align="right">7-11PM</div></td>
  561.                             <td><div align="right">Bin 36 Restaurant </div></td>
  562.                             <td><div align="right">$130</div></td>
  563.                             <td><div align="right">
  564.                               <select name="T_WMD" class="inputfield_small_Right" id="T_WMD" onChange="Calc_Ord()">
  565.                                 <option value="0" selected="selected">0</option>
  566.                                 <option value="1">1</option>
  567.                                 <option value="2">2</option>
  568.                                 <option value="3">3</option>
  569.                                 <option value="4">4</option>
  570.                                 <option value="5">5</option>
  571.                                 <option value="6">6</option>
  572.                                 <option value="7">7</option>
  573.                                 <option value="8">8</option>
  574.                                 <option value="9">9</option>
  575.                                 <option value="10">10</option>
  576.                                 <option value="11">11</option>
  577.                                 <option value="12">12</option>
  578.                                 <option value="13">13</option>
  579.                                 <option value="14">14</option>
  580.                                 <option value="15">15</option>
  581.                                 <option value="16">16</option>
  582.                                 <option value="17">17</option>
  583.                                 <option value="18">18</option>
  584.                                 <option value="19">19</option>
  585.                                 <option value="20">20</option>
  586.                               </select>
  587.                             </div></td>
  588.                             <td align="right"><input name="Ext_Amt_2" type="text" class="NoSeeFormLightGray" id="Ext_Amt_2" size="8" maxlength="8" readonly="true"/></td>
  589.                             <td>&nbsp;</td>
  590.                           </tr>
  591.                       <tr>
  592.                         <td>&nbsp;</td>
  593.                         <td>&nbsp;</td>
  594.                         <td>&nbsp;</td>
  595.                         <td>&nbsp;</td>
  596.                         <td>&nbsp;</td>
  597.                         <td><div align="right">Discount Code: </div></td>
  598.                         <td><input name="Discount_Code" type="text" class="inputfield_small" id="Discount_Code" size="12" maxlength="10" onChange="Calc_Ord()" /></td>
  599.                         <td>&nbsp;</td>
  600.                       </tr>
  601.                       <tr>
  602.                         <td height="28">&nbsp;</td>
  603.                         <td>&nbsp;</td>
  604.                         <td>&nbsp;</td>
  605.                         <td>&nbsp;</td>
  606.                         <td>&nbsp;</td>
  607.                         <td><div align="right"><strong>Order Total:</strong></div></td>
  608.                         <td align="right"><input name="Tot_Amt" type="text" class="NoSeeFormLightGray" id="Tot_Amt" size="8" maxlength="8" readonly="true"/></td>
  609.                         <td>&nbsp;</td>
  610.                       </tr>
  611.                         </table></td>
  612.                       </tr>
  613.                   <tr valign="baseline">
  614.                     <td colspan="4" align="right" nowrap="nowrap" class="Text"><div align="left">
  615.                       <hr />
  616.                     </div></td>
  617.                     </tr>
  618.                   <tr valign="baseline">
  619.                     <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>
  620.                     <td>&nbsp;</td>
  621.                   </tr>
  622.                   <tr valign="baseline">
  623.                     <td align="right" nowrap="nowrap" class="Text"> Name on Credit Card: </td>
  624.                     <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>
  625.                     <td>&nbsp;</td>
  626.                   </tr>
  627.                   <tr valign="baseline">
  628.                     <td align="right" nowrap="nowrap" class="Text">Credit Card Type:</td>
  629.                     <td colspan="2" align="left" valign="top"><select name="CCType" class="inputfield_small">
  630.                       <option value=" " selected="selected"> </option>
  631.                       <option value="AMEX">American Express</option>
  632.                       <option value="MC">MasterCard</option>
  633.                       <option value="VISA">Visa</option>
  634.                     </select></td>
  635.                     <td>&nbsp;</td>
  636.                   </tr>
  637.                   <tr valign="baseline">
  638.                     <td align="right" nowrap="nowrap" class="Text">Credit Card Number: </td>
  639.                     <td colspan="2" align="left" valign="top"><input name="cc_Number" type="text" class="inputfield_small" id="cc_Number" size="20" maxlength="20" /></td>
  640.                     <td>&nbsp;</td>
  641.                   </tr>
  642.                   <tr valign="baseline">
  643.                     <td height="21" align="right" valign="baseline" nowrap><span class="Text">Exp. Date: </span></td>
  644.                     <td colspan="2" align="left" valign="top"><table width="172" height="19" border="0" cellpadding="0" cellspacing="0">
  645.                       <tr valign="baseline">
  646.                         <td height="19"><select name="expmonth" size="1" class="inputfield_small" id="expmonth">
  647.                             <option value="1">01</option>
  648.                             <option value="2">02</option>
  649.                             <option value="3">03</option>
  650.                             <option value="4">04</option>
  651.                             <option value="5">05</option>
  652.                             <option value="6">06</option>
  653.                             <option value="7">07</option>
  654.                             <option value="8">08</option>
  655.                             <option value="9">09</option>
  656.                             <option value="10">10</option>
  657.                             <option value="11">11</option>
  658.                             <option value="12">12</option>
  659.                         </select></td>
  660.                         <td align="left"><select name="expyear" size="1" class="inputfield_small" id="expyear">
  661.                             <option value="2008" selected="selected">2008</option>
  662.                             <option value="2009">2009</option>
  663.                             <option value="2010">2010</option>
  664.                             <option value="2011">2011</option>
  665.                             <option value="2012">2012</option>
  666.                             <option value="2013">2013</option>
  667.                             <option value="2014">2014</option>
  668.                             <option value="2015">2015</option>
  669.                         </select></td>
  670.                       </tr>
  671.  
  672.                     </table></td>
  673.                     <td>&nbsp;</td>
  674.                   </tr>
  675.                   <tr valign="baseline">
  676.                     <td height="29" align="right" valign="top" nowrap>&nbsp;</td>
  677.                     <td colspan="2" align="left" valign="top">&nbsp;</td>
  678.                     <td>&nbsp;</td>
  679.                   </tr>
  680.                   <tr valign="baseline">
  681.                     <td height="68" align="right" valign="top" nowrap>Comments:</td>
  682.                         <td colspan="2" align="left" valign="top"><textarea name="comments" cols="100" rows="3" class="inputfield_small" id="comments"></textarea></td>
  683.                         <td>&nbsp;</td>
  684.                       </tr>
  685.                   <tr valign="baseline">
  686.                     <td height="56" align="right" nowrap>&nbsp;</td>
  687.                     <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>
  688.                     <td align="left" valign="middle"><input name="Age_Verify" type="checkbox" class="inputfield_small" id="Age_Verify" value="checkbox" /></td>
  689.                   </tr>
  690.                   <tr valign="baseline">
  691.                     <td nowrap align="right">&nbsp;</td>
  692.                         <td align="left">
  693.                           <div align="right">
  694.                             <input type="button" value="Submit Order" onclick="advance()"/>
  695.                         </div></td>
  696.                         <td align="right">&nbsp;</td>
  697.                         <td>&nbsp;</td>
  698.                       </tr>
  699.                   </table>
  700.                     <input type="hidden" name="MM_update" value="form1">
  701.                     <input type="hidden" name="Unit_Amt_2">
  702.                     <input type="hidden" name="Unit_Amt_1">
  703.                     <input type="hidden" name="entity_num" value="<%=rnd_num_pw%>">
  704.                     <input type="hidden" name="MM_insert" value="form1">
  705.                 </form>
  706.                 <p>&nbsp;</p></td>
  707.               </tr>
  708.             <tr>
  709.               <td><script language="JavaScript" src='https://seal.XRamp.com/seal.asp?type=A' type="text/javascript"></script></td>
  710.               </tr>
  711.             <tr>
  712.               <td>&nbsp;</td>
  713.               </tr>
  714.           </table></td>
  715.       </tr>
  716.     </table></td>
  717.     <td>&nbsp;</td>
  718.   </tr>
  719.   <tr>
  720.     <td>&nbsp;</td>
  721.     <td>&nbsp;</td>
  722.     <td>&nbsp;</td>
  723.   </tr>
  724. </table>
  725. </body>
  726. </html>
  727. <%
  728. statelist.Close()
  729. Set statelist = Nothing
  730. %>
  731.  
  732.  
Oct 9 '08 #3
Dormilich
8,658 Expert Mod 8TB
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
Oct 10 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
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....
3
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...
3
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...
6
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...
49
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.
2
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...
3
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: //...
1
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...
2
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.