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.

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.