PDA

View Full Version : Application Architecture Question



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

deanna
10 Jul 2009, 9:15 AM
I download each form/window as I need it. My php creates the form, localizing it, and modifying any structure as needed. I then send down the config statement for the form as json (with some javascript handlers - so not pure json). I have a zend framework library I am developing that makes the interface easy between the php server and client javascript.

netski
11 Jul 2009, 6:15 AM
I download each form/window as I need it. My php creates the form, localizing it, and modifying any structure as needed. I then send down the config statement for the form as json (with some javascript handlers - so not pure json). I have a zend framework library I am developing that makes the interface easy between the php server and client javascript.

Hmm, I don't have any backend engine that will be generating javascript other then json data. What if I wanted to build all of my forms in individual javascript files and include them all on page load, instantiate when needed?

I'm also waiting to see if anyone has a good directory structure for javascript files.

Cheers,
Timothy

dj
11 Jul 2009, 7:52 AM
Hi netski,

you saw this thread? http://extjs.com/forum/showthread.php?t=26728

It's a good starting point to explore the resources out there.

netski
11 Jul 2009, 12:56 PM
Hi netski,

you saw this thread? http://extjs.com/forum/showthread.php?t=26728

It's a good starting point to explore the resources out there.

Thanks for sharing this link with me, exactly what I was looking for, not sure how I missed that one :-?

Cheers,
Timothy