Recommend this page to a friend! |
Classes of Alexey Dodonov | Mezon AJAX Application | README.md | Download |
|
DownloadAjax ApplicationIntroMezon Framework provides simple class for creating ajax applications. This class uses all functionality of the Mezon Application Class also provides usefull functionality:
InstallationJust print in console
And that's all ) Learn moreMore information can be found here: It will be great if you will contribute something to this project. Documentation, sharing the project in your social media, bug fixing, refactoring, or even submitting issue with question or feature request. Thanks anyway ) I'll be very glad if you'll press "STAR" button )Exception handlingFor better debugging exception handling is performed in a special way. If the ajax request will be failed to process, then on the front end you will get JSON object with fields:
Finishing request processingAfter finishing request processing you can mark it as successfull:
Wich will return Or return any other result:
In this case $result will be encoded in JSON and outputted. Or in case of the error you can call
Wich will return object |