用firefox的firebug调试 看是否正常返回josn类型

解决方案 »

  1.   


      this.Response.Write("{\"" + this.Request.QueryString["callback"] + "\":" + "[{\"status\":\"1\",\"info\":\"weer\"}]}");
      

  2.   

    设断点可以到 $("#Control0").val("d"); 这一步吗?
      

  3.   

    实在不行就换$.ajax
    http://jqapi.com/#p=jQuery.getJSON
    然后加上error,complete事件看返回数据或者抱错信息
      

  4.   

    其实我这个并没有跨越,但我还是用了ReturnQualityReport.aspx?callback=?,这其实是同一个页面,会不会是这边的问题??
      

  5.   

    如果你用callback的话,看内容是否返回的是callbackxx({});
      

  6.   

    我的如下:而且返回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
    },'-',{