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

Backend Database

Asked by MJ
6 years ago.

I am trying to get DayPilot to retrieve data from a back end database and trying to follow the examples (which use jquery). At the back end the pages are ASP as I have no experience of PHP. Please could you provide the format of the data returned by backend_events.php as no matter what I try the local javascript just does not work after the call to = data;.

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

The format of the array items is described here:

See also the following tutorial, it includes PHP and ASP.NET MVC versions of the project:

Comment posted by MJ2
6 years ago.

I use classic ASP not .NET so the examples are not so useful. Most useful would be an example of exactly what should be returned by the back end ASP page for the to work?

Comment posted by Dan Letecky [DayPilot]
6 years ago.

It should look like this:

    "text":"Calendar Event 5",
    "text":"Calendar Event 6",
    "text":"Calendar Event 7",

That is, an array of event data objects in JSON format. The following event data object properties are required:

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