Coder Social home page Coder Social logo

jquery.survey's Introduction

jQuery.Survey

jQuery.Survey is a JSON based Survey plugin for jQuery. It was inspired by a few other plugins I found that could render multi-page survey type forms that have long been abandoned. It is fully functional as is, but there will be updates to it to include a designer and documentation.

Basically I wanted a multi-page survey that could be stored in JSON so I could put it into MongoDB or a standard JSON file and have the UI display it.

My basic requirements were:

  • Must be able to show/hide sections based on data entered
  • Conditions should have the ability to be complex
  • Must use a template system (default is handlebars)
  • Must be extensible (you can add new template types, override existing templates easily, change template engines, hook page changes, and even change the transition effects)
  • Must support required fields and validation

Usage - Basics

Include it in your page after jQuery: <script type="text/javascript" src="js/jQuery.Survey.js"></script>

Create a survey object:

var survey = {
};

Initialize and use your survey:

$('#survey').survey({
  survey: survey,
  data: yourData
});

Or to load the survey data or survey from a URL:

$('#survey').survey({
  surveyURL: surveyURL,
  dataURL: yourDataURL
});

See example\index.html for more details until better documentation is written. The example makes use of Handlebars and jQuery.Validate.

jquery.survey's People

Contributors

codeforfood avatar jdarling avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.