Displaying 1 result from an estimated 1 matches for "success_handler".
2006 Mar 14
2
rjs woes
...unction activate_user(cb) {
var status = (cb.checked) ? "1" : "0"
var data = "id" + cb.value + "&af=" + status
var myReq = new Ajax.Request( ''/admin/users/activate'', { :method: ''post'',
parameters: data, onSuccess: success_handler, ...)
}
function success_handler(resp) {
alert(resp.responseText);
eval(resp.responseText);
}
rjs template:
page.visual_effect :highlight, "cb_div", { :start_color => "#aaffaa" }
the success_handler is getting called, as the alert shows the javascript
being returned a...