Mike I had to make a similar decision when I made http://toobify.com - similar because, whilst I don't have server side html being pulled in I am pulling in almost all content from API's.
And perhaps this is how you should access your serverside data. Access it as a Restful API. However leaving javascript to inject Html. Can make for a slow rendering of the page initially. But its a dream to manage modules which have to understand only a very basic dom. My resulting template was just that, header, main, nav.... that was the idea atleast. One needith to think about a flash style page loader now. On 12 Feb 2011 19:08, "mikepalmer" <[email protected]> wrote: Hello mentors, I've been charged with trying to help our company's web properties improve the front-end coding of their sites. Taking Zakas' Scalable Javascript Architecture as a starting point has been very helpful, but when it comes down to a page or a module structure, I have a question: where do you generate the HTML? Most discussions about accessible usage of Javascript talks about it as added behavior; eg: the HTML is either static or generated server- side and Javascript adds value after the page loads. I suppose this is acceptable when creating a site where the interactive functionality is an add-on, optional. However, when developing a dynamic web application loaded with interaction, wouldn't having your HTML generated by the server-side tightly couple your Javascript module to the server-side code? Wouldn't your Javascript modules be lose their modularity by depending on HTML generated externally? I would love to hear how you approach this type of situation and what questions you ask yourselves when deciding how to structure your modules. Thanks! Mike -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected] -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
