On 2/8/07, kael <[EMAIL PROTECTED]> wrote:
>
> I'm a pretty solid python and c/c++ programmer, but I'm struggling
> with javascript, even though it is sucking less with mochikit.
>
> I have many data tables on one page and they come up as the user
> drills down through the data, exploring various avenues.
>
> I copied the sortable_tables example (from MochiKit-1.3.1) and
> slightly repurposed it for my situation, adding a 'number' case for
> the 'mochikit:format' select and some needed connect statements for
> the cloned rows (the connects don't seem to survive the cloning).
>
> It works great for the first table... After the table element is
> generated I call:
>
> sortableManager.initWithTable("familytable");
>
> When a detail table is rendered I then call:
>
> sortableManager.initWithTable(this.table);
>
> Of course this wipes out the first table, and moves it rows to the
> second table. I gather what I need are multiple instances of the
> sortableManager. I think I am missing a basic Javascript concept
> here, and if anyone could help me out I would be real happy.
In that example the sortableManager is only equipped to handle one
table. You'll need to create one of them for each table.
-bob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" 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/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---