I always use a single HTML file for my webapps. I try to keep the HTML as clean as possible and use JavaScript to build the UI and remove it again from the DOM when it is not needed any more. All the data that I need from external sources I usually fetch in JSON format instead of requesting HTML 'pages'.
I found this approach to be working much better than requesting new HTML pages from the server. Building the app using JavaScript gives you much more control and makes you much more flexible. For example, it is possible to cache the data you need from the server to make it much less dependant on a working connection. Also, it could lets you store the state of the application so the user can resume with what he was doing if he was interrupted. Cheers, Niels Leenheer http://rakaz.nl On Mon, Nov 9, 2009 at 2:37 PM, danlarkin <[email protected]> wrote: > > Hi all, > > I seem to be designing my app as one large (single) html file, just > with different sections of the file for different IUI "views" and > included javascript files with "libraries" of custom functions. So my > question is that this doesn't strike me as best way of developing a > webapp in the longer term, both in terns of reusabilty and speed > (download). > > Is my development approach common? Or do people split the webapp into > different html files and perhaps use hyperlinks between them? > > I'd be interested to hear any opinions or comments on this > Many thanks! > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google Groups > "iPhoneWebDev" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<iphonewebdev%[email protected]> > For more options, visit this group at > http://groups.google.com/group/iphonewebdev?hl=en > -~----------~----~----~----~------~----~------~--~--- > > -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" 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/iphonewebdev?hl=.
