Displaying 2 results from an estimated 2 matches for "aaffaa".
Did you mean:
aaaa
2006 Mar 14
2
rjs woes
...ers/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 as:
new Effect.Hilight(''cb_div'', {startcolor:#aaffaa});
but as i said, it''s not getting evaluated in the eval() call. (i''m not
seeing the effect)
anyone have any i...
2006 Mar 16
9
Baffling AJAX issue
Ok, I''ve got some link_to_remote stuff working elsewhere just fine, but
this time it''s doing something very screwy. Here''s the view code to
create a link to remotely toggle a boolean value on a record:
<td class="contact_active">
<%= link_to_remote "<div id=''contact_active_#{cm.id}''><span