Home > Database > Mysql Tutorial > jquery实现Access数据库添加数据

jquery实现Access数据库添加数据

WBOY
Release: 2016-06-07 15:42:50
Original
1707 people have browsed it

1.编写客户端代码 jQueryAjax = function(data, callback, manage) { this.loading(); jQuery.ajax({ type: "POST", url: "Edit/Editor.aspx", data: data, async: true, success: function(text, state) { if (callback != undefined) { callback(text); }

1.编写客户端代码

jQueryAjax = function(data, callback, manage) {
    this.loading();
    jQuery.ajax({
      type: "POST",
      url: "Edit/Editor.aspx",
      data: data,
      async: true,
      success: function(text, state) {
        if (callback != undefined) {
          callback(text);
        }
      },
      error: function(response, state) {
        //Ws.showError("已超时,请刷新页面", true);
      }
    });
  }

处理表单

var data = "name=" + $("#txtName").val() + "name=" + $("#txtName").val() + "name=" + $("#txtName").val()

 var fun = function(result){

  //处理服务器端响应

  $("#ResultArea").html(result);
}

jQueryAjax(data, fun);

 

2.编写服务器端代码

毫无疑问,插入部分,你自己弄。

然后,需要查出文章列表,至于分页条部分,我是自己写的控件。

总之,把这些全都写成HTML格式,最好以字符串形式响应给客户端。

 

Over,祝你成功!(看不懂不要问我,我觉得说清了。)

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template