Home » Developing U++ » U++ Developers corner » Web framework....
Re: Web framework.... [message #34749 is a reply to message #34748] |
Fri, 09 December 2011 17:04 |
|
mirek
Messages: 13978 Registered: November 2005
|
Ultimate Member |
|
|
lectus wrote on Fri, 09 December 2011 10:49 | Here's a good idea:
* HTML 5 GUI designer in the layout editor.
* Use U++ classes to handle the back end.
* Connect both through HTML 5 WebSocket and U++ Sockets.
Basically the framework should make it easy to connect these sockets and this should not be visible to the programmer (wrapped in classes).
So, we can implement MVC for the web:
Model: U++ handling Sqlite, MSSQL, Oracle, MySql,etc
View: HTML5 UI designer on the IDE.
Controller: C++ code using U++ NTL and all classes.
Example of HTML 5 WebSocket:
socket= new WebSocket('ws://www.example.com:8000/somesocket');
socket.onopen= function() {
socket.send('hello');
};
socket.onmessage= function(s) {
alert('got reply '+s);
};
This way U++ can run on servers while HTML UI front ends will be available for Desktops, Notebooks, Netbooks, Tablets and Smartphones.
|
Like Wt?
Well, that is planned like one possible high-level paradigm. However, the core functionality will be much more down to the earth.
|
|
|
Goto Forum:
Current Time: Sun May 12 16:52:02 CEST 2024
Total time taken to generate the page: 0.02349 seconds
|