I believe Element#insert() expects an object as its parameter, like this:

$('tableid').down('tbody').insert({top: tr});

http://prototypejs.org/api/element/insert

-Hector


On Wed, Nov 19, 2008 at 8:27 AM, jason maina <[EMAIL PROTECTED]> wrote:

> Hi,
>
> As per the subject i'm building DOM elements on the fly and its working
> nice but when i try to insert a new row with controls to add new entry the
> row goes to the bottom of the table, could i be missing anything??
>
> code:
> http://pastie.org/318817
>
> Kind regards
> Jason
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to