Hi, I will have to start on a fully-ajax project soon. To make it easier to split off design to a design-team I want to try an approach similar to the following:
The design team creates a single html document for the entire application. This document contains all elements that are needed for the application. Initially all elements are hidden and all "fields" are blank. for example: <div class="person"> <span class="first_name"></span> <span class="last_name"></span> </div> Then when I need to display a person object(that I got using json) somewhere, I would like to be able to make a copy of this element, and apply a behavior to it using lowpro. The behavior will then fill in the fields using the properties of the person object. How can I clone an element (like the person class div in my example) ? Does this seem like a good approach? Thanks for any comments. Mathijs --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
