For my future web application, I have searched the best language in order to make it available on the most number of available platforms. I think that the AJAX and DOM are a good solution and with the help of jQuery library, I can reach a discrete number of device, overcoming the cross-browser problems and at the same time saving many rows of code.
So the client (i.e. your browser) after loading of the software page, will run the application and will load a few data of the server, without to reload of the entire page every time you change some items. This is possible thanks to combinations of AJAX and DOM. Moreover the server will contain two XML files: one for multi-language support and one for default settings that the user can update, load and save with its data.
Well, AJAX has some negative aspects: it depends of your browser that needs to have:
- DOM HTML support;
- tools for XML parsing.
For example to select a div called with id=”prova”, I should write:
var selected = document.getElementById('prova');
On the contrary with jQuery:
var selected = $('#prova');