473,324 Members | 2,535 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,324 software developers and data experts.

Passing Value After Looping

Hye all..
In my html, it display the value of average for each question in table. So the problem is the value of average for each question is in the looping function. So how can I pass the value of average for each question into bar chart which is out of the looping?
Expand|Select|Wrap|Line Numbers
  1. <form name="survey_form" method="post" action="#currentfile#">
  2. <table>
  3. <cfloop query="GetDetailQuest">
  4. <tr>
  5.   <td class="cssNormal" align="center">#numberFormat(totAVG,"0.00" )#</td>
  6. </tr>
  7. </cfloop>
  8. </table>
  9.  
This is chart code
Expand|Select|Wrap|Line Numbers
  1. <cfchart
  2.        format="png"
  3.         scalefrom="0"
  4.      scaleto="10"
  5.      show3D="Yes"
  6.      chartWidth="350"
  7.      chartHeight="390">
  8.      <cfchartseries
  9.           type="bar"
  10.          seriescolor="blue">
  11.  
  12.          <cfloop query="GetDetailQuest">
  13.              <cfchartdata item="#quest_eng#" value="#numberFormat(totAVG,"0.00" )#">
  14.          </cfloop>
  15.  
  16.        </cfchartseries>
  17.     </cfchart>
  18.  
Feb 21 '13 #1
2 6576
acoder
16,027 Expert Mod 8TB
Does your code not work with another loop as you've posted?
Feb 22 '13 #2
what I want to do is, I just want to get the value of average for each question from looping. My chart does not use looping, i means code for chart outside from looping. So now, how can I pass the value of average that inside of looping to the value of chart that outside of the looping?
any idea? :)
Feb 22 '13 #3

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

Similar topics

3
by: Lukelrc | last post by:
Hi all, I have an asp page with a delete button which has an OnClick Ok/Cancel msgbox event. My problem is that in order to run the Onclick event i've chaged the buttons type from "Submit" to...
11
by: Dthmtlgod | last post by:
I am having a little difficulty in passing a value from a page to another page. I am going to provide excerpts from the code. I think I am close. This is from Page1.ASP <% Set Conn =...
2
by: Richard | last post by:
I'm trying to open a form based on the value that I am passing through to it. I'm trying to open the Deals form on the basis of a sellerid that I am trying to pass through to that second form. ...
1
by: Prabhua | last post by:
Can anyone help me out in solving this problem. i am passing a value i.e., Path, from radio button in asp function to javascript function.But while printing the value only words are seen and...
2
by: sangram | last post by:
Passing value from parent to child window created by Pop up
2
by: Larry | last post by:
anyone have an example of passing a value from a radio button to a JavaScript function in ASP.net? <input type="radio" value="text_play" name="play_type" checked="checked" /> this is the type...
1
by: gajahkursi | last post by:
<?php // Connect database include("conf.php"); $child= $_POST; // Get all records in all columns from table and put it in $result. $result=mysql_query("SELECT * FROM parent WHERE child=...
4
idsanjeev
by: idsanjeev | last post by:
SIR I AM PASSING VALUE FROM ONE FORM TO ANOTHER FORM THROUGH COOKIES BUT IS CAN ONLY TRANSFER LAST VALUE HOW CAN PASS VALUE AFTER CLICKIN ON LINK I AM USING THE CODE IS FOR LINK <td><a...
1
by: sva0008 | last post by:
hi , I am using. <input type=button class=tbox value="Populate SA" style="width: 90%"...
10
by: perhapscwk | last post by:
how to passing value from popup to the parent window as a variable which I can access and process the variable(string) in parent window? such as from popup page, we have var_from_popup="abc",...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.