English 中文(简体)
Jquery <span>tag problem in mozilla 3.6.1
原标题:Jquery <span> tag problem in mozilla 3.6.1

使用<代码>jQuery.post印刷一些数据,从一个服务器获得。

<div class="Label">
    <span id="result" >Click on Check.</span>      
</div>

<script>
    $(document).ready(function() {
        $("a").click(function() {
            var id =  $("#orderId").val();
            $.post("paidByDiners", { orderId : id},
              function(data) {
                  $("#result").html(data);
              });
        });
    });
</script>

在 Chrome和IE公司,该公司进行罚款。 但是,在Catherine response,[object XMLDocument]

当Im使用Fiddler2时,我看到以下答复:

HTTP/1.1 200 OK
Date: Sun, 27 Mar 2011 10:14:11 GMT
Content-Length: 38

This is my response.

我如何解决我的问题?

最佳回答

添加> 文本至$.post/code>。

    $(document).ready(function() {
   $("a").click(function() {
   var id =  $("#orderId").val();
   $.post("paidByDiners", { orderId : id},
   function(data) {
     $("#result").html(data);
   },  text );
   });
 });
问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!