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 8712939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:13:14+00:00 2026-06-13T05:13:14+00:00

I am trying to set up the JSON Feed for the Adam Shaw jquery

  • 0

I am trying to set up the JSON Feed for the Adam Shaw jquery full calendar, and can get it to work in Chrome, but FireFox/IE. In the later the browsers refuse to render the appointments passed as a JSON string unless they are hardcoded.

I have put a day into this and after trying many JSON derivations I found a code example that works, but could not dynamically replicate it with my data. Finally I figured out that the difference was that code snippet cut and pasted was hard coded.

Fullcalendar seems pretty accomodating of many different types of JSON (array/object) but for some reason IE knows if the PHP string is hard coded or just echoed from a variable. Does something get sent that lets it know what is happening at the server end?

My PHP looks like this (foreach is set to work with Zend db-rowset):

foreach($rowset as $row){
            $apptArray = array();
            $apptArray['title'] = $row -> title; 
            $apptArray['allDay'] = ''; 
            $apptArray['id'] = $row -> appt_id; 
            $apptArray['participants'] = $row -> participants; 
            $apptArray['organizer'] = $row -> organizer; 
            $apptArray['propId'] = $row -> prop_id; 
            $apptArray['reason'] = $row -> reason; 
            $apptArray['start'] = date('Y-m-d  H:i:s', $row -> start); 
            $apptArray['end'] = date('Y-m-d  H:i:s', $row -> end); 
            array_push($jsonArray,$apptArray);

            }
            echo json_encode($jsonArray);

if I just load the JSON feed url in the browser this returns a JSON string that looks like this:

[
{
    "title":"Lunch",
    "allDay":"",
    "id":"9",
    "participants":"456",
    "organizer":"36",
    "propId":"14",
    "reason":"to meet",
    "start":"2012-10-12 11:00:00",
    "end":"2012-10-12 11:30:00"
 },
 {
    "title":"dd",
    "allDay":"",
    "id":"15",
    "participants":"45",
    "organizer":"36",
    "propId":"45",
    "reason":"meet again",
    "start":"2012-10-12 09:00:00",
    "end":"2012-10-12 09:30:00"
 }

]

This is where things get strange. If fullCalendar calls this from my script it will not render any appointments. But if I take the same string above, hardcode it, and just echo the JSON string direct. The string renders just fine. (see below)

echo '[{"title":"Lunch","allDay":"","id":"9","participants":"456","organizer":"36","propId":"14","reason":"to eet","start":"2012-10-12 11:00:00","end":"2012-10-12 11:30:00"},{"title":"dd","allDay":"","id":"15","participants":"45","organizer":"36","propId":"45","reason":"asdf","start":"2012-10-12 11:00:00","end":"2012-10-12 11:30:00"}]';

Could this be that when the JSON display in the browser from my script has been changed in some way? Has anyone come across this elsewhere?

The final bit of relevant code is the fullcalendar set up option:

eventSources:[
                  {
        url: 'http://local/tenant/calendar/apptsfeed',
        type: 'POST',
        success: function(response) {
             alert('this has worked');

        },
        error: function(response) {
            alert('error');

        },
        color: 'yellow',   // a non-ajax option
        textColor: 'black' // a non-ajax option
    }
  • 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-13T05:13:16+00:00Added an answer on June 13, 2026 at 5:13 am

    Okay this took me a long time to figure out.

    However, thought I would pass on what worked for me in case there are any other IE users out there.

    The issue seems to be a date format issue. Basically IE is more sensitive than chrome for some reason.

    I found a reference to the correct format on this link
    http://arshaw.com/fullcalendar/docs/event_data/Event_Object/

    ‘you may specify a string in IETF format (ex: “Wed, 18 Oct 2009 13:00:00 EST”), a string in ISO8601 format (ex: “2009-11-05T13:15:30Z”) or a UNIX timestamp.’

    For what ever reason if I use IS8601 it works just fine in IE9. This basically involved inserting a ‘T’ after the date.

    Hope someone finds this useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to convert json result to set of objects, but i get an
I'm trying to get the main elements to my JSON feed but it won't
I'm trying to set values to enum in my java application....but I can't do
I'm trying to set up a Json Store for an ExtJs Calendar. The store
I am trying to set up indexeddb storage for use in chrome. But am
I'm trying to set some javascript data (json) in my markup by calling a
I'm trying to set up jsTree to dynamically accept JSON data from django. This
I am trying to parse out data from oodle.com api feed using the JSON.NET
I am trying to use Fancybox2 to a set of 20 images but the
This may be more of a scoping question. I'm trying to set a JSON

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.