Giter Site home page Giter Site logo

lebbe / formalia.js Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 220 KB

formalia.js remembers what your users wrote into the forms of your web-pages, in case they get lost and come back again. For instance, if a user starts typing into the form, the browser crash, and he have to start fill in the form again, the fields will be populated with his previous intended input.

License: Other

JavaScript 100.00%

formalia.js's People

Contributors

lebbe avatar

Stargazers

 avatar

Watchers

 avatar  avatar

formalia.js's Issues

Support multiple forms and ajax

When the plugin is run on an element that is not a form-element it should:

  1. Run on all forms within elements
  2. Listen for ajax events and run on new forms

Doesnt return itself

When calling .formalia() it doesn't returns itself, making chaning impossible.

Delete cached form on submit

When the form is submitted, it should be safe to say that the cached values are no longer needed. Delete them. Should also be an action in the plugin.

Clear form and save content to cache

An action should be able to clear the form, and save the form content to cache. This way, you can use the plugin to build a "Clear" button for the form, with undo functionality.

Make it configurable how to identify a form

How do you uniquely identify a form? Until now we are using name and id attribute, but this might not be sufficient.

I plan to make this configurable by the help of allowing to define a function in the plugin options that computes a unique string given a form as argument.

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.