Hi, About two years ago I built an app almost completely in js and json. The only thing in good ole HTML were the instructions.
I really liked the final product. If I had built the app my normal way of .. a little HTML, a little js and a healthy dose of ajax.updater .. aka HTML in my replies ... I would have been done much faster. However I really liked how clean the code was and how easy it was to extend the app. Now we have just finished an app of similar complexity .. and just to get it out the door we used the tried -- true and sort of ugly ajax.updater. However I really want to take the one or two weeks and remove all the HTML and replace with 'new element -- insert/update'. *Pros* 1. imho much cleaner code 2. easier to extend because of #1 3. more reusable code 4. according to the prototype docs less prone to weird cross browser foo because prototype can work it's magic 5. way faster because I just pass the data(JSON) and the controller(JS) and the browser generates the view -- my initial app was blazing fast *Cons* 1. will take between one and two weeks to rip out the HTML and replace with JS 2. utterly foreign to people that are not familiar with 'new element' Thoughts ....? -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.
