English 中文(简体)
J Query POST 申请失败
原标题:JQuery POST request failing in IE8

当用户点击链接时,我试图发出一个员额要求。 员额要求应优先于违约行为(联系后)。 当我用火药或黄色进行试验时,它会进行罚款,但在IE8中失败。

  $( a.thought_delete ).live( click , function(){
     $.post($(this).attr("href"), function(data){});
     return false;
  });

在我点击以下链接时,请求即予启动:

 <a href="thought/4/delete/" class="thought_delete">Delete</a>

我认为,问题可能是,我与原始耳朵的联系和封顶是一样的。

This request seems to work fine - since the link is different.

 $( a.thought_delete ).live( click , function(){
      $.post("/thought/2/delete/", function(data){});
      return false;
   });

Any thoughts on how to fix this problem?

问题回答

You second parameter should be a map or string that is sent to the server with the request.

你的法典正在做什么?

See jQuery POST api, for more information and examples.

如果你在张贴和随后恢复《手册》之前清醒,会发生什么情况?

$( a.thought_delete ).live( click , function(){
  var href = $( a.thought_delete ).attr( href );
  $.post("/thought/2/delete/", function(data){iii
  $( a.thought_delete ).attr( href , href);
  return false;

iii





相关问题
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: &...

热门标签