Ajax Sending credentials with cross-domain posts?

Functionality is supposed to be broken in jQuery 1.5.
Since jQuery 1.5.1 you should use xhrFields param.
$.ajaxSetup({
    type: "POST",
    data: {},
    dataType: 'json',
    xhrFields: {
       withCredentials: true
    },
    crossDomain: true
});

How To Post Row Data From Ajax ?



var userModulesAccess_obj = {
            user_id: $('#pp_user_id').val()
        };

        var userModulesAccess_obj_encoded = JSON.stringify(userModulesAccess_obj);


        $.ajax({
            url: API_URL + 'analytics_board/userModulesAccess',
            type: 'POST',
            async: false,
            data: userModulesAccess_obj_encoded,
            dataType: 'json',
            error: function (data) {
                console.log(data);
                //window.location.replace(WEB_URL + 'login');
            },
            success: function (data) {

                BootstrapDialog.closeAll();

                if (data.status_code != '2000') {
                    window.location.replace(WEB_URL + 'login');
                }

            },
            complete: function (data) {
                console.log(data);
            }
        });

=======

Now print in php using  file_get_contents('php://input')

Create Organization ( Company ) chart with gojs


Download the file.

https://drive.google.com/open?id=0B9cPcFcKq6vnbWM0X3ZzNkVsSXc



For more details Visit.

http://gojs.net/latest/samples/orgcharteditor.html


Note : for removing gojs reference text replace gojs.js with org-chart.js :-) 

Feedback are always Welcome.