Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8116945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:59:27+00:00 2026-06-06T03:59:27+00:00

I am using jQuery fullcalendar plugin , I have tried altering this many different

  • 0

I am using jQuery fullcalendar plugin , I have tried altering this many different ways from answers to other questions with no luck, here is my jQuery:

         $(document).ready(function () {

    var date = new Date();
    var d = date.getDate();
    var m = date.getMonth();
    var y = date.getFullYear();

    $('#calendar').fullCalendar({
        theme: true,

        aspectRatio: 3,
        height: 1000,
        header: {
            left: 'prev,next today',
            center: 'title',
            right: 'month,agendaWeek,agendaDay'
        },
        editable: true,
        events: function (start, end, callback) {
            $.ajax({
                type: "POST",
                url: "Default.aspx/GetEvents",
                data: "{'userID':" + "'B473795D-306A-4718-804B-2813884D5B48'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (doc) {
                    var events = [];
                    var obj = $.parseJSON(doc.d);
                   var res = unescape(obj);
                    $(res).find('event').each(function () {
                        events.push({
                            title: $(this).attr('title'),
                            start: $(this).attr('start') // will be parsed
                        });
                    });
                    callback(events);
                }
            });
        }
    });
});

Here is my response :

  {"d":"[{ \"title\"  : \"circleJerk\", \"start\"  : \"2012-06-22\" }, { \"title\"  : \"BangTheWife\", \"start\"  : \"2012-06-15\" , \"end\" : \"2012-06-23\" } ]"}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:59:28+00:00Added an answer on June 6, 2026 at 3:59 am

    Your return type from your method GetEvents is string isn’t it?

    Try returning a List<Event> (or whatever your object is called) and then you don’t need to go through the mess of unescaping a JSON string.

    $.ajax({
        type: "POST",
        url: "Default.aspx/GetEvents", //return type List<Event>
        data: "{'userID':" + "'B473795D-306A-4718-804B-2813884D5B48'}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (doc) {
            //doc.d = [Event,Event,Event] (no processing needed)
            callback(events);
        }
    });
    

    In response to your comment, a method with return type of List<> will look like :

    [{"title": "sometitle", "start": "yourData"},{"title":"someTitle2", "start":"yourStart2"}]
    

    Translating ASP.NET ASMX webmethod DateTime serialization to JavaScript Date object:

    DateFromASPNET = function (sNetDate) {
        if (sNetDate == null) return;
        var r = /\/Date\(([0-9]+)\)\//i
        var matches = sNetDate.match(r);
        if (matches.length == 2) {
            return new Date(parseInt(matches[1]));
        }
        else {
            return sNetDate;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have embedded the fullcalendar jquery control by using this code: $(document).ready(function() { var
im using fullcalendar jquery plugin in my web. i have a problem in which
I'm currently using the jQuery fullcalendar plugin but I've came across an issue regarding
I am using jquery fullcalendar and it works great. My events come in from
I am using jquery fullcalendar which works great. The one issue I have is
I am using the jQuery Fullcalendar plugin (http://arshaw.com/fullcalendar). I am only using it for
Inside my app I'm using a jQuery plugin, FullCalendar - it is a jQuery
The jQuery fullCalendar plugin seems to have a problem in the editable mode in
I am using Jquery UI Dialog box with FullCalendar plugin. My problem is UI
Hello I'm using the fullcalendar jQuery plugin to create a calendar app. When I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.