我在asp:update面板中使用asp:listview中的jQuery評分插件。以下是點擊評分星號時所調用的功能。updatel面板內的jQuery評分插件
function DisplayRatings() {
$('DIV.ratingBar').each(function() {
var id = $(this).attr('id');
var count = $(this).attr('rel');
$('#' + id).raty({
showCancel: false,
readOnly: false,
showHalf: true,
start: count,
onClick: function(score) {
// I have to pass the score and ID to server side
}
});
});
}
現在我必須通過「分數」和「ID」到服務器端,並調用其重新綁定列表視圖,並更新屏幕上的得分沒有屏幕刷新的方法。 請建議如何去解決這個問題(我不能使用ajax工具包評級,因爲它不支持半星評級)