使用JQuery从JSON或XML提要生成HTML表单 [英] Generating HTML forms from JSON or XML feed using JQuery

查看:134
本文介绍了使用JQuery从JSON或XML提要生成HTML表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Jquery创建基于XML或JSON数据的HTML表单,并且我还计划验证可能为空或不正确的任何表单字段.

I would like to create an HTML form based on XML or JSON data using Jquery and I also plan to validate any form fields that may be empty or incorrect.

我想知道是否还有其他程序/函数动态地动态生成这种形式,以及实现该形式的最佳方法.任何最适合工作示例的jquery小部件或库都将受到赞赏

I would like to know if there are any other programs/functions that generate such a form dynamically on the fly and the best way to go about implementing this. Any jquery widgets or libraries that work best with workings examples would be much appreciated

还有在这种情况下最好使用XML或JSON的哪些提要并解释原因?

And also what feed to best use in this scenario XML or JSON and explain why?

谢谢

推荐答案

我发现了一些可能对您有帮助的东西:

I've found some of these that might help you:

从JSON模式生成表单:

  • how to create a html form using a JSON definition?
  • http://neyric.github.com/inputex/examples/json-schema.html
  • JavaScript to generate/render dynamic HTML form from JSON or similar data?
  • Any tool to generate html form

从XML模式生成表单:

  • http://www.totallysmartit.com/examples/xml/questionnaire/
  • Create HTML form from XML
  • http://www.datamech.com/XMLForm/

来自不同库的样本以生成表格:

  • http://www.alpacajs.org/examples.html
  • http://jsonforms.io/#/examples
  • http://schemaform.io/examples/bootstrap-example.html

这篇关于使用JQuery从JSON或XML提要生成HTML表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆