Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Web framework....
Re: Web framework.... [message #34748 is a reply to message #34497] Fri, 09 December 2011 16:49 Go to previous messageGo to previous message
lectus is currently offline  lectus
Messages: 329
Registered: September 2006
Location: Brazil
Senior Member
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.

[Updated on: Fri, 09 December 2011 16:53]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Development ToDo finalized
Next Topic: U++ needs sockets examples and documentation
Goto Forum:
  


Current Time: Sun May 12 23:39:29 CEST 2024

Total time taken to generate the page: 0.03672 seconds