首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 一个API web2py CRUD服务客户端

一个API web2py CRUD服务客户端

资 源 简 介

A simple javascript client for web2py apps plugin_clientapi is a multi-purpose client interface for handling web2py services from client frameworks or any javascript client software. It supports remote database queries, full database scheme and form retrieval, submission and validation with Ajax. It takes advantage of web2py data serialization api to perform client-server data comunications in a simple and efficient way. Examples Retrieving and submitting a form without user intervention requires a few lines: w2pClientAPI.onNewForm = function(){ w2pClientAPI.form.vars.runny = "very"; w2pClientAPI.submit();}w2pClientAPI.newForm("db", "cheese"); Retrieving data is also simple w2pClientAPI.query("db", {"first": {"tablename": "cheese", "fieldname": "id"},
VIP VIP
0.192236s