[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

HOW TO USE CHECKBOX + LISTBOX

Asked by scriptless in JavaScript, Font Creator

Tags: use, checkbox, javascript

web page shows details of 3 products(including price) associated with product should be listbox which allows user to pick how many of each product(up to 5 of each)

3 checkboxes associated with 3 products to allow user to opt for insurance.
insurance adds 20% to the total cost of product

Finally code should be included to allow values to be saved in a cookie.



Here's my code so far....
cut + paste to see output.

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-gb">
<meta name="VI60_defaultClientScript" content="JavaScript">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>E-commerce Site</title>
<SCRIPT LANGUAGE = JAVASCRIPT>
var total = document.myform.subtotal.value;

function calculate(){
      
      if(document.myform.item1.checked == true){
      total += (total * 0.20);
      }
      
      
      document.formName.subtotal1.value = total;

</script>
</head>

<body bgcolor="#00CCFF">

<h2 align="center"><u><font size="4"><b>Welcome to E-Commerce Website!</b></font></u></h2>
<p> </p>
<a href ="products.htm"><font size="1">Home</font></a>
<br><br><br><br>
<p><font face="Arial Narrow">Below are the prices of our products we currently
have in stock.</font></p>
<br><br><br>

   
<!--"Start of Table" -->
<table width="893" border="1" BORDERCOLOR="#999999" cellspacing="0" cellpadding="2">
<tr>
    <td bgcolor="#999999" height="25" align="center" width="173"><font color="#FFFFFF">Product</font></td>
    <td bgcolor="#999999" align="center" width="50"><font color="#FFFFFF">Image</font></td>
    <td bgcolor="#999999" align="center" width="86"><font color="#FFFFFF">Price</font></td>
    <td bgcolor="#999999" align="center" width="197"><font color="#FFFFFF">Qty </font></td>
      <td bgcolor="#999999" align="center" width="122"><font color="#FFFFFF">Insurance</font></td>
      <td bgcolor="#999999" align="center" width="227"><font color="#FFFFFF">SubTotal</font></td>
</tr>

<tr>
      
      <td align = "center" width="173" bgcolor="#eeeeee"><font face="MS Sans Serif">Sony Camcorder</font></td>   <!--"shows name of product" -->
      <td align = "center" width="50"><img border="0" src="cam.jpg" width="50" height="50"></td><!--"Shows picture of product" -->
      <td align = "center" width="86" bgcolor="#eeeeee"><font face="MS Sans Serif">£1094</font></td><!--"shows price of product" -->
      
      
      <td align = "center" width="197" bgcolor="#eeeeee">
      <p><font face="MS Sans Serif">Select quantity</font><!--"Displays listbox" -->
      <select name = "pick1">
      <option>1
      <option>2
      <option>3
      <option>4
      <option>5
      </select></p>
      </td>
      
      <form method="post" name="myform">       
      <td align = "center" width="122" bgcolor="#eeeeee"><font face="MS Sans Serif">Insurance?</font><input name = "item1" type = "checkbox" onClick = "calculate()"></td><!--"Displays checkbox" -->
                  
      <td align = "center" width="227" bgcolor="#eeeeee">£<input type = "text" name = "subtotal1"></td><!--"Displays totalcost" -->
      </form>      
</tr>

<tr>
      
      <td align = "center" width="173" bgcolor="#eeeeee"><font face="MS Sans Serif">Sony HiFi</font></td>
      <td align = "center" width="50"><img border="0" src="HiFi.jpg" width="50" height="50"></td>
      <td align = "center" width="86" bgcolor="#eeeeee"><font face="MS Sans Serif">£269</font></td>
      
      <td align = "center" width="197" bgcolor="#eeeeee">
      <p><font face="MS Sans Serif">Select quantity </font>
      <select name = "pick2">
      <option>1
      <option>2
      <option>3
      <option>4
      <option>5
      </select></p>
      </td>
      
      <td align = "center" width="122" bgcolor="#eeeeee"><font face="MS Sans Serif">Insurance?</font><input name = "item2" type = "checkbox"></td>
      <td align = "center" width="227" bgcolor="#eeeeee">£<input type = "text" name = "subtotal2"></td>
</tr>

<tr>
      
       <td align = "center" width="173" bgcolor="#eeeeee"><font face="MS Sans Serif">MP3 Player</font></td>
    <td align = "center" width="50"><img border="0" src="MP3.jpg" width="50" height="50"></td>
    <td align = "center" width="86" bgcolor="#eeeeee"><font face="MS Sans Serif">£260</font></td>
   
    <td align = "center" width="197" bgcolor="#eeeeee">
    <p><font face="MS Sans Serif">Select quantity</font>
    <select name = "pick3">
    <option>1
    <option>2
    <option>3
    <option>4
    <option>5
    </select></p>
    </td>
       
    <td align = "center" width="122" bgcolor="#eeeeee"><font face="MS Sans Serif">Insurance?</font><input name = "item3" type = "checkbox"></td>
    <td align = "center" width="227" bgcolor="#eeeeee">£<input type = "text" name "subtotal3"</td>
</tr>
   
   <tr>
   <td colspan ="5" bgcolor = "999999">
    <td bgcolor="#999999" align="center"><input type="button"  value="Calculate" style="background-color:#ffffff; color:#000000; border:1px solid #000000; font-family:tahoma; font-size:8pt; letter-spacing=1px">
    <input type="reset" value="Reset" style="background-color:#ffffff; color:#000000; border:1px solid #000000; font-family:tahoma; font-size:8pt; letter-spacing=1px"></td>
      </tr>
 

   
   
   
</table>
</body>
 
Related Solutions
Keywords: HOW TO USE CHECKBOX + LISTBOX
 
Loading Advertisement...
 
[+][-]04/15/03 04:04 PM, ID: 8337396Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: JavaScript, Font Creator
Tags: use, checkbox, javascript
Sign Up Now!
Solution Provided By: Zvonko
Participating Experts: 5
Solution Grade: A
 
[+][-]04/15/03 08:32 PM, ID: 8338299Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04/15/03 11:23 PM, ID: 8338965Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04/16/03 04:20 AM, ID: 8340120Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/16/03 12:50 PM, ID: 8343680Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/16/03 07:26 PM, ID: 8345537Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/16/03 11:13 PM, ID: 8346175Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/17/03 12:02 AM, ID: 8346345Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/17/03 07:49 PM, ID: 8352259Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/17/03 07:49 PM, ID: 8352260Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/17/03 10:57 PM, ID: 8352758Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/19/03 11:09 PM, ID: 8361738Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/21/03 09:21 AM, ID: 8367433Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/25/04 12:54 PM, ID: 10197076Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/01/04 12:04 PM, ID: 10248139Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]02/10/04 02:03 AM, ID: 10320657Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/10/04 03:00 AM, ID: 10320923Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/10/04 03:01 AM, ID: 10320927Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92