Hi, I have a table laid out something like this: <table> <thead> <tr> <th>col 1</th> <th>col 2</th> </tr> </thead> <tbody id="tablebody"> <tr> <td>moo</td> <td>moo</td> </tr> <tr> <td>moo</td> <td>moo</td> </tr> </tbody> </table>
I'm using Ajax.Updater with the insertion: option to create a new insertion,
like so:
var ajx = new Ajax.updater('tablebody', 'tr.html', {
parameters: 'name=bob',
insertion: function(obj, str) {
var ins = new Insertion.Bottom(obj, str);
}
});
tr.html just contains:
<tr>
<td>mee</td>
<td>mee</td>
</tr>
this appears to work in firefox, IE6, and konqueror, but opera messes it up.
I've traced this to line 1029 of prototype.js. Firefox skips this part (fails
the if statement) and moves on to the next part. IE passes the if statement,
and fails the try part, then the catch part works. Opera passes the if
statement, and 'successfully' inserts the content using the try block, but in
reality, the catch part is more accurate. If you put a "throw('error')" in
the first line of the try block, opera inserts the row correctly.
Anyone know how to fix this? :\
-Jeremy
--
Jeremy Kitchen ++ [EMAIL PROTECTED]
In the beginning was The Word and The Word was Content-type: text/plain
-- The Word of Bob.
pgpyPOvvml9ua.pgp
Description: PGP signature
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
