getJson(),回调函数不执行。 用firefox的firebug调试 看是否正常返回josn类型 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 this.Response.Write("{\"" + this.Request.QueryString["callback"] + "\":" + "[{\"status\":\"1\",\"info\":\"weer\"}]}"); 设断点可以到 $("#Control0").val("d"); 这一步吗? 实在不行就换$.ajaxhttp://jqapi.com/#p=jQuery.getJSON然后加上error,complete事件看返回数据或者抱错信息 其实我这个并没有跨越,但我还是用了ReturnQualityReport.aspx?callback=?,这其实是同一个页面,会不会是这边的问题?? 如果你用callback的话,看内容是否返回的是callbackxx({}); 我的如下:而且返回json为{message:"success",code:0,path:"D:\XH120730001.pdf"}但是还是不执行回调函数!!能给看看啊?? },'-',{ id:'btnprint', text:'导出PDF文件', iconCls:'icon-print', handler:function(){ window.qcySalesSlip.print(); var tempDatagrid = $('#qcySalesSlipDatagrid'); var index = tempDatagrid.datagrid('getSelected'); if(!index) { $.messager.alert('提示','请选择操作行'); return; } $.getJSON('qcy/QcySalesSlip.do?action=getlistPDF&id='+index.id+'&randomData='+Math.random(),function(json){ $.messager.alert('提示1','请选择操作行1'); } ); /** $('div#tempselect').remove(); $('<div id="tempselect"><span>请选择点击下面的按钮进行操作</span></div>').appendTo(document.body).dialog({ title:'是否导出PDF文件', modal:true, height:100, width:300, closable:true, buttons:[{ text:'确定', iconCls:'icon-save', handler:function(){$('#tempselect').dialog('close'); window.open('qcy/QcySalesSlip.do?action=savepdfDocument&id='+id+'&pdfName='+pdfName); } }], iconCls:'icon-save' });**/ }//handler },'-',{ JavaScript改变css样式问题。 JavaScript效果,隐藏IE功能。带图片,知道的进来拿分哦。 谁推荐一个 Tree 代码? 在线等答案,关于表单的问题 把网页当作FRAME后,不能自动安装插件了。 关于转义符的运用,请大家帮帮忙 一个JS特效@,请问怎么实现,都进来看一下 急 window.top.showDialog打开窗口之后怎么将其关闭 使用ScriptX控件的时候,如果设定的纸张为“用户自定义”(在“打印机”设置里)怎么设置? safari下无法触发keydown事件,求助 怎么让鼠标跟着滚动条动? 请帮我把二级联动改为定值输出,谢谢!
this.Response.Write("{\"" + this.Request.QueryString["callback"] + "\":" + "[{\"status\":\"1\",\"info\":\"weer\"}]}");
http://jqapi.com/#p=jQuery.getJSON
然后加上error,complete事件看返回数据或者抱错信息
},'-',{
id:'btnprint',
text:'导出PDF文件',
iconCls:'icon-print',
handler:function(){
window.qcySalesSlip.print();
var tempDatagrid = $('#qcySalesSlipDatagrid');
var index = tempDatagrid.datagrid('getSelected');
if(!index) {
$.messager.alert('提示','请选择操作行');
return;
}
$.getJSON('qcy/QcySalesSlip.do?action=getlistPDF&id='+index.id+'&randomData='+Math.random(),function(json){
$.messager.alert('提示1','请选择操作行1');
}
);
/** $('div#tempselect').remove();
$('<div id="tempselect"><span>请选择点击下面的按钮进行操作</span></div>').appendTo(document.body).dialog({
title:'是否导出PDF文件',
modal:true,
height:100,
width:300,
closable:true,
buttons:[{
text:'确定',
iconCls:'icon-save',
handler:function(){$('#tempselect').dialog('close');
window.open('qcy/QcySalesSlip.do?action=savepdfDocument&id='+id+'&pdfName='+pdfName);
}
}],
iconCls:'icon-save'
});**/
}//handler
},'-',{