While building ontop of this, a new issue comes up, I want to replace a
whole row with controls like an inplace editor only that im not editing a
given cell at a time im editing a whole record as displayed on the
interface.
Have used the following codes getting errors:
- Element(trID).replace(tr) //tr is a dynamically contructed row with cells
and data now an ID has been included to the rows
element.parentNode is null
- $('TableID').down('tbody').replace(tr) //replaces the whole tbody section
for the tr loosing all other data in the section as expected
Now im lost, someone please show me the way
Regards
Jason
On Wed, Nov 19, 2008 at 7:37 PM, jason maina <[EMAIL PROTECTED]> wrote:
> Thanx it works like a charm bet thats what i was missing thanx again
>
>
>
> On Wed, Nov 19, 2008 at 7:33 PM, George <[EMAIL PROTECTED]>wrote:
>
>>
>> For what it's worth, I thought the syntax was
>>
>> insert({top : 'tr'})
>>
>> Give that a whirl
>>
>> All the best
>>
>> George
>>
>> On Nov 19, 4:27 pm, "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
-~----------~----~----~----~------~----~------~--~---