rathinagiri wrote:Hi Roberto,
Your vision shows that you are a true leader.
Your JavaScript example shows your intention clearly. Now I understand, how HMG has emerged in these years.
IMHO, event handling can be done with JavaScript, where as HTML handling (preprocessing) can be done with PHP.
Let us start a project and I can help the project to my level best.
Thanks and regards.
Thanks for your kind words.
Regarding the design my, idea is to keep it as simple as possible, it means to keep to use of PHP minimal, perhaps, to handle http requests to backend database only.
This way our javaScript applications will be wrote with the same logic as desktop applications using a remote SQL database.
So, the entire program (or module) will be an html file including all required things.
We should use the 'AJAX' way, so, requests to server should be done via XMLHttpRequest:
http://www.javascriptkit.com/jsref/ajax.shtml
The server will return data instead a new entire page.
We receive the data, parse it and process as required by our app.
The application will perform like a real desktop one, requesting data from a server and showing it.
Google applications are a good sample of how this works.
What do you think about it?
Regards,
Roberto.