473,387 Members | 3,801 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,387 software developers and data experts.

same question for multiple people.

Ok, so I am new to javascripting and came across a situation where I need help. I am doing a Health risk assessment script and I need to be able to populate the questions for each member in the household, there can be up to 8 members in total and there is one main account holder. But I dont want the questions to permanently be there 8 times but the members names I want displayed on each page with just an answer and a comment field behind them. I hope this makes sense and I could use alot of help. Thanks!
Apr 1 '10 #1
4 1058
I'm not sure if I'm not being clear enough, but Basically the data is sorted by phone number so In my data there might be up to 8 same phone numbers each with a different member but they all belong to the same household and I need one script to pull all of the names and bring them to the same script. If you need more information let me know but I really need help on this one. Thanks!
Apr 5 '10 #2
gits
5,390 Expert Mod 4TB
you are really not clear enough ... when should what be retrieved and displayed? ... explain the usecase a bit more ... so that it is understandable what the exact problem is ...

kind regards
Apr 5 '10 #3
Ok, so say I have Question 1 and it is
Q001: 'Do you see your dentist regularly?'
From the data we have say the phone number 856-524-5412 pulled up 6 different people matching that phone number. Now I need the question to pop up 6 times not anymore than 6 and no less than6 times but they all have to be labeled Q001. So I was thinking of doing a Q001A Q001B Q001C etc but I would like to pull the customers names so The rep looking at the screen knows for which customer they are answering each question for. Let me know if that helps. Thanks~
Apr 5 '10 #4
gits
5,390 Expert Mod 4TB
so ... it's for a kind of office app where a sales (or other rep) will use a webpage to answer some questions ... and the app should support him to present him/her the questions for all members of a household he/she is currently at ... so the simplest way would be to create one page for a question. on that page you could create 1...n identical (except names or whatever) sections (divs) and hide all except the first one ... when the question is completed ... hide the first and unhide the second .. and so on ... after answering all sections ... send the form (plain form-submit or ajax-call as you like) ... and proceed with the next question ...

kind regards
Apr 5 '10 #5

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

Similar topics

5
by: C. Alexander | last post by:
I'm making a 'whiteboard' application. I'm trying to have 2+ connected users able to draw at the same time. However, if User1 draws a line, when User2 is drawing, on User1 screen, it will draw...
12
by: williamc | last post by:
Is there anything wrong with having several classes with the same name in the same style sheet? Something like... div.pagedown { margin: 20px 0px 20px 0px; border-top: 1px solid #caa;...
3
by: Steve | last post by:
I have a people table of about 25 fields. The table is initially created each year from 5 different sources. The records from each source are appended to the people table. Any person may be in one...
1
by: Phoenix_ver10 | last post by:
I have a mailing list with multiple names going to the same addresses. I need one address with all the names for that address on it. I checked out the example on microsoft's site, but A: It doesn't...
19
by: rich | last post by:
I am building an app using php and postgresql. My questionis this. How do you handle people wanting to make parallel changes to a record. Since in web apps you are doing a select, bring over a...
1
by: Steph | last post by:
Hello, i dot not manage to write the code to sort a array on multiple columns. ArrayList people = new ArrayList(); people.Add(new Person("John", "Doe", 76)); people.Add(new Person("Matt", "Dire",...
3
by: Marcin Kalicinski | last post by:
How do I use multiple Python interpreters within the same process? I know there's a function Py_NewInterpreter. However, how do I use functions like Py_RunString etc. with it? They don't take any...
0
by: sharonrao123 | last post by:
hello all, I have a parent gridview company and in this one a nested gridview people, Is it possible to allow the user to select one row or multiple rows from the people gridview using a check box...
19
by: Zytan | last post by:
I want multiple instances of the same .exe to run and share the same data. I know they all can access the same file at the same time, no problem, but I'd like to have this data in RAM, which they...
14
by: Supermansteel | last post by:
My team at work uses Cognos to run multiple queries to pull in data. Then they take that data and import into Access and then usually run an Append Query to run a RND function to pull out a few...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.