2009/9/30 Shaun Pearl <[email protected]>: > > Nice thanks! > > I'm guessing different http requests cause a new cycle object to be > instantiated meaning it will be back to the inital style? I couldn't > find an answer within the API.
Remember that cycle() is executed in the server as a result of your ajax call to it. It has no way of knowing what state the cycle was at from the last call. In the extreme it might not even be the same server as last time (though probably this is not the case here). You could save the state in the session as suggested by another post or you could pass the current state as a parameter to the ajax call, or probably better something that indicates the row number from which the required class can be determined. Colin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

