JQuery message on the calendar

Hello,

When you save a schedule (page save.asmx), sometimes need to display messages to users, but I’m not getting any kind of message that returns on the calendar page.

I’ve tried several ways, through JS, modal, etc., no way this displaying the message in the Calendar screen. Is there any lock that will not let it happen?
Anyone have any examples of a way to do this?

I’ve tried the following, follows some ways (within save.asmx this page):

1 -
context.Response.ContentType = “text/plain”;
context.Response.Write(“Hello World”);

2 -
//// simulate Microsoft XSS protection
var wrapper = new { d = myName };
context.Response.Write(JsonConvert.SerializeObject(wrapper));
context.Response.Write(“”);

3 - Through a msgbox in Jquery to use in other system screens:

wucMsgBox MsgBox = new wucMsgBox();
((wucMsgBox)MsgBox).AddMessage(ex.Message, wucMsgBox.enmMessageType.Info, wucMsgBox.enmMessageButtons.OK, true, “Agendar”);

4 -
context.Response.ContentType = “text/xml”;
context.Response.Write(new AjaxSaveResponse(action).ToString());

5 -
context.Response.ContentType = “text/html”;
context.Response.Write(“Error:” + ex.Message);
context.Response.End();

In none of the above modes, it was possible to display the message in the Calendar screen.

Thanks…

Hello,
the expected procedure for showing message is following:

  1. Assign a message to the response object
    C#:

context.Response.ContentType = "text/xml"; var resp = new AjaxSaveResponse(action); resp.Message = "some text"; context.Response.Write(resp.ToString());
2) Catch the response on the client-side and display a message
JS:[code]scheduler.dataProcessor.attachEvent(“onAfterUpdate”, function (sid, action, tid, tag) {
var text = (tag.text || tag.textContent);//retrieve a Message set on server

if(text){
	dhtmlx.message(text);
}

});[/code]