zoukankan      html  css  js  c++  java
  • ajax from 提交

          $.ajax({
                    cache: true,
                    type: "POST",
                    url:ajaxCallUrl,
                    data:$('#yourformid').serialize(),// 你的formid
                    async: false,
                    error: function(request) {
                        alert("Connection error");
                    },
                    success: function(data) {
                        $("#commonLayout_appcreshi").parent().html(data);
                    }
                });

    alert(para4);
    alert($('#frmForm1').serialize());

    $.ajax({
    cache: true,   //是否缓存
    type: "POST",
    url: "forummainsb.jsp",   
    data: $("#frmForm1").serialize(),// 你的formid
    dataType:"json",                       //数据传送格式
    contentType:"GBK",       //编码格式
    async: false,           //默认设置下,所有请求均为异步请求。如果需要发送同步请求,请将此选项设置为 false。

                      //注意,同步请求将锁住浏览器,用户其它操作必须等待请求完成才可以执行
    error: function(request) {
    alert("Connection error");
    },
    success: function(data) {
    //$("#commonLayout_appcreshi").parent().html(data);
    alert(data);
    }
    });

  • 相关阅读:
    防火墙透明模式
    HP管理工具System Management Homepage安装配置
    kbmmw 中JSON 中使用SQL 查询
    kbmmw 中JSON 操作入门
    第一个kbmmw for Linux 服务器
    kbmmw 5.02发布
    kbmmw 5.01 发布
    使用delphi 10.2 开发linux 上的Daemon
    使用unidac 在linux 上无驱动直接访问MS SQL SERVER
    使用delphi 10.2 开发linux 上的webservice
  • 原文地址:https://www.cnblogs.com/jixu8/p/3449091.html
Copyright © 2011-2022 走看看