ZAjax – a Javascript library to send Ajax request – GET/POST – JOSN


Hello Developers,

I have written a library which helps to send and process AJAX requests with JSON data. Right now it accepts HTTP GET and HTTP POST Json requests. You can download from below repository

https://github.com/swagatblog/zAjax

You also can extend this to your requirement like POST stream, GET custom object etc.

Sample code to use this:

****************************************************************

 var url=’http://yourapiurl.com/getinfi’;

var requestType=’GET’;

var data={id:1120}; //JSON data

var successCallback= function(response){

//implement your code

};

var failureCallback= function(response){

//implement your code

};

var contentType = ‘application/json’;

ZScript.Ajax.send-request(url, requestType, contentType, data, successCallback, failureCallback);

This is a very simple to use library and sample shows how to send a GET request .

Best Regards

Swagat

Advertisements

Basic sample HTML 5 drawing app using FabricJS


I have been working on so many canvas libraries which enables us to build robust drawing app with unconditional customization to the library.

Found FabricJS as the best library till now, which supports multiple touch based devices and obviously most of the HTML 5 supported browsers.

You can find a sample application in below repository and can download also

https://github.com/swagatblog/FabricJS_Drawing/

This application would give an idea about building a simple and powerful drawing app using HTML 5 canvas. Few of the components have been used in this app

1) Drawing a rectangle

2) Drawing a circle

3) Drawing an image

4) Enable and disable drawing

5) Enable and disable pan

6) Zoom in

7) Zoom oou

8) Reset zoom

Ref: Official sites for fabricjs

1) http://fabricjs.com/

2) http://fabricjs.com/events/

3) http://fabricjs.com/demos/

 

Send me a note if you need any info/help on this library.

 

Best Regards

Swagat