Forum: Ruby on Rails Prototype Problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
josh.charles (Guest)
on 2005-11-12 19:10
(Received via mailing list)
I'm attempting a Insertion.Bottom operation on a table I'm working on.
 Unfortunately, I'm running into a browser problem.  The code works
perfectly in Firefox, but fails in IE.

Here is the simple code:

function ProcessForm()
{
	newname = $F('name');
	newloc = $F('location');
	html = '<tr><td>#</td><td>'+newname+'</td><td>'+newloc+'</td></tr>';
	new Insertion.Bottom( 'People', html );
}

The table looks like this:

<table id="People">
	<tr>
		<td>id</td>
		<td>name</td>
		<td>location</td>
	</tr>
	<tr>
		<td>1</td>
		<td>Josh C.</td>
		<td>Kansas City, MO</td>
	</tr>
	<tr>
		<td>2</td>
		<td>Tara Craven</td>
		<td>Kansas City, MO</td>
	</tr>
</table>

I'm sort of at a loss here.  Any ideas what might be happening?

Josh
Per D. (Guest)
on 2005-11-12 22:58
You need a <tbody> for it to work in IE.
This topic is locked and can not be replied to.