DMXzone Server Connect Support Product Page

Answered

Server Connect Source as JSON feed for Full Calendar?

Asked 02 May 2016 20:17:02
1
has this question
02 May 2016 20:17:02 Dave Smith posted:
Good evening DMX Zone,
I am going to be very cheeky and ask if you can help me with something...

I would like to use DMX Server Connect Sources to feed JSON to Full Calendar but I just can't get it to work. I know you offer no support for Full Calendar but I can imagine this would be an amazing selling point....

If you have five minutes spare in your busy day to help me out I would more then appreciate it. I am sure you would find it very simple to find a work-around where as it has taken me all day to build up the courage to ask you for help.

I understand if you can not help but thought I would ask....



Thank you in advance!

Replies

Replied 03 May 2016 07:59:23
03 May 2016 07:59:23 Teodor Kuduschiev replied:
Hello Dave,
Unfortunately Server Connect does not support outputting a JSON file.
Replied 03 May 2016 10:08:03
03 May 2016 10:08:03 Dave Smith replied:
Good morning Teodor,
Thanks for clearing that up.

Could I ask that this option be considered? It would be extremely useful for numerous purposes.

Best regards.
Replied 20 Jul 2016 20:13:00
20 Jul 2016 20:13:00 Mim UK replied:
Hi Dave,
Not sure if this helps. but I've had success in populating fullcalendar using DMXZone Server Connect
If you create a Server Connection and a Database Query called "events".
Select and output the 3 fields with the name, start and end date/times and give them an Alias of "title", "start", "end"

You can then call your dmx asp/php page using the following in your fullcalendar page.

<script>
$(function(){
$.getJSON( "dmxConnect/api/yourserveraction.asp", function( data ) {
    $('#calendar').fullCalendar({
     events: data.events
    }); 
});
});
</script>


Hope this points you in the right direction.

Reply to this topic