www.webdeveloper.com
Results 1 to 7 of 7

Thread: Dynamically generated questions based on previous responses

  1. #1
    Join Date
    May 2009
    Location
    Rochester, NY
    Posts
    364

    Question 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?

  2. #2
    Join Date
    Aug 2010
    Posts
    41
    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

  3. #3
    Join Date
    May 2009
    Location
    Rochester, NY
    Posts
    364
    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.

  4. #4
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,364

    Question

    Quote Originally Posted by multimediocrity View Post
    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.
    So what does this flexible code look like?
    How can we make it more flexible when we don't see the original?

  5. #5
    Join Date
    May 2009
    Location
    Rochester, NY
    Posts
    364
    I'm not looking to expound on it... I just want new code.

  6. #6
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,364

    Arrow

    Quote Originally Posted by multimediocrity View Post
    I'm not looking to expound on it... I just want new code.
    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!


  7. #7
    Join Date
    May 2009
    Location
    Rochester, NY
    Posts
    364
    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/dynamici...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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles