js4
来源:互联网 发布:淘宝编辑软件 编辑:程序博客网 时间:2024/05/16 00:43
var onece=false;
//提交表单
function submitForm(formid,items,url){
onece=true;
var zd=(nowDIV==threadDIV);
$(formid).skygqCheckAjaxForm({
items: items,
url : url,
isAjaxSubmit : true,
success : showResponse,
type : 'post',
ajaxImage :'${ctxPath}webapps/images/loading.gif',
dataType :'html',
zhedang : zd
});
$(formid).submit();
}
//回调函数
function showResponse(responseText, statusText, xhr, $form) {
if(onece){
if(z>i){
nextDIV();
}else if(z==i){
}else {
preaDIV();
}
nowDIV.html(responseText);
i=z;
}
onece=false;
}
//删除一行
function removeRow(trId){
jConfirm('您确定这么做吗?', '确定对话框', function(r) {
if(r==true){
var x = document.getElementById(trId);
x.parentNode.removeChild(x);
}
});
}
function send(sendUrl,show){
$.ajax({
type: "POST",
url: sendUrl,
dataType:"html",
success: function(result){
if(show){
jAlert(result);
}
}
});
}
//提交表单
function submitForm(formid,items,url){
onece=true;
var zd=(nowDIV==threadDIV);
$(formid).skygqCheckAjaxForm({
items: items,
url : url,
isAjaxSubmit : true,
success : showResponse,
type : 'post',
ajaxImage :'${ctxPath}webapps/images/loading.gif',
dataType :'html',
zhedang : zd
});
$(formid).submit();
}
//回调函数
function showResponse(responseText, statusText, xhr, $form) {
if(onece){
if(z>i){
nextDIV();
}else if(z==i){
}else {
preaDIV();
}
nowDIV.html(responseText);
i=z;
}
onece=false;
}
//删除一行
function removeRow(trId){
jConfirm('您确定这么做吗?', '确定对话框', function(r) {
if(r==true){
var x = document.getElementById(trId);
x.parentNode.removeChild(x);
}
});
}
function send(sendUrl,show){
$.ajax({
type: "POST",
url: sendUrl,
dataType:"html",
success: function(result){
if(show){
jAlert(result);
}
}
});
}
- js4
- js4
- js4 转
- my.js4
- WEB-js4
- [Ext JS4系列]Ext JS4 入门
- 开始Ext JS4
- EXT JS4类体系
- EXT JS4组件
- EXT JS4数据包
- EXT JS4 拖放实例
- [Ext JS4] 数据包
- EXT JS4 布局与容器
- Ext JS4 comboBox读取数据库
- Node.js4 npm模块管理器
- Ext JS4.2学习笔记
- Ext Js4 CheckBox学习与实例
- ASP.NET+Ext Js4.0收缩面板
- 全球海底光缆分布
- js2
- js3
- text处理 替换图片 高亮 等 EditText监听器 注意
- Python, Ruby 与 Groovy,谁与争锋?
- js4
- C语言 strcat与strcpy
- VB HOOK(钩子)超级无敌详细用法(介绍)
- HTML语言剖析(六)清单标记 _HTML教程(2)
- 关于log4net1.2.10.0在web.config和app.config的不同配置
- PHP检测上传文件的类型
- SQL2000权限问题(拒绝了对对象 'data'(数据库 'xxx',所有者 'dbo')的 SELECT 权限)
- sstream标准库
- 两个经济学家