search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

post value send

Asked by Carlos
9 years ago.

i using test tutorialjavascripteventcalendarphp. and i have question.
I would like to know how to send post the value of the variable (to backend_events.php) in the code below.
thanks.

DayPilot.request("backend_events.php", function(result) {
var data = eval("(" + result.responseText + ")");

//dp.events.list = data;
//dp.update();

for(var i = 0; i < data.length; i++) {
var e = new DayPilot.Event(data[i]);
dp.events.add(e);
}

});

Answer posted by Dan Letecky [DayPilot]
9 years ago.

You can pass a custom object as the third parameter but it will be sent in the body serialized to a JSON string:

DayPilot.request(url, successCallback, postObject);

If you need to send custom post params you can use jQuery $.post():

$.post(url, successCallback, postObject);
Comment posted by Anonymous
9 years ago.

Thank you for your answer.
Thank you for writing one example who answered.

DayPilot.request(url, successCallback, postObject);

Answer posted by Anonymous
9 years ago.

Thank you for your answer.
Thank you for writing one example who answered.

DayPilot.request(url, successCallback, postObject);

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.