You are not logged in.
Pages: 1
Suggestion:
I would love to see more examples using mORMot with Jquery.
Projects samples about mORMot as application/web with JS thin client based on MVC and REST/JSON. It would be nice.
----
Talking about JSON, I have a question about Synopse mORMot Framework SAD 1.17, at page 128 of 835 bout REST/JSON
project sample number 4.
----
- I Started the project 'Project04Server.exe' and then open'Project04Client.exe' to add some entries.
- I Open Firefox, and type into the address bar:
http://localhost:8080/
and the Console message is: "NetworkError: 400 Bad Request - http://localhost:8080/"
----
http://localhost:8080/root/SampleRecord/1
the Response is:
{
"ErrorCode":403,
"ErrorText":"Forbidden"
}
Console message is:
"NetworkError: 403 Forbidden - http://localhost:8080/root/SampleRecord/1"
-----
http://localhost:8080/root/SampleRecord?session_signature=0000004C00000C8EB7F66B60
the response is:
[{"ID":1},{"ID":2},{"ID":3},{"ID":4},{"ID":5},{"ID":6},{"ID":7}]
----
Regards,
warleyalex
Offline
Please always check the forum before asking a question.
A quick search of "Forbidden" may have given you straight to this page:
http://synopse.info/forum/viewtopic.php?id=893
In fact, 1.17 documentation has been corrected since months.
It is better to download the 1.18 version, and use the latest unstable version.
See http://synopse.info/fossil/wiki?name=Downloads
Up to now, we focused on "rich" Delphi clients, including User Interface generation, even reporting and localization.
Benefit or "rich" Delphi clients is that it can share a lot of logic with the server side. For instance, TSQLRest abstract class, and interface-based services.
They can also be quite small. A full Delphi client compiled with Delphi 7 is less than 300KB (after UPX), so uses less bandwidth than an AJAX client for instance.
But they are not cross platform.
About JQuery samples, yes there is none up to now.
We focus on the server side, which is our "core knowledge", and let the user use any client-side it wants to.
There are so many AJAX frameworks around, that we don't have time nor will to force mORMot user to use one.
We are looking after SmartMobileStudio, which does not use JQuery, but its own set of classes, much lighter and easier to work with (SMS uses modern Object pascal, with classes, whereas JQuery syntax is a bit obfuscated.
Publishing and documenting explicit AJAX clients sounds difficult to me - we document our own Delphi classes, but for AJAX we do not have much time and knowledge.
Some mORMot users use AJAX clients with success.
If you search "AJAX" in the forum, you will find some resource.
About authentication, see http://blog.synopse.info/post/2011/11/3 … entication for sample code.
So mORMot users support is needed here!
I face my own limits!
Offline
Pages: 1