I'm currently entangled in the middle of a debate with a friend of mine over which direction the web interface of our project should go. One of the limitations of the server is that it's extremely low bandwidth (768/128 DSL), so we'd like to keep downloads to a minimum.
The project requires that a user-variable number of fields get filled in and submitted to be stored in a database. The number of fields is not known beforehand, neither is there any sort of reasonable boundary that can be placed for an upper limit.
I'm advocating client-side, where the fields are added and subtracted (as the case may be) dynamically by using Javascript and the DOM methods of manipulating pages. While this would add a bit of transfer to the initial download, it would prevent the user from having to query the server every time there is a change in the overall document. Plus, it has the added bonus of not requiring the whole page reload.
My friend is taking the side of the server. He wants to stick the variable section in an IFRAME and have that reload with the newly-formed fields inside. He says that the download of the new form will be less transferred data that the size of the javascript. His other main argument is that it will be compatable with all browsers, since there will be no javascript requirement and it's all HTML.
I'm uncertain as to what to do.
[Edit:]
Oh yeah, I should also bring up the possibility of using a src file for the javascript in the hopes of it being cached... and also the note that IFRAMEs don't work in older browsers.
<div align="right">The Happy Blues Man </div>
The project requires that a user-variable number of fields get filled in and submitted to be stored in a database. The number of fields is not known beforehand, neither is there any sort of reasonable boundary that can be placed for an upper limit.
I'm advocating client-side, where the fields are added and subtracted (as the case may be) dynamically by using Javascript and the DOM methods of manipulating pages. While this would add a bit of transfer to the initial download, it would prevent the user from having to query the server every time there is a change in the overall document. Plus, it has the added bonus of not requiring the whole page reload.
My friend is taking the side of the server. He wants to stick the variable section in an IFRAME and have that reload with the newly-formed fields inside. He says that the download of the new form will be less transferred data that the size of the javascript. His other main argument is that it will be compatable with all browsers, since there will be no javascript requirement and it's all HTML.
I'm uncertain as to what to do.
[Edit:]
Oh yeah, I should also bring up the possibility of using a src file for the javascript in the hopes of it being cached... and also the note that IFRAMEs don't work in older browsers.
<div align="right">The Happy Blues Man </div>