Creating a Survey - Novice Javascript Question

Hello,
I am extrememely new to Javascript.  I have been doing some research online and copy/pasting code to create the results I need.  I am trying to create an online survey in Dreamweaver in which users select buttons to answer questions and then the total results appear at the bottom of the survey.  So far this is what I have:
http://sicolaconsulting.com/SurveyTest4.php
The problem I have with this is that on each line, a user can select more than one box.  I don't want this so I thought radio buttons would be better.  I then came up with this:
http://sicolaconsulting.com/SurveyTest3.php
The problem with this is that with the function I am using, I can only get it to display the value of the first line.  I need it to calculate the sum of all the lines.
Can you help me revise the script I have to get my desired result.
Here is my code for the first page, followed by the code for the second page.  THANK YOU!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<title>Survey</title>
<style type="text/css">
body,td,th {
          font-family: Tahoma, Geneva, sans-serif;
</style>
<link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
<title>Survey</title>
<script type="text/javascript">
          function TotalPart1A() {
                    document.survey.Total1A.value = '';
                    var sum = 0;
                    for (i=0;i<document.survey.Part1A.length;i++) {
                      if (document.survey.Part1A[i].checked) {
                                sum = sum + parseInt(document.survey.Part1A[i].value);
                    document.survey.Total1A.value = sum;
</script>
<link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper"><br />
  <div id="survey-header"><strong>Purpose:</strong><br />
    The Learning Style Survey assesses your general approach to learning. <br />
    It does not predict your behavior, but it is a clear indication of your overall style preferences.<br />
    <br />
    <strong>Instructions:</strong><br />
    For each item circle the response that represents your approach. Complete all items. <br />
    There are eleven major activities representing twelve different aspects of your learning style. <br />
    When you read the statements, try to think about what you generally do when learning. <br />
    <br />
    <strong>Time:</strong><br />
    It takes about 30 minutes to complete the survey. Do not spend too much time on any item. Indicate your immediate response (or feeling) and move on to the next item. <br />
    <br />
    <strong>For each item, enter your immediate response:<br />
      0 = Never  1 = Rarely  2 = Sometimes  3 = Often  4 = Always</strong><br />
  </div>
          <div id="survey">
<form name="survey">
          <div id="survey-section1">
                <table class="survey-table" cellspacing="0" width="812">
                  <tr>
                    <td height="24" colspan="2" align="left" bgcolor="#CCCCCC"><strong>Part 1: How I Use My Physical Senses</strong></td>
                    <td height="24" align="center" bgcolor="#CCCCCC"><strong>1</strong></td>
                    <td height="24" align="center" bgcolor="#CCCCCC"><strong>2</strong></td>
                    <td height="24" align="center" bgcolor="#CCCCCC"><strong>3</strong></td>
                    <td height="24" align="center" bgcolor="#CCCCCC"><strong>4</strong></td>
                    </tr>
                  <tr>
                    <td width="31" height="27">1</td>
                    <td width="515" align="left">I remember something better if I write it down.</td>
                    <td width="60"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                    <td width="60"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                    <td width="60"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                    <td width="60"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                    </tr>
                  <tr>
                    <td width="31" bgcolor="#EAEAEA">2</td>
                    <td height="27" align="left" bgcolor="#EAEAEA"> I take detailed notes during lectures.</td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                    </tr>
                  <tr>
                    <td>3</td>
                    <td height="27" align="left">When I listen, I visualize pictures, numbers, or words in my head.</td>
                    <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                    <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                    <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                    <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                    </tr>
                  <tr>
                    <td bgcolor="#EAEAEA">4</td>
                    <td height="27" align="left" bgcolor="#EAEAEA"> I prefer to learn with TV or video rather than other media. </td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                    </tr>
                  <tr>
                    <td>5</td>
                    <td height="27" align="left"> I use color coding to help me as I learn to work.</td>
                    <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                    <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                    <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                    <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                    </tr>
                  <tr>
                    <td bgcolor="#EAEAEA">6</td>
                    <td height="27" align="left" bgcolor="#EAEAEA"> I need written directions for tasks.</td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                    </tr>
                  <tr>
                    <td>7</td>
                    <td height="27" align="left"> I have to look at people to understand what they say.</td>
                    <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                    <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                    <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                    <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                    </tr>
                  <tr>
                    <td bgcolor="#EAEAEA">8</td>
                    <td height="27" align="left" bgcolor="#EAEAEA">I understand lecturers better when they write on the board.</td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                    </tr>
                  <tr>
                    <td>9</td>
                    <td height="27" align="left">Charts, diagrams, and maps help me understand what someone says. </td>
                    <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                    <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                    <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                    <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                    </tr>
                  <tr>
                    <td bgcolor="#EAEAEA">10</td>
                    <td height="27" align="left" bgcolor="#EAEAEA">I remember people’s faces, but not their names. </td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                    <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                    </tr>
                  <tr>
                    <td> </td>
                    <td height="27" align="right">A TOTAL: </td>
                    <td colspan="2"><input type="text" size="10" name="Total1A" value="0"/></td>
                    <td align="right"> </td>
                    <td> </td>
                    </tr>
                  <tr>
                    <td> </td>
                    <td height="27" align="right"> </td>
                    <td> </td>
                    <td> </td>
                    <td align="right"> </td>
                    <td> </td>
                    </tr>
                  </table>
</form>
            </div>
          </div>
    </body>
    </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<title>Survey</title>
<style type="text/css">
body,td,th {
          font-family: Tahoma, Geneva, sans-serif;
</style>
<link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
          function TotalPart1A() {
                    document.survey.Total1A.value = '';
                    var sum = 0;
                    for (i=0;i<document.survey.radiogroup1A.length;i++) {
                      if (document.survey.radiogroup1A[i].checked) {
                                sum = sum + parseInt(document.survey.radiogroup1A[i].value);
                    document.survey.Total1A.value = sum;
</script>
<link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper"><br />
  <div id="survey-header"><strong>Purpose:</strong><br />
    The Learning Style Survey assesses your general approach to learning. <br />
    It does not predict your behavior, but it is a clear indication of your overall style preferences.<br />
    <br />
    <strong>Instructions:</strong><br />
    For each item circle the response that represents your approach. Complete all items. <br />
    There are eleven major activities representing twelve different aspects of your learning style. <br />
    When you read the statements, try to think about what you generally do when learning. <br />
    <br />
    <strong>Time:</strong><br />
    It takes about 30 minutes to complete the survey. Do not spend too much time on any item. Indicate your immediate response (or feeling) and move on to the next item. <br />
    <br />
    <strong>For each item, enter your immediate response:<br />
      0 = Never  1 = Rarely  2 = Sometimes  3 = Often  4 = Always</strong><br />
  </div>
  <div id="survey">
    <form name="survey" id="survey">
      <div id="survey-section1">
      <table class="survey-table" cellspacing="0" width="812">
        <tr>
          <td height="24" colspan="2" align="left" bgcolor="#CCCCCC"><strong>Part 1: How I Use My Physical Senses</strong></td>
          <td height="24" align="center" bgcolor="#CCCCCC"><strong>1</strong></td>
          <td height="24" align="center" bgcolor="#CCCCCC"><strong>2</strong></td>
          <td height="24" align="center" bgcolor="#CCCCCC"><strong>3</strong></td>
          <td height="24" align="center" bgcolor="#CCCCCC"><strong>4</strong></td>
        </tr>
        <tr>
          <td width="31" height="27">1</td>
          <td width="515" align="left">I remember something better if I write it down.</td>
          <td width="60"><input type="radio" name="radiogroup1A" value="1" onchange="TotalPart1A()"/></td>
          <td width="60"><input type="radio" name="radiogroup1A" value="2" onchange="TotalPart1A()"/></td>
          <td width="60"><input type="radio" name="radiogroup1A" value="3" onchange="TotalPart1A()"/></td>
          <td width="60"><input type="radio" name="radiogroup1A" value="4" onchange="TotalPart1A()"/></td>
        </tr>
        <tr>
          <td width="31" bgcolor="#EAEAEA">2</td>
          <td height="27" align="left" bgcolor="#EAEAEA"> I take detailed notes during lectures.</td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="1" onchange="TotalPart1A()"/></td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="2" onchange="TotalPart1A()"/></td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="3" onchange="TotalPart1A()"/></td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="4" onchange="TotalPart1A()"/></td>
        </tr>
        <tr>
          <td>3</td>
          <td height="27" align="left">When I listen, I visualize pictures, numbers, or words in my head.</td>
          <td><input type="radio" name="radiogroup3A" value="1" onchange="TotalPart1A()"/></td>
          <td><input type="radio" name="radiogroup3A" value="2" onchange="TotalPart1A()"/></td>
          <td><input type="radio" name="radiogroup3A" value="3" onchange="TotalPart1A()"/></td>
          <td><input type="radio" name="radiogroup3A" value="4" onchange="TotalPart1A()"/></td>
        </tr>
        <tr>
          <td bgcolor="#EAEAEA">4</td>
          <td height="27" align="left" bgcolor="#EAEAEA"> I prefer to learn with TV or video rather than other media. </td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="1" onchange="TotalPart1A()"/></td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="2" onchange="TotalPart1A()"/></td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="3" onchange="TotalPart1A()"/></td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="4" onchange="TotalPart1A()"/></td>
        </tr>
        <tr>
          <td>5</td>
          <td height="27" align="left"> I use color coding to help me as I learn to work.</td>
          <td><input type="radio" name="radiogroup5A" value="1" onchange="TotalPart1A()"/></td>
          <td><input type="radio" name="radiogroup5A" value="2" onchange="TotalPart1A()"/></td>
          <td><input type="radio" name="radiogroup5A" value="3" onchange="TotalPart1A()"/></td>
          <td><input type="radio" name="radiogroup5A" value="4" onchange="TotalPart1A()"/></td>
        </tr>
        <tr>
          <td bgcolor="#EAEAEA">6</td>
          <td height="27" align="left" bgcolor="#EAEAEA"> I need written directions for tasks.</td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="1" onchange="TotalPart1A()"/></td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="2" onchange="TotalPart1A()"/></td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="3" onchange="TotalPart1A()"/></td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="4" onchange="TotalPart1A()"/></td>
        </tr>
        <tr>
          <td>7</td>
          <td height="27" align="left"> I have to look at people to understand what they say.</td>
          <td><input type="radio" name="radiogroup7A" value="1" onchange="TotalPart1A()"/></td>
          <td><input type="radio" name="radiogroup7A" value="2" onchange="TotalPart1A()"/></td>
          <td><input type="radio" name="radiogroup7A" value="3" onchange="TotalPart1A()"/></td>
          <td><input type="radio" name="radiogroup7A" value="4" onchange="TotalPart1A()"/></td>
        </tr>
        <tr>
          <td bgcolor="#EAEAEA">8</td>
          <td height="27" align="left" bgcolor="#EAEAEA">I understand lecturers better when they write on the board.</td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="1" onchange="TotalPart1A()"/></td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="2" onchange="TotalPart1A()"/></td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="3" onchange="TotalPart1A()"/></td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="4" onchange="TotalPart1A()"/></td>
        </tr>
        <tr>
          <td>9</td>
          <td height="27" align="left">Charts, diagrams, and maps help me understand what someone says. </td>
          <td><input type="radio" name="radiogroup9A" value="1" onchange="TotalPart1A()"/></td>
          <td><input type="radio" name="radiogroup9A" value="2" onchange="TotalPart1A()"/></td>
          <td><input type="radio" name="radiogroup9A" value="3" onchange="TotalPart1A()"/></td>
          <td><input type="radio" name="radiogroup9A" value="4" onchange="TotalPart1A()"/></td>
        </tr>
        <tr>
          <td bgcolor="#EAEAEA">10</td>
          <td height="27" align="left" bgcolor="#EAEAEA">I remember people’s faces, but not their names. </td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="1" onchange="TotalPart1A()"/></td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="2" onchange="TotalPart1A()"/></td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="3" onchange="TotalPart1A()"/></td>
          <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="4" onchange="TotalPart1A()"/></td>
        </tr>
        <tr>
          <td> </td>
          <td height="27" align="right">A TOTAL: </td>
          <td colspan="2"><input type="text" size="10" name="Total1A" value="0"/></td>
          <td align="right"> </td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td height="27" align="right"> </td>
          <td> </td>
          <td> </td>
          <td align="right"> </td>
          <td> </td>
        </tr>
      </table>
    </form>
  </div>
</div>
</body>
</html>

Hi Nancy,
I've been away from this for a while and have picked it back up.  I tried your suggested code and I'm having problems getting it to work.  I created a file using the code you supplied for the survey here:
view-source:http://www.littlechisel.com/clients/GreenSurvey/GreenSurvey.html
It doesn't work so I know I'm missing something.  If you could advise me on this, it would be great.  Thanks! Here is the code as I have it:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript">
function calcscore() {
    var score = 0;
    $(".calc:checked").each(function() {
        score += parseInt($(this).val(), 10);
    $("input[name=sum]").val(score)
$().ready(function() {
    $(".calc").change(function() {
        calcscore()
</script>
<link href="stylesheets/Survey.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1>jQuery Sum of Radio Fields</h1>
<form action="">
<h2>HOW GREEN ARE YOU?</h2>
<p><strong>I walk/bicycle  to work/school. </strong><br>
Yes
<input class="calc" type="radio" name="radio1" value="10">
No
<input class="calc" type="radio" name="radio1" value="0">
Sometimes
<input class="calc" type="radio" name="radio1" value="5"></p>
<p><strong>I buy  locally grown food. </strong><br>
Yes
<input class="calc" type="radio" name="radio2" value="10">
No
<input class="calc" type="radio" name="radio2" value="0">
Sometimes
<input class="calc" type="radio" name="radio2" value="5"></p>
<p><strong>I recycle. </strong><br>
Yes
<input class="calc" type="radio" name="radio3" value="10">
No
<input class="calc" type="radio" name="radio3" value="0">
Sometimes
<input class="calc" type="radio" name="radio3" value="5"></p>
<p><strong>I compost. </strong><br>
Yes
<input class="calc" type="radio" name="radio4" value="10">
No
<input class="calc" type="radio" name="radio4" value="0">
Sometimes
<input class="calc" type="radio" name="radio4" value="5"></p>
<p>Total Green Score:
<input type="text" name="sum">
</p>
</form>
</body>
</html>

Similar Messages

  • Creating a Survey - Novice Question

    Hello,
    I am extrememely new to Javascript.  I have been doing some research online and copy/pasting code to create the results I need.  I am trying to create an online survey in which users select buttons to answer questions and then the total results appear at the bottom of the survey.  So far this is what I have:
    http://sicolaconsulting.com/SurveyTest4.php
    The problem I have with this is that on each line, a user can select more than one box.  I don't want this so I thought radio buttons would be better.  I then came up with this:
    http://sicolaconsulting.com/SurveyTest3.php
    The problem with this is that with the function I am using, I can only get it to display the value of the first line.  I need it to calculate the sum of all the lines.
    Can you help me revise the script I have to get my desired result. 
    Here is my code for the first page, followed by the code for the second page.  THANK YOU!
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <title>Survey</title>
    <style type="text/css">
    body,td,th {
              font-family: Tahoma, Geneva, sans-serif;
    </style>
    <link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
    <title>Survey</title>
    <script type="text/javascript">
              function TotalPart1A() {
                        document.survey.Total1A.value = '';
                        var sum = 0;
                        for (i=0;i<document.survey.Part1A.length;i++) {
                          if (document.survey.Part1A[i].checked) {
                                    sum = sum + parseInt(document.survey.Part1A[i].value);
                        document.survey.Total1A.value = sum;
    </script>
    <link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper"><br />
      <div id="survey-header"><strong>Purpose:</strong><br />
        The Learning Style Survey assesses your general approach to learning. <br />
        It does not predict your behavior, but it is a clear indication of your overall style preferences.<br />
        <br />
        <strong>Instructions:</strong><br />
        For each item circle the response that represents your approach. Complete all items. <br />
        There are eleven major activities representing twelve different aspects of your learning style. <br />
        When you read the statements, try to think about what you generally do when learning. <br />
        <br />
        <strong>Time:</strong><br />
        It takes about 30 minutes to complete the survey. Do not spend too much time on any item. Indicate your immediate response (or feeling) and move on to the next item. <br />
        <br />
        <strong>For each item, enter your immediate response:<br />
          0 = Never  1 = Rarely  2 = Sometimes  3 = Often  4 = Always</strong><br />
      </div>
              <div id="survey">
    <form name="survey">
              <div id="survey-section1">
                    <table class="survey-table" cellspacing="0" width="812">
                      <tr>
                        <td height="24" colspan="2" align="left" bgcolor="#CCCCCC"><strong>Part 1: How I Use My Physical Senses</strong></td>
                        <td height="24" align="center" bgcolor="#CCCCCC"><strong>1</strong></td>
                        <td height="24" align="center" bgcolor="#CCCCCC"><strong>2</strong></td>
                        <td height="24" align="center" bgcolor="#CCCCCC"><strong>3</strong></td>
                        <td height="24" align="center" bgcolor="#CCCCCC"><strong>4</strong></td>
                        </tr>
                      <tr>
                        <td width="31" height="27">1</td>
                        <td width="515" align="left">I remember something better if I write it down.</td>
                        <td width="60"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td width="60"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td width="60"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td width="60"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td width="31" bgcolor="#EAEAEA">2</td>
                        <td height="27" align="left" bgcolor="#EAEAEA"> I take detailed notes during lectures.</td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td>3</td>
                        <td height="27" align="left">When I listen, I visualize pictures, numbers, or words in my head.</td>
                        <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td bgcolor="#EAEAEA">4</td>
                        <td height="27" align="left" bgcolor="#EAEAEA"> I prefer to learn with TV or video rather than other media. </td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td>5</td>
                        <td height="27" align="left"> I use color coding to help me as I learn to work.</td>
                        <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td bgcolor="#EAEAEA">6</td>
                        <td height="27" align="left" bgcolor="#EAEAEA"> I need written directions for tasks.</td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td>7</td>
                        <td height="27" align="left"> I have to look at people to understand what they say.</td>
                        <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td bgcolor="#EAEAEA">8</td>
                        <td height="27" align="left" bgcolor="#EAEAEA">I understand lecturers better when they write on the board.</td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td>9</td>
                        <td height="27" align="left">Charts, diagrams, and maps help me understand what someone says. </td>
                        <td><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td bgcolor="#EAEAEA">10</td>
                        <td height="27" align="left" bgcolor="#EAEAEA">I remember people’s faces, but not their names. </td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="1" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="2" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="3" onchange="TotalPart1A()"/></td>
                        <td bgcolor="#EAEAEA"><input type="checkbox" name="Part1A" value="4" onchange="TotalPart1A()"/></td>
                        </tr>
                      <tr>
                        <td> </td>
                        <td height="27" align="right">A TOTAL: </td>
                        <td colspan="2"><input type="text" size="10" name="Total1A" value="0"/></td>
                        <td align="right"> </td>
                        <td> </td>
                        </tr>
                      <tr>
                        <td> </td>
                        <td height="27" align="right"> </td>
                        <td> </td>
                        <td> </td>
                        <td align="right"> </td>
                        <td> </td>
                        </tr>
                      </table>
    </form>
                </div>
              </div>
        </body>
        </html>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <title>Survey</title>
    <style type="text/css">
    body,td,th {
              font-family: Tahoma, Geneva, sans-serif;
    </style>
    <link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
              function TotalPart1A() {
                        document.survey.Total1A.value = '';
                        var sum = 0;
                        for (i=0;i<document.survey.radiogroup1A.length;i++) {
                          if (document.survey.radiogroup1A[i].checked) {
                                    sum = sum + parseInt(document.survey.radiogroup1A[i].value);
                        document.survey.Total1A.value = sum;
    </script>
    <link href="stylesheets/SCG_Styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper"><br />
      <div id="survey-header"><strong>Purpose:</strong><br />
        The Learning Style Survey assesses your general approach to learning. <br />
        It does not predict your behavior, but it is a clear indication of your overall style preferences.<br />
        <br />
        <strong>Instructions:</strong><br />
        For each item circle the response that represents your approach. Complete all items. <br />
        There are eleven major activities representing twelve different aspects of your learning style. <br />
        When you read the statements, try to think about what you generally do when learning. <br />
        <br />
        <strong>Time:</strong><br />
        It takes about 30 minutes to complete the survey. Do not spend too much time on any item. Indicate your immediate response (or feeling) and move on to the next item. <br />
        <br />
        <strong>For each item, enter your immediate response:<br />
          0 = Never  1 = Rarely  2 = Sometimes  3 = Often  4 = Always</strong><br />
      </div>
      <div id="survey">
        <form name="survey" id="survey">
          <div id="survey-section1">
          <table class="survey-table" cellspacing="0" width="812">
            <tr>
              <td height="24" colspan="2" align="left" bgcolor="#CCCCCC"><strong>Part 1: How I Use My Physical Senses</strong></td>
              <td height="24" align="center" bgcolor="#CCCCCC"><strong>1</strong></td>
              <td height="24" align="center" bgcolor="#CCCCCC"><strong>2</strong></td>
              <td height="24" align="center" bgcolor="#CCCCCC"><strong>3</strong></td>
              <td height="24" align="center" bgcolor="#CCCCCC"><strong>4</strong></td>
            </tr>
            <tr>
              <td width="31" height="27">1</td>
              <td width="515" align="left">I remember something better if I write it down.</td>
              <td width="60"><input type="radio" name="radiogroup1A" value="1" onchange="TotalPart1A()"/></td>
              <td width="60"><input type="radio" name="radiogroup1A" value="2" onchange="TotalPart1A()"/></td>
              <td width="60"><input type="radio" name="radiogroup1A" value="3" onchange="TotalPart1A()"/></td>
              <td width="60"><input type="radio" name="radiogroup1A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td width="31" bgcolor="#EAEAEA">2</td>
              <td height="27" align="left" bgcolor="#EAEAEA"> I take detailed notes during lectures.</td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="1" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="2" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="3" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup2A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td>3</td>
              <td height="27" align="left">When I listen, I visualize pictures, numbers, or words in my head.</td>
              <td><input type="radio" name="radiogroup3A" value="1" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup3A" value="2" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup3A" value="3" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup3A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td bgcolor="#EAEAEA">4</td>
              <td height="27" align="left" bgcolor="#EAEAEA"> I prefer to learn with TV or video rather than other media. </td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="1" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="2" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="3" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup4A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td>5</td>
              <td height="27" align="left"> I use color coding to help me as I learn to work.</td>
              <td><input type="radio" name="radiogroup5A" value="1" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup5A" value="2" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup5A" value="3" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup5A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td bgcolor="#EAEAEA">6</td>
              <td height="27" align="left" bgcolor="#EAEAEA"> I need written directions for tasks.</td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="1" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="2" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="3" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup6A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td>7</td>
              <td height="27" align="left"> I have to look at people to understand what they say.</td>
              <td><input type="radio" name="radiogroup7A" value="1" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup7A" value="2" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup7A" value="3" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup7A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td bgcolor="#EAEAEA">8</td>
              <td height="27" align="left" bgcolor="#EAEAEA">I understand lecturers better when they write on the board.</td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="1" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="2" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="3" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup8A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td>9</td>
              <td height="27" align="left">Charts, diagrams, and maps help me understand what someone says. </td>
              <td><input type="radio" name="radiogroup9A" value="1" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup9A" value="2" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup9A" value="3" onchange="TotalPart1A()"/></td>
              <td><input type="radio" name="radiogroup9A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td bgcolor="#EAEAEA">10</td>
              <td height="27" align="left" bgcolor="#EAEAEA">I remember people’s faces, but not their names. </td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="1" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="2" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="3" onchange="TotalPart1A()"/></td>
              <td bgcolor="#EAEAEA"><input type="radio" name="radiogroup10A" value="4" onchange="TotalPart1A()"/></td>
            </tr>
            <tr>
              <td> </td>
              <td height="27" align="right">A TOTAL: </td>
              <td colspan="2"><input type="text" size="10" name="Total1A" value="0"/></td>
              <td align="right"> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td height="27" align="right"> </td>
              <td> </td>
              <td> </td>
              <td align="right"> </td>
              <td> </td>
            </tr>
          </table>
        </form>
      </div>
    </div>
    </body>
    </html>

    This is not the right forum for this question. This form is for JavaScript programming in Acrobat. The Dreamweaver forum here may be more appropriate.

  • Creating a survey in acrobat, processing on hard copy, and data compiling via Acrobat scanning

    Hi there,
    I am new to creating PDF forms using Acrobat Pro 9. I have been asked by my manager to sort out a way we can create a survey (for staff)and have the data input to the survey, processed and compiled ready for an analyst to create a report of the data.
    Basically, this is a survey of staff by staff, anonymous and to be completed on hard copy (Printed PDF with survey template).
    So, I have started to think about the best way to go about this, can I create a survey in Acrobat, print it, fill out the multiple choice questions, scan it in Adobe, and allow acrobat to gather the data?
    Personally I would like to use Acrobat (as I am enjoying learning it), but is this the right tool for that job? Is there a feature that enables multiple choice surveys to be created, printed, filled out, scanned again (with answers filled in), and compiles the data?
    I hope I have explained that clear enough...;-)
    Kind regards
    Kevin

    By itself Acrobat does not "compile data".
    By the way nothing compiles data from a picture. All scanners output a picture of the scanned paper (that is, an image file such as TIFF).
    Acrobat can perform Optical Character Recognition (OCR) of the picture of text.
    The OCR output is the characters - no format, tables, rows, columns, no text styling, etc.
    So harvesting useful information can pose something of a challenge.
    You may want to consider manually compiling the results.
    Be well...

  • Creating a survey in Pages

    I need to create a survey for a research project. I'd like to have checkboxes for participants to select. Having a difficult time trying to figure out how to do this in pages. Is there an easy way to create a survey?

    First understand what a placeholder is.
    A placeholder is a snippet of text or an image that is completely selected and replaced by clicking on it or dragging text onto it.
    So you can make the entire Question & Answer one place holder or you can make each part of it a placeholder so you can drag those components onto it.
    To make a place holder, select the text or image:
    +Menu > Format > Advanced > Define as Placeholder Text+
    +Inspector > Layout > Columns+
    Download the Pages09_UserGuide.pdf from under the Help menu and familiarise yourself with how Pages works.
    You may also find this useful:
    http://www.freeforum101.com/iworktipsntrick/
    Peter

  • I would like to know what is the best product to create a survey

    I would to create a survey on a Web Site of multiple choice answers and each answer has a value and the score is displayed on screen.
    I have managed to create a form in Google Forms and I can give each answer a value and create a total however I can't get it to display the answer on the web Form.
    I am creating the Web Site in Muse and I have the Creative Cloud membership and considering purchasing another product to create this form in however I want to know the product can handle my request.

    You might want to post in the Muse forum. It's certainly possible to create such an HTML form with the addition of a bit of JavaScript, but I'm not sure if Muse has the tools to set this up. If not, the Dreamweaver forum should be your next stop.

  • Need help creating a survey

    So I'm trying to create a survey in flex and I'm having some problems.
    It's supposed to be a 50 question survey that will total the values of your answer and display them when you're done. I'm trying to access the values of the radiobuttongroups in the different states, but I can't figure out a way to make it work. Can anyone help me?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" currentState="state1">
        <mx:Script>
            <![CDATA[
                import flash.events.Event;
                private function handleValues(event:Event):void{
                    //Handle Multiple Values
                    var i:int;
                    var charlie:String = new String();
                    var oscar:String = new String();
                    var mike:int;
                    var total:int;
                    for(i = 1; i <= 2; i++){
                        oscar = "answer" + i;
                        charlie = "state" + i;
                        mike = this[charlie].this[oscar].selectedValue.toString();
                        total = total + mike;
                        trace(oscar);
                        trace(mike);
                    answerlabel.text = total.toString();
            ]]>
        </mx:Script>
        <mx:states>
            <mx:State name="state1">
                <mx:AddChild position="lastChild">
                    <mx:RadioButtonGroup id="answer1"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:RadioButton x="191" y="270" label="Button 1" groupName="answer1" value="1"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:RadioButton x="191" y="296" label="Button 2" groupName="answer1" value="2"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:Button x="489" y="447" label="next" id="nextbutton" click="currentState='state2'"/>
                </mx:AddChild>
            </mx:State>
            <mx:State name="state2">
                <mx:AddChild position="lastChild">
                    <mx:RadioButtonGroup id="answer2"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:RadioButton x="451" y="303" label="Button 1" groupName="answer2" value="1"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:RadioButton x="451" y="329" label="Button 2" groupName="answer2" value="2"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:Button x="128" y="427" label="prev" id="prevbutton" click="currentState='state1'"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:Button x="472" y="427" label="submit" id="submitbutton" click="handleValues(event); currentState='state3'"/>
                </mx:AddChild>
            </mx:State>
            <mx:State name="state3">
                <mx:AddChild position="lastChild">
                    <mx:Label x="313" y="291" text="Label" id="answerlabel"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:Button x="300" y="386" label="again?" id="startover" click="currentState='state1'"/>
                </mx:AddChild>
            </mx:State>
        </mx:states>
    </mx:Application>

    So I'm trying to create a survey in flex and I'm having some problems.
    It's supposed to be a 50 question survey that will total the values of your answer and display them when you're done. I'm trying to access the values of the radiobuttongroups in the different states, but I can't figure out a way to make it work. Can anyone help me?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" currentState="state1">
        <mx:Script>
            <![CDATA[
                import flash.events.Event;
                private function handleValues(event:Event):void{
                    //Handle Multiple Values
                    var i:int;
                    var charlie:String = new String();
                    var oscar:String = new String();
                    var mike:int;
                    var total:int;
                    for(i = 1; i <= 2; i++){
                        oscar = "answer" + i;
                        charlie = "state" + i;
                        mike = this[charlie].this[oscar].selectedValue.toString();
                        total = total + mike;
                        trace(oscar);
                        trace(mike);
                    answerlabel.text = total.toString();
            ]]>
        </mx:Script>
        <mx:states>
            <mx:State name="state1">
                <mx:AddChild position="lastChild">
                    <mx:RadioButtonGroup id="answer1"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:RadioButton x="191" y="270" label="Button 1" groupName="answer1" value="1"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:RadioButton x="191" y="296" label="Button 2" groupName="answer1" value="2"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:Button x="489" y="447" label="next" id="nextbutton" click="currentState='state2'"/>
                </mx:AddChild>
            </mx:State>
            <mx:State name="state2">
                <mx:AddChild position="lastChild">
                    <mx:RadioButtonGroup id="answer2"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:RadioButton x="451" y="303" label="Button 1" groupName="answer2" value="1"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:RadioButton x="451" y="329" label="Button 2" groupName="answer2" value="2"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:Button x="128" y="427" label="prev" id="prevbutton" click="currentState='state1'"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:Button x="472" y="427" label="submit" id="submitbutton" click="handleValues(event); currentState='state3'"/>
                </mx:AddChild>
            </mx:State>
            <mx:State name="state3">
                <mx:AddChild position="lastChild">
                    <mx:Label x="313" y="291" text="Label" id="answerlabel"/>
                </mx:AddChild>
                <mx:AddChild position="lastChild">
                    <mx:Button x="300" y="386" label="again?" id="startover" click="currentState='state1'"/>
                </mx:AddChild>
            </mx:State>
        </mx:states>
    </mx:Application>

  • HT204088 Dear sirs,  Could you please help me on my problem with my apple ID  I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,  My account have 50$ and stil

    Dear sirs,
    Could you please help me on my problem with my apple ID
    I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,
    My account have 50$ and still didn't buy anything

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (100546)

  • Hello.  I just bought my first Imac.  Each family member has created an account.  My question is: can each account/family member create their own imesssages, so that each family member can imessage privately?

    Hello.  I just bought my first Imac.  Each family member has created an account.  My question is: can each person use imessages privately when logged into their account?  instead of everyone seeing everyones imessages?  is there a way to do this?

    I believe the short answer tot that is "yes" however I recommend you contact AppleCare to find out You have 90 days of free AppleCare telephone support when you buy any new Mac. This is the ideal time to begin using it. I'd also recommend that you purchase AppleCare, it will extend your 1 year warranty to 3 years and offer you 3 years of telephone support in addition to other services. You can locate the correct phone number in your part of the planet (Calgary, Canada??) by clicking Contact Apple for support and service

  • When firefox checking for updates and updates found but due to proxy restrictions it unable to download the updates then it continue trying to download that and this time it creating problem on running javascript

    When firefox checking for updates and updates found but due to proxy restrictions it unable to download the updates then it continue trying to download that and this time it creating problem on executing javascript and raising errors.

    What are the error messages you are seeing?

  • Additional Pageflow - JavaScript Questions

    I was hoping someone (bea employee???) could answer a couple more JavaScript questions
    for me?? First one is how do I (can I) do something similar to what John Rohrlich
    (see below) suggested inside a netui-data:grid tag? Among other things that didn't
    workI tried this:
    <netui-data:anchorColumn action="deleteUsr" title="">
    <netui:anchor action="deleteUsr" onClick="return confirmDelete('user', {container.item.usr_nm}
    ); return false;">
    Drop
    <netui:parameter name="userToDrop" value="{container.item.usr_nm}" />
    </netui:anchor>
    </netui-data:anchorColumn>
    From this snippet you might be able to guess what my next question is. Is there
    a way to render a variable inside the onClick value? I have tried a number of
    things to no avail, stuff like:
    <netui-data:getData resultId="thisId" value="{container.item.userId}" />
    <netui:anchor action="dropUser" onClick="return confirmDelete('user', '<%=(String)pageContext.getAttribute("thisId");%>');
    return false;">
    BTW this is in a repeater I have else ware in my code. I would really like to
    convert everything to grids to get the sorting, filtering and paging capabilities.
    I would like to be able to pass the parameter to my JavaScript so the user has
    a little more info on what he is dropping - here is the script:
    function confirmDelete(){
    //arg 1 would be the record type i.e. "user"
    //arg 2 would be the key identifier i.e. "Fred"
    var question = "Are you sure you want to drop this record?";
    var argNum = confirmDelete.arguments.length;
    if (argNum == 1){
    question = "Are you sure you want to drop this "+confirmDelete.arguments[0]+"?";
    else if (argNum == 2){
    question = "Are you sure you want to drop the "+confirmDelete.arguments[0]+"
    "+confirmDelete.arguments[1]+"?";
    return confirm(question);
    Thanks,
    John
    "John Rohrlich" <[email protected]> wrote:
    John,
    If you want to put up a confirm dialog before calling an action from
    an
    anchor it is done as follows.
    Here is an example from code of mine that deletes a customer order, if
    the
    user confirms the delete. I pass the order id as a parameter.
    - john
    Here is the JavaScript -
    function confirmDelete() {
    if(confirm('Continue with order delete?'))
    return true;
    else
    return false;
    Here is a sample anchor tag -
    <netui:anchor action="requestToDeleteOrder" onClick="return
    confirmDelete(); return false;">
    Delete
    <netui:parameter name="orderId" value="{container.item.orderId}"/>
    </netui:anchor>

    Thanks Eddie, I looked at that reply when you gave it but it didn't give me enough
    to go on. You suggested:
    <netui-data:expressionColumn title="Show Alert" value="<a href='javascript:alert(12345);return
    false;> {container.item.customername}</a>" />
    I started a new thread after that one - What is the best way to call a pageflow
    action from JavaScript? Guess I was sort of beating around the bush on this. Can
    you see where I was going? If I use the method you describe above how do I call
    my dropUser pageflow action if the user confirms the drop in the java dialog?
    Thanks, John
    Eddie O'Neil <[email protected]> wrote:
    John--
    You might check an earlier response about this from a different thread.
    "Re: Confirmation dialog w/netui:anchor and netui-data:anchorColumn"
    on
    1/28/2004.
    It's possible to do though not intentional; the 8.1 grid wasn't
    really designed to do this.
    The NetUI team is certainly aware of the limitations with using this
    version of the grid and is working to address said limitations with a
    much improved tag set in v9. If you have additional feedback on
    features you'd like to see, please feel free to send them along --
    including your top 10 (or whatever!) reasons not to use the grid. :)
    In the meantime, depending on what you need to do, the repeater may
    suit your needs well, though you may need to do some work to implement
    sort / filter logic.
    Hope that helps.
    Eddie
    John H wrote:
    So what you are telling me is that a cant do somthing as simple aspop up a confirmation
    when using a grid? That really stinks if that is the case. I am thinkingI need
    to write up "Top ten reasons not to use a grid." Thanks for the repeatercode.
    "John Rohrlich" <[email protected]> wrote:
    John,
    The grid doesn't support event handlers like onClick but I have included
    code here to show you how to pass parameters to your javaScript event
    handler when using the repeater. Let me know if you have any questions
    about
    the code.
    Most of the code is standard repeater code. The interesting code is
    below
    (also see my code comments). I have also attached the full jsp fileand
    the
    jpf file you need to try my example.
    - john
    <script language="JavaScript">
    function confirmDelete(phrase) {
    if(confirm(phrase))
    return true;
    else
    return false;
    </script>
    <netui-data:repeater dataSource="{pageInput.orders}" defaultText="No
    orders">
    <netui-data:repeaterItem>
    <tr valign="top">
    <td>
    <netui:label value="{container.item.orderId}"
    defaultValue=" "></netui:label>
    </td>
    <!-- You can't bind data to onClick so you need to build
    a
    string. -->
    <!-- The string will be the function call with the
    parameters you are passing. -->
    <!-- Here is the building of the string -->
    <netui-data:getData resultId="orderId"
    value="{container.item.orderId}" />
    <%
    String somePhrase = "Do you want to delete item " +
    pageContext.getAttribute("orderId") + "?";
    String foo = "return confirmDelete(\'" + somePhrase+
    return false";
    %>
    <td>
    <netui:anchor action="requestToDeleteOrder"
    onClick="<%=foo%>" >
    Delete
    <netui:parameter name="orderId"
    value="{container.item.orderId}"/>
    </netui:anchor>
    </td>
    </tr>
    </netui-data:repeaterItem>
    "John H" <[email protected]> wrote in message
    news:[email protected]...
    I was hoping someone (bea employee???) could answer a couple moreJavaScript questions
    for me?? First one is how do I (can I) do something similar to whatJohn
    Rohrlich
    (see below) suggested inside a netui-data:grid tag? Among other thingsthat didn't
    workI tried this:
    <netui-data:anchorColumn action="deleteUsr" title="">
    <netui:anchor action="deleteUsr" onClick="return confirmDelete('user',{container.item.usr_nm}
    ); return false;">
    Drop
    <netui:parameter name="userToDrop" value="{container.item.usr_nm}"/>
    </netui:anchor>
    </netui-data:anchorColumn>
    From this snippet you might be able to guess what my next questionis. Is
    there
    a way to render a variable inside the onClick value? I have trieda
    number of
    things to no avail, stuff like:
    <netui-data:getData resultId="thisId" value="{container.item.userId}"/>
    <netui:anchor action="dropUser" onClick="return confirmDelete('user','<%=(String)pageContext.getAttribute("thisId");%>');
    return false;">
    BTW this is in a repeater I have else ware in my code. I would reallylike to
    convert everything to grids to get the sorting, filtering and pagingcapabilities.
    I would like to be able to pass the parameter to my JavaScript sothe
    user has
    a little more info on what he is dropping - here is the script:
    function confirmDelete(){
    //arg 1 would be the record type i.e. "user"
    //arg 2 would be the key identifier i.e. "Fred"
    var question = "Are you sure you want to drop this record?";
    var argNum = confirmDelete.arguments.length;
    if (argNum == 1){
    question = "Are you sure you want to drop this"+confirmDelete.arguments[0]+"?";
    else if (argNum == 2){
    question = "Are you sure you want to drop the"+confirmDelete.arguments[0]+"
    "+confirmDelete.arguments[1]+"?";
    return confirm(question);
    Thanks,
    John
    "John Rohrlich" <[email protected]> wrote:
    John,
    If you want to put up a confirm dialog before calling an action
    from
    an
    anchor it is done as follows.
    Here is an example from code of mine that deletes a customer order,if
    the
    user confirms the delete. I pass the order id as a parameter.
    - john
    Here is the JavaScript -
    function confirmDelete() {
    if(confirm('Continue with order delete?'))
    return true;
    else
    return false;
    Here is a sample anchor tag -
    <netui:anchor action="requestToDeleteOrder" onClick="return
    confirmDelete(); return false;">
    Delete
    <netui:parameter name="orderId" value="{container.item.orderId}"/>
    </netui:anchor>

  • Could any one give me direction towards creating asset with REST/javascript

    could any one give me direction towards creating asset with REST/javascript?

    There is a sample bundled with webcenter sites at Misc/articles. You have to implement the proxy controller which serve as proxy for xmlhttp request.
    The proxy will redirect the request actual REST resource in the target server

  • Can I create a survey questionnaire using labview

    I would like to create a survey questionnaire to be run in a PDA. can I do the same using labview?
    I am using a windows 2000 OS.
    I want to use labview for creating such a questioannaire and then run it in a PDA

    Yes, you could easily create a questionaire application for a PDA with the LabVIEW PDA Module. The programming techniques used are the same as LabVIEW for Windows.
    One thing to note is that a license is required to deploy the applications built with the LabVIEW PDA module on to each PDA. The modules come with one license to deploy applications on to one PDA and additional licenses can be purchased.
    Regards,
    JR A.
    Application Engineer
    National Instruments

  • Why can I participate in surveys and post questions, but whee FaceTime or use messaging, I can't. I'm told I have no internet connection...but I do have it...do I have a bug is this a what I call a windows nightmare?

    Why can I participate in surveys and post questions, but can' t use FaceTime or messaging  without being told I have no internet connection? However,  my iPad shows full internet connectivity.

    Apple has released a document which is reported to address the recent FaceTime issue.
    http://support.apple.com/kb/TS5419

  • JavaScript Question for Novice

    I'm an Adobe novice when it comes to JavaScript. I have a form that has Date of Birth and Date Form Completed and I want to calculate Age based on those two dates. How can I do this?
    thanks
    Anthony

    You need to use Acrobat JavaScript and the JavaScript Date Time object and the extract the full year, month and date from the date objects and compute the age.
    var DOB = this.getField("Date of Birth");
    var EndDate = this.getField("Date Form Completed";
    var cDateFormat = "d-mmm-yyyy"; // format of date fields;
    event.value = "";
    var dobValue = this.getField("Date of Birth").value; // dob value;
    var dateValue = this.getField("Date Form Completed").value; // end date value;
    if (dobValue != "" && dateValue !="") {
    var oDob = util.scand(cDateFormat, dobValue); // dob to date object;
    var oDate = util.scand(cDateFormat, dateValue); // end date to date object;
    var age = now.getFullYear() - dob.getFullYear(); // difference in years;
    // adjustment if date of birth before the end date;
    if ((now.getMonth() * 100) + now.getDate() < (dob.getMonth() * 100) + dob.getDate() ) {
    age--;
    } // end adjustment for dob before end date;
    event.value = age;
    } // end input fields not empty;
    You will have to adjust the field names and date formats as needed to match your form.

  • Please help me...Javascript question

    Hi everyone,
    what i am trying to do is..
    EX:
    TABLE: EMP
    empno empname sal entered_by
    1 john 1000 user1
    I have a form on the table EMP.The users want to enter the same record again(because mutiple users enter the same record) but want an alert message when they hit the create button like.. Eg:
    when user2 is trying to enter this data..
    empno: 2 (generated by sequence)
    empname: john
    sal: 1000
    he wants to see an alert message like: THE Record is Already exists in the database which was entered by USER1 (But he can enter the same record)
    what i did is.. I have a javascript which calls the application process (PL/SQL) where it check whether the data entered is already there in the database and returns back an alert message like this:
    JAVASCRIPT:
    ==========
    <script language=javascript>
    function  f_insert_record()
            var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=INSERT_RECORD',0);
            get.add('P2_EMPNAME',html_GetElement('P2_EMPNAME').value);
            get.add('P2_SAL',html_GetElement('P2_SAL').value);
            gReturn = get.get();
            var a = gReturn.split("|");
            if(gReturn)
                if (a.length > 0) {alert(a[0]);}
            else
                null;
    </script>APPLICATION_PROCESS
    ===================
    DECLARE
       l_error   VARCHAR2 (4000);
       V_NAME VARCHAR2(1000);
       V_MSPR_ID NUMBER(15);
       I NUMBER;
       V_MYNUM STRING_OBJ := STRING_OBJ();
    BEGIN
      FOR C1 IN (SELECT DISTINCT entered_by ENTERED_BY_USER_NM 
    from emp 
    WHERE  
      empname = :P2_EMPNAME
      AND sal  = :P2_SAL
      ) LOOP
        V_MYNUM.EXTEND;
        V_MYNUM(V_MYNUM.COUNT) := C1.ENTERED_BY_USER_NM;
      END LOOP;
      V_NAME := NULL;
      l_error := NULL;
      FOR I IN V_MYNUM.FIRST..V_MYNUM.LAST LOOP
        --dbms_output.put_line(V_MYNUM(I));
        V_NAME := V_NAME || '   ' || V_MYNUM(I);
      END LOOP;
      IF V_NAME IS NOT NULL THEN
        l_error := 'The record already exists in the database which was created by '||V_NAME;
      END IF; 
      HTP.PRN(l_error);
    END;everything works fine...when i have a ONBLUR event on the SALARY field.
    But i want the same thing to be achieved with the ONCLICK event on the CREATE button (Template based button).
    The code i have shown over here is just an example...But the requirement is the same..Multiple Users can enter the same record but they want to see an alert message like this record was entered by USER1,USER2.
    The only think i am not able to figure out is the ONCLICK event on that create button.
    I tried like this Target: URL
    javaScript:(f_insert_record();doSubmit('CREATE');)
    I am not getting the alert message.
    Please help me to solve this
    thanks
    phani

    damn it! Those little quotation marks.....
    I already did figure it out awhile after I posted my question
    Thanks anyway!

Maybe you are looking for

  • H330 won't switch to UPS when power fails

    I have an APC XS 1000 UPS with updated PowerChute software that worked fine with my former desktop (Dell), but my Lenovo H330 will not switch to it if the AC power fails.    Windows 7 says the APC is working normally, it passes a self-test, and all o

  • How do I read my archived email stored as a pdf by adobe?

    How do I read my archived email stored as a pdf by adobe? I have been archiving my email in adobe x.  When I go to view it I cant seem to access the information, but the file is 200 mb and growing. I can read the first email but that is all.

  • Audio keeps playing after I navigate away from page?

    Hi When I play media, for example a YouTube video, when I navigate away from the page the audio keeps playing. This is unique to Safari. Firefox doesn't behave in this way. Any ideas how to fix this? Cheers.

  • Invoice Block with stock in Quality

    Hi experts, How to block an invoice if the material stock is in QA/Block?I have tried through the TCode OMRM as well as by puting the QM Control key as "Block Invoice" in material master,but these din't work for me. Please suggest ...

  • Laptop cannot see airport express

    I have three laptops on my home network.  Two can see my airport express, one cannot.  I have the airport express set to join my home network automatically.  I am only using airport express to be able to listen to my itunes music through my home ster