netski
10 Jul 2009, 5:57 AM
Hello everyone,
I'm looking for some advice on how to approach an applications architecture for my front end.
What I would like to know is how you handle multiple forms for an application; for instance if you have multiple forms do you:
1. Separate each forms javascript definition into individual files and include them in a single page (index.html) with a singleton pattern to load each form when required?
2. Separate each form into individual pages (login.html, logout.html, etc ...) with their own javascript definitions?
Can anyone make a good recommendation on an example I could learn from?
Cheers in advance,
Timothy
I'm looking for some advice on how to approach an applications architecture for my front end.
What I would like to know is how you handle multiple forms for an application; for instance if you have multiple forms do you:
1. Separate each forms javascript definition into individual files and include them in a single page (index.html) with a singleton pattern to load each form when required?
2. Separate each form into individual pages (login.html, logout.html, etc ...) with their own javascript definitions?
Can anyone make a good recommendation on an example I could learn from?
Cheers in advance,
Timothy