English 中文(简体)
从Jquery美元返回。
原标题:Return from Jquery $.ajax
  • 时间:2011-11-21 16:10:57
  •  标签:
  • jquery

我有以下基本职能:

function doAjax(url, args){
    var retVal = $.ajax({  
                    type:   "GET",
                    url:    url,
                    data:   args,
                    async:  false
                 }).responseText;
    return retVal;
}

处理时,从该卷中回收的数据应为某些文本,如“有效用户证书”。

某些预先设计的超文本正由ReretVal送回,具体地说:

<html>
   <body>
       <h1>SRV Server:</h1><br> Document Contains no data. 
   </body>
</html>

我不理解原因。 谁能解释这一文字的内容?

服务器边代码正正确接收和处理数据。 这就是说,Jajax打电话的代码,它验证了数据动力并相应处理数据。

退款=fvAPI->responseCurl[ERROR];报表是:“有效用户全权证书”。

include_once $_SERVER[ DOCUMENT_ROOT ]. /inc/freightView.inc.php ;
$id     = 0;
$fv     = 0;
$status = 0;
$retval = null;
if(isset($_GET[ id ])){
     $id=$_GET[ id ];
    if(is_numeric($id)){
        if(isset($_GET[ fv ]) && strlen($_GET[ fv ])>3){
            $fv1 = substr($_GET[ fv ],4,1);
            if(is_numeric($fv1)&& $fv1>0){
                $fv=$fv1;
                $status=1;
            }
            else $status = 0;
        }
        else $status = 0;
    }
    else $status = 0;
}
else $status = 0;
if($status==1){
    $fvAPI = new fv($id);
    switch ($fv){
        case 1:
            if($fvAPI->postEditXML()){
                $retval = $fvAPI->responseCurl[ ERROR ];
            }

            break;
        case 2:
            break;
        case 3: 
            break;
        case 4:
            break;
        defaut:
            break;
    }
}
return $retval;
最佳回答

支架正在运行,但服务器正在退回这一请求的错误。 如果你把ur带入row子,你就会看到同样的结果。

你们需要确定服务器为何用错误来应对。

问题回答

当你直接击中URL时会发生什么情况(有动力吗?) 如果你有火力,打开黄tab布,根据请求进行右翼扫描,并点击“在新的表格中点击”

http://kb.mozillazine.org/Document_contains_no_data”rel=“nofollow”http://kb.mozillazine.org/Document_contains_no_data

Mozilla is having a problem loading the page, so I suspect your AJAX is fine but your server is not configured properly. Loading the URL in a non-AJAX fashion will let us find out!





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签