/    Sign up×
Community /Pin to ProfileBookmark

Dynamically generated questions based on previous responses

What I would like is some prebuilt JavaScript (or jQuery) that can generate a question, and then provide the next question based on my answer to the first, and so on. Preferably, this should have animation, and drop down underneath.

Anybody kow where I can find such code?

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@ky0ungNov 05.2010 — if you want to store the answers to the questions, you can use a combo of php(or other server side language) and ajax.

But if you don't care about storing it, you could just make a bunch of if statements
Copy linkTweet thisAlerts:
@multimediocrityauthorNov 05.2010 — Oh, I've built this in JavaScript before (so that it's flexible enough to handle any number of questions). I was just wondering if there was something more flexible out there. Also, it would be nice if it would animate.
Copy linkTweet thisAlerts:
@JMRKERNov 05.2010 — Oh, I've built this in JavaScript before (so that it's flexible enough to handle any number of questions). I was just wondering if there was something more flexible out there. Also, it would be nice if it would animate.[/QUOTE]

So what does this flexible code look like?

How can we make it more flexible when we don't see the original?

?
Copy linkTweet thisAlerts:
@multimediocrityauthorNov 05.2010 — I'm not looking to expound on it... I just want new code.
Copy linkTweet thisAlerts:
@JMRKERNov 05.2010 — I'm not looking to expound on it... I just want new code.[/QUOTE]

That well may be. However unless we know what you have how would be know any of our improvements would not just be duplicate code? I don't want to waste my time re-inventing a wheel you already own!

:eek:
Copy linkTweet thisAlerts:
@multimediocrityauthorNov 05.2010 — Let's forget the code I have. It would need too much retooling to fit my needs. What I want is something like this: http://www.dynamicdrive.com/dynamicindex16/formwizard.htm. This is good because it reveals certain parts of a form in an animated way. It's too linear, though.

Does anyone have similar applications?
×

Success!

Help @multimediocrity spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...