I am using Microsoft ASP.NET Web API 2.x at server side like the following
....
namespace SampleWebApi.Controllers
{
public class DefaultController : ApiController
{
[HttpGet]
[Route("getdata")]
public IHttpActionResult GetData()
{
try
{
// Connect to MySQL here
return Ok();
}
catch (Exception ex)
{
return InternalServerError(ex);
}
}
}
In Javascript (I use TypeScript), I use qx.io.request.Xhr:
var req = new qx.io.request.Xhr(baseURL() + "getdata");
req.setMethod("GET");
req.addListener("success",(e) => {
var response = e.getTarget().getResponse();
// process response
}, source);
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Use-of-Database-in-qx-Desktop-tp7587174p7587177.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel