开发者

How to make ajax faster and a ajax loaded Reply text field like on orkut

HEllo,

I have a site where I want to introduce reply user functionality. How to make an ajax loaded reply text field like a popup? currently, i m using a text field which takes hell lot of time on clicking reply. Is there any method to make it faster?

My ajax call is :

$("#replyMe").click(function(){


 $().ajaxStart($.blockUI);
 $.ajax({


  type: "POST",
  url: "<?php echo $html->url('/askmeouts/sent/'.$to['Profile']['id'])?>",

  succes开发者_JS百科s: function(msg){



   $('.show').html(msg);

   }
});


I think the only way is to make the server respond faster.

Your on-reply code is trivial, so the delay doesn't come from there. To verify that, you can use something like firebug and check the timing of the request and the response or maybe even look at your web server's log to see how long it took it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜