User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 456,510 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,681 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1655 | Replies: 11
Reply
Join Date: Sep 2007
Posts: 6
Reputation: xtian170174 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
xtian170174 xtian170174 is offline Offline
Newbie Poster

Questionaire with analysis

  #1  
Sep 29th, 2007
I have devised a html page questionaire,

There are 10 questions, 9 of which require Y/N or A/B answers in checkboxes to give a total score and analysis, 1 which is personal notation and which requires an extra point for specific wording (e.g. a certain word[s] disqualifies the point award)

Two of the questions are required to 'ghost' the following question as it is skipped depending on the prior answer

The overall aim is to give a printable result page with the analysis using the participant's name and other provided detail along with the answers, what they mean and the score with it's rating

I have written every permutation of scores 0[min] - 9[max] and there are about 400 (based on average four per page requiring 100 page down clicks)
While maybe not strictly necessary, it gives a means of checking the answers provided are within the parameters set above

The simplest way I can think of making this interactive is with checkboxes that are handled by javascript and return the results based on what each answer scores, and calls the score rating text along with individual question analysis if required

I have had no success with just searching for terms like "Javascript Y/N questionaire" or "Javascript checkbox analysis" and so registered with Daniweb to hopefully get help

Look forward to hearing from you
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Questionaire with analysis

  #2  
Sep 29th, 2007
Are you collecting the answers, or is the user the only person to see them?
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Sep 2007
Posts: 6
Reputation: xtian170174 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
xtian170174 xtian170174 is offline Offline
Newbie Poster

Re: Questionaire with analysis

  #3  
Sep 29th, 2007
Originally Posted by MidiMagic View Post
Are you collecting the answers, or is the user the only person to see them?


Hi, thanks for taking the time;

At this stage, a simple 'submit for results' questionaire - it is probable that the collection of results will be required, perhaps even imperative and include IP address as well as registered user details, although the stage I'm at with managing this questionaire on to a processing web page is what you may call "very very beginner's javascript"...., to see it functioning before it is ever published is my primary aim - it is likely it will fall into misuse early on and so an understanding of the questionaire's "rate of decay" as it 'tones' and 'conditions' the participants in ensuing attempts or with different login/name entry details for the same IP etc. would clearly improve the service it provides.
So, if I understand your question to also mean 'outputting statistics' from answers, then yes, it would be necessary to collect answers, although they are not strictly required for the processing of the questionaire and analysis.... - a separate matter, though certainly to be included as a long-term consideration
Reply With Quote  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 72
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Practically a Master Poster

Re: Questionaire with analysis

  #4  
Sep 29th, 2007
so if i am reading correctly you want to show a questionaire, question by question based on user input and them collect these answers and display them to the user and save the information for yourself as well. am i correct?
Reply With Quote  
Join Date: Sep 2007
Posts: 6
Reputation: xtian170174 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
xtian170174 xtian170174 is offline Offline
Newbie Poster

Re: Questionaire with analysis

  #5  
Sep 29th, 2007
Originally Posted by kkeith29 View Post
so if i am reading correctly you want to show a questionaire, question by question based on user input and them collect these answers and display them to the user and save the information for yourself as well. am i correct?



as simply as possible...

The page contains the full questionaire, the answer provided may ghost the next question and it is intentionally seen to do this, like the checkbox for "I have read and accept the terms and conditions of the end-user agreement" allows use of the 'Next>' button in many installation dialogues...;

/begins_________

Questionaire

Your name______
Name of subject ______
('['checkboxes']')
Qu1 .... [Y]/[N] if N skip to qu3 (ghosts qu2)
Qu2 .... [A]/[b] (based on answer Y to qu1)
Qu3 .... [Y]/[N]
Qu4 ....[Y]/[N] if N skip to qu6 (ghosts qu5)
Qu5 ... [Y]/[N](based on answer Y to qu4)
Qu6 ... [Y]/[N]
Qu7 ....[Y]/[N]
Qu8 ....[Y]/[N] if Y skip to qu10 (ghosts qu9)
Qu9 ....[Y]/[N] (based on answer N to qu4)
Qu10 ...'personal notation' (to be analysed and discredits (0 point award) for instances of certain words, 0 points if left blank)

button: Reset Form
button: Submit form for analysis

_______ends/

This is about the page returned from 'Submit Form';

//not viewed on the page
(this is best viewed in notepad with fixedsys font);
scores for A,B,Y or N
Qu 1/ 0 - - 1
2/ - 1 0 -
3/ 0 - - 1
4/ 1 - - 0
5/ 2 - - 1
6/ 1 - - 0
7/ 1 - - 0
8/ 1 - - 0
9/ 1 - - 0
10/ score 1 point with added notes..., certain words or phrases and non-dictionary entries will disqualify the attempt, the potential here is enormous and so no char/word limit restricting the entry. caption//If you have extensive commentary, please use notepad or local text editor to compose in and save often//caption
//fixedsys


Analysis;
Each question has two comments, one for each possible answer which is called for the analysis in a sentence composed to the answer given.

The scores are from 0 - 9 and each score has a rating which is called for analysis readout
The option to print a full analysis or summary (details given and total score with rating) is provided on this page too

not viewed on the page//


It will look like this
WEBCOUNTER

Questionaire

form input type text 'Your Name'>Name Surname
form input type area 'Your Subject Name'>Subject name & details both with onfocus null

Ans/Score
1/ Y=0 comment for Y
2/ B=1 comment for B
3/ Y=0 comment for Y
4/ N=0 comment for N /skip 5
5/ n/a
6/ Y=1 comment for Y
7/ N=0 comment for N
8/ Y=1 comment for Y /skip 9
9/ n/a
10/ form input type area 'notes'>notes +1 analysis awards your comments a bonus point
with onfocus null


total=4... rating comment

Print this result
button:'full analysis*' (questions, answers and comments) with score rating, or
button:'summary' (score & rating)

(*to include; Your comments were awarded a point for use of the expression "quote"/word "quote")

//caption Please consider trees before printing //caption
//advert Frame your certification //advert
Reply With Quote  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 72
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Practically a Master Poster

Re: Questionaire with analysis

  #6  
Sep 30th, 2007
i am pretty good at javascript but i have no idea how to do this one, sorry. i could do it in php but it would be a little different and work the same.
Reply With Quote  
Join Date: Sep 2007
Posts: 6
Reputation: xtian170174 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
xtian170174 xtian170174 is offline Offline
Newbie Poster

Re: Questionaire with analysis

  #7  
Sep 30th, 2007
Originally Posted by kkeith29 View Post
i am pretty good at javascript but i have no idea how to do this one, sorry. i could do it in php but it would be a little different and work the same.



Hi, well - without wanting to sound obtuse, they're all the same to me in so much as the express intention is to have it functioning on a web page. I understand the principle is the same if it loads into a browser window and offers the same level of interaction[?]

While I haven't searched for similar results using php instead of javascript, I expect if I do find a means - I am still an outright beginner and need all the help I can get.

(For example, I managed a modest encoding of an onclick player and a mouseover script so far - but this was using what I could find on the internet - The mouseover script reveals straightaway and is the most successful attempt of the two, the player maybe ought to load the page with the items called when the images are clicked. As it goes, clicking them doesn't play the sounds instantly, like they are queued and then play...)

mouseover - http://uk.geocities.com/c9h3/TrivTwigia.html
onclick player - http://uk.geocities.com/xtian170174/FarmersMarket.html

So, if it is php I'm after, then so be it - but that's another in at the deep end situation and I would gratefully accept any help offered..., are there any similarly encoded 'troubleshooters' or walkthroughs/wizards that build at least a template of the fully functioning end-product?
So far things like FrontPage have seemed to be the right step, but I find there's a "typical" experience one has on the internet, it is in at least one respect 'thematic' i.e. a person interacts using their mouse & keyboard....
It is as if the lay person requiring a page that works a certain way would use a commercial product that uses a wizard to create the look and layout, another wizard to get each aspect/feature working properly and another wizard to test it's functionality and make sure it is published as a working product.... Is there anything like this available yet?
Reply With Quote  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 72
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Practically a Master Poster

Re: Questionaire with analysis

  #8  
Sep 30th, 2007
i have no idea if there are products like that out there, this is only because i do all of my webdesign and coding in notepad. as for the questionaire, i can make the the script but i do need the questions so i can make it. once i get these i will start on the script and post it as soon as its finished
Reply With Quote  
Join Date: Sep 2007
Posts: 6
Reputation: xtian170174 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
xtian170174 xtian170174 is offline Offline
Newbie Poster

Re: Questionaire with analysis

  #9  
Sep 30th, 2007
There's quite a bit to it aside from the questions, it's a generous offer but I can only accept if you're sure - it would be simplest to send the html page mock-up version that has no script functionality along with the accompanying text file with score ratings & analysis text, this also contains the 400 or so permutations which may or not be purposeful....

I should warn, it is called,
"The Acid Test Questionaire"
& with good reason...

Ideally it is to be commercially 'hosted' according to the content and those established bodies that are better equipped to deal with the usage data would handle site statistics.
For this reason my initial concern is how to handle a working product from this origin - transposed/migrated and then made functional by 'outsourcing', it would become out of my hands and while I take full responsibilty for the content, it is as if I am effectively 'donating it to science' for want of a better expression.

...Or php101 for yours truly ??
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Questionaire with analysis

  #10  
Oct 7th, 2007
JavaScript can't do that.

You need a server-side language if you also want to keep the info for yourself. JavaScript runs on the client's machine, and can't normally affect files on the server.

Also, collecting the IP address might be futile. Many Internet Service Providers (ISPs) now create random IP addresses, to prevent security and spam problems.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 3:49 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC