Problem with Busy Plugin

Good evening from Gran Canaria.

I have just downloaded the busy plugin and started to play with it.

Seems to work fine, the process is executed without problems but just before the grey shadow is off I see a Servoy message Error Calling Server. Checking the server log I have this:

[attachment=0]busypluginError.jpg[/attachment]

I forgot to mention is WebClient.

This is the code to start the busy plugin:

function cmdOK_onAction(event) {
	var params = {
		processFunction: saveAppointment,
		message: i18n.getI18NMessage('calendar.text.saving_appointment'),
		opacity: 0.5,
		paneColor: '#000000',
		showCancelButton: false,
		dialogName: controller.getWindow().getName()
	};
	plugins.busy.block(params);
}

And this is the saveAppointment method (part):

function saveAppointment(event) {
	try {

		if (_subject && _appt_typeid && _start_time && _end_time) {
          // Code here that saves the appointment, too long to show but it works fine without the busy plugin
      }
	} catch (e) {
		application.output("catched exception");
		application.output(e);
	} finally {
		plugins.busy.unblock();
	}
}

Environment Servoy 6.0.4, Win7 and Chrome

If I’m not mistaken, you have to use the prepare function of the busy plugin in web-client.

Hope this helps,

Thanks Jeroen. Sorry I did not post the solution before. It was my fault, I had commented the prepare function because I was testing other things and I forgot to uncomment them.