I don't know about putting it into active scaffold.  I don't think it would be 
hard to write, but I'm on vacation away from a computer until july 6

I think it would be a cool plugin and should be separate.

~kenny
Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: JannaB <[email protected]>

Date: Wed, 24 Jun 2009 04:33:04 
To: ActiveScaffold : Ruby on Rails plugin<[email protected]>
Subject: Re: Live List View



And point #1 is easy ni MySQL, create a column of type TIMESTAMP with
the attributes of ON UPDATE CURRENT_TIMESTAMP make it NOT NULL with a
default of CURRENT_TIMESTAMP. This will put into the specified column
the time of last insert or update in the example format of:
2009-06-06 14:06:36

-Janna B.

On Jun 24, 1:14 am, [email protected] wrote:
> Not currently.
>
> I'm thinking this through my head and it seems like it could be hacked 
> together very simply/quickly, but I'm not sure how efficient it would be.
>
> So the way I would do it,
>
> 1. The model/models need to have a last updated at column.
>
> 2. Create a controller that returns the most recent updated at time from the 
> models being "watched"
>
> 3. Create a javascript object that keeps track of the last updated at time, 
> and then hits your controller created in step 2 every second, or however long 
> you want.
>
> 4. Either enhance the newly created javascript object, or create another 
> javascript object responsible for knowing what div's/parts of the page that 
> need to be updated, and also knows where it needs to get the info from.
>
> ------Original Message------
> From: JannaB
>
> Sender: [email protected]
> To: ActiveScaffold : Ruby on Rails plugin
> ReplyTo: [email protected]
> Subject: Live List View
> Sent: Jun 23, 2009 1:10 AM
>
> Is there a means of implementing a list view in AS in a "live" manner
> through AJAX? (i.e. so that if the underlying data in the table should
> change while we are viewing the list, it too changes in front of us
> without our refreshing it?) Thanks, Janna B.
>
> Sent from my Verizon Wireless BlackBerry


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to