English 中文(简体)
我怎么能利用美国航天中心接触URL,却得不到回应,只是操纵超文本?
原标题:How can I access an URL using AJAX, receive no response, but just manipulate HTML?

我不知道它是否更好地与阿富汗再次解放联盟(我,否则)使用,但这里的问题是:

假设使用Zend Framework的i m,我有一张表格,有多个登记册,每个行一个删除的纽吨。 如同此,

[...]
        <tbody>
            <?php foreach ($row as $reg) { ?>
                <tr <?php if ($reg[ value ] < 0) { echo "class= error "; } ?>>
                    <td><?php echo $reg[ creditor ] ?></td>
                    <td><?php echo $reg[ debtor ] ?></td>
                    <td><?php echo $reg[ reason ] ?></td>
                    <td>R$ <?php echo number_format(abs($reg[ value ]), 2,  , ,    )?></td>
            <td><a href="#" id="<?php echo $reg[ id ]; ?>" class="delete"><img src="http://192.168.0.102/libraries/css/blueprint/plugins/buttons/icons/cross.png" alt=""/></a></td>
                </tr>
            <?php } ?>
        </tbody>

[...]

我愿通过<条码>。 (通过history/delete/id/ROW_ID) a 每一删除纽扣吨时的表格。

页: 1 数据库中的确有一栏,只是删除了一行。 然而,我如何做到这一点?

我尝试:

// TR Fading when deleted
$( .delete )
    .click(function() {
    $.ajax({
        type:  GET ,
        url:  history/delete/id/ +$(this).attr( id ),
        success: function() {
        $(this).parent().parent().fadeOut();
        }
    });
    return false;
    });

没有成功

最佳回答

功能(作为呼吁后运行),但可确定使用 <<<<<>>><<>/code><<<>>

$( .delete ).click(function() {
  $.ajax({
    type:  GET ,
    url:  history/delete/id/ +$(this).attr( id ),
    success: $.proxy(function() {
               $(this).closest( tr ).fadeOut();
             }, this)
  });
  return false;
});

rel=“nofollow noreferer”>.closest(tr) 仅是获得母体(<tr>的较短途径,代理比照是实际固定办法。

问题回答

暂无回答




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

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签