Dear all,
I'm using this JSON Code for my monthly calendar:
class Event {}
$events = array();
foreach($result as $row) {
  $e = new Event();
  $e->id = $row['plan_id'];
  $e->text = $row['text'];
  $e->start = $row['plan_datum'];
  $e->end = $row['plan_datum'];
  $e->backColor = $row['plan_status_color'];
  $events[] = $e;
}
Works fine.
But how can I add tag parameters like URL in this query?
The static HTML works fine with this:
	var e = new DayPilot.Event({
		text:{'text}',
		start: '{plan_datum}',
		end: '{plan_datum}',
		id: '{plan_id}',
		backColor: '{plan_status_color}',
		tags: {
			url: 'planung.php?id={plan_id}',
		}
	});
    dp.events.add(e);
I need this tag for onEventClicked:
dp.onEventClicked = function(args) {
		window.location.href = args.e.tag("url"); 
};
Many thanks in advise,
Martin