don’t use the :update param then, just call your ajax action and tell
the browser which tag to replace by it’s id (requires unique id for each
table row)
Good point, but the docs say that replace_html replaces the inner
part only, not the element.
Then use .replace
Tips: put an ID into your TR, such as tr_002, so the system knows what
to
replace. And put the TR into a partial, so you can use .replace :tr_002,
:partial => …
That way looks good, but how exactly would I call this?
I guess the best way would be to call it from :success, but how could
I get the HTML fragment passed by the server then?
Your success function gets passed the response object, so
response.responseText contains whatever the controller generated.
You might find it less hassle to go with Phlip’s suggestion.
IE has its own proprietary way of modifying table rows and cells (it’s
possible– Internet Explorer for Developers | Microsoft Learn),
but I don’t think Prototype uses it. Last time I checked it can
successfully remove rows for IE,
-tieg
On May 29, 6:20 am, Firstname Secondname <rails-mailing-l…@andreas-
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.