You're going to kick yourself. ;-) It's because you're submitting the
form, so the page is getting refreshed after the elements are added.
Change the submit button to just a button and the behavior will go
OT: You probably want a tbody in that table, otherwise things will be
a bit unreliable. TR elements must be inside TBODY, THEAD, or TFOOT
elements in the doc type you're declaring, they cannot be direct
children of TABLE. Most browsers will let you get away with it in
your original markup (silently adding the TBODY for you), but if you
do DOM manipulation, you'll run into trouble.
tj / crowder software / com
Independent Software Engineer, consulting services available
On Mar 12, 12:32 am, arkady <arkad...@gmail.com> wrote:
> <script src='http://pastie.org/413720.js'></script>
> i have a form with a submit button. the 'onclick' event is supposed to
> insert 10 rows into a table.
> when you press the button, the table blinks. all the elements are
> inserted and just as quickly deleted again.
> please help.
> this also happens when with other elements
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to firstname.lastname@example.org
To unsubscribe from this group, send email to
For more options, visit this group at