There's something about this that makes me feel slightly dirty, what's the appropriate way to pass values to the data field?
Currently I'm doing this: var jsonstring = "{ id: " + id + "}";
<script type="text/javascript">
function CompleteCB(id) {
var jsonstring = "{ id: " + id + "}";
$.ajax({
type: "POST",
url: "/internal/completeholters.aspx/CompleteCB",
data: jsonstring,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(response) {
$("#row" + id).fadeTo("fast", 0.33);
}
});
}
</script>