<table id="tableblack" width="100%" border="0"
cellspacing="0" cellpadding="0" class="tab_main2">
<s:iterator value="memberdevices" status="st">
<tr>
<td width="25%" class="td_center">
<s:property value="deviceUUID" />
</td>
<td width="25%" class="td_center">
<img src="images/icon_stop.gif"
value="<s:property value='memberDeviceID' />" id="img1"
class="cur" />
</td>
</tr>
</s:iterator>
</table>
//删除终端设备
$("#img1").bind("click",function(e)
{
var memberDeviceID = $(this).attr("value");
var datatemp = "memberDeviceID="+memberDeviceID;
$.ajax({
type: "post",
url: "delectDevice.action" ,
data: datatemp,
success: function(msg)
{
$("#errorCode").html("<font id='errorCodeid' color='red'>"+msg+"</font>");
$("#errorCodeid").fadeOut(5000);
}
});
});
ajax 例子可以 超越浏览器的限制 ,在chrome 下可以使用 。
点击图片按钮删除设备。