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

Call Javascript Functions from Code File other than Page Load function

Asked by Anonymous
4 years ago.

I want to call Javascript function, such as alert, from DayPilotScheduler1_OnEventResize() method. How to use it?

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

Please see AfterRenderJavaScript event which is described here:

http://doc.daypilot.org/scheduler/callback-update/

On the server side, pass a custom object to .Update() - it will be available in AfterRenderJavaScript. You can use a serialized JavaScript (which you will run using eval()) or you can send just a flag that a specific code should be executed (recommended).

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