Prototype error. replace content inside a <TR> in IE

Does anyone know of a fix for the issue with prototype and replacing
table rows in IE?

render :update do |page|
page.replace “row_#{params[:id]}”, :partial =>
‘wireless_request/wrequest’, :locals => {:wrequest => @wrequest}
end

This ends up making IE throw an “rjs error [object error]”

Searching around I found a couple of posts about modifying a few lines
of version 1.4 of prototype but I have 1.5.0_rc0.

Thank you,
Matthew M.
blog.mattmargolis.net

On 7/22/06, Matthew M. [email protected] wrote:

Does anyone know of a fix for the issue with prototype and replacing
table rows in IE?

Does it work in other browsers?

Peter M. wrote:

page.replace “row_#{params[:id]}”, :partial =>
Matthew M.
blog.mattmargolis.net


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

Yes it works fine in Firefox but not in Internet Explorer.

Matthew M.
blog.mattmargolis.net

This might give you a clue

http://wiki.rubyonrails.com/rails/pages/HowToGetAJAXUpdatesOfTablesWorkingInIE

Also, go look at ajaxscaffold.com - it works cross browser there.

(Apparently the innerHtml bits of are immutable in IE. Buggers).

Geoff

The ajaxscaffold stuff uses one tbody around the rows…each tr inside
the tbody has a unique id assigned to it eg - you can then access each row using Ajax
goodness.

I recommend installing the ajaxscaffold plugin and looking at how he
has achieved what you are trying to do.

Good luck
Geoff

Geoff H. wrote:

of version 1.4 of prototype but I have 1.5.0_rc0.
Rails mailing list
http://lists.rubyonrails.org/mailman/listinfo/rails


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

If I want to be able to update any row in the table am I going to have
to put a tag around each and every ? Or do I just have to
put one tag around all the s? If it is the second way(only
one ) then how would I go about referencing a particular

Matthew M.
blog.mattmargolis.net