GithubHelp home page GithubHelp logo

vellum's Introduction

FormDesigner 2.0

Installation/Usage

Using/Testing the FormDesigner is easy. Clone the repo and serve it through a webserver. Point your browser to index.html, or test.html (for Unit Tests), and you're off to the races.

The super easy way

  1. Clone the repo
  2. Initialize submodule (http://github.com/dimagi/js-xpath.git):
    $ git submodule init
  3. Update submodule:
    $ git submodule update
  1. Download Mongoose: http://code.google.com/p/mongoose/
  2. Place the mongoose exe file in the root of the repo and execute
  3. Open browser and go to http://localhost:8080 (for tests go to http://localhost:8080/test.html)

That's it!

Usage as a Jquery-UI like plugin

  1. Clone the repo

2. Place all the subfolders in the same folder as the html file you're planning to run the plugin from. e.g. if you host your webserver at c:www with your index.html being at c:wwwindex.html place the contents of the repo in that www folder.

Example Usage (assumes you already have jquery set up for the page):
$(document).ready(function () {
formdesigner.launch({
rootElement: "#formdesigner", staticPrefix: "", langs: ""

});

});

formdesigner.launch causes the formdesigner to initialize itself fully in the element specified by rootElement.

Form Options:
  • rootElement: "jQuery selector to FD Container",
  • staticPrefix : "url prefix for static resources like css and pngs",
  • saveUrl : "URL that the FD should post saved forms to",
  • [form] : "string of the xml form that you wish to load"
  • [formName] : "Default Form Name"
  • iconUrl: URL pointing to jquery-ui icons.png

See index.html in this repo for a working example.

IMPORTANT!!: in css/jquery.fancybox-1.3.4.css change line 39 to the URL that points to fancybox.png

Contact: adewinter [at] dimagi dot C O M

vellum's People

Contributors

czue avatar biyeun avatar dannyroberts avatar ewheeler avatar

Watchers

James Cloos 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.