Category Covered

Jquery Full Calender not working on internet explorer

Hello, Last few hours i was trying to solve an issue on jquery full calender. Every where it was working but when i went to test internet explorer i was thundered because it was not working.

So try to figure out. I Saw some error like that

 

Line: 220
Char: 15
Error: Expected identifier, string or number
Code: 0

Finally i got the issue why its not working on internet explorer. Its for a comman(,). As i made it dynamic so there was a extra comman at the end of array.

  {
            title: 'Clackable',
            start: new Date(y, 11, 27),
            end: new Date(y, 11, 29),
            url: 'http://solutions4all.info/'
        },
        {
            title: 'Clackable',
            start: new Date(y, 12, 27),
            end: new Date(y, 12, 29),
            url: 'http://solutions4all.info/'
        },
        {
            title: 'arafat',
            start: new Date(y, 10, 30),
            end: new Date(y, 10, 31),
            url: 'http://solutions4all.info/'
        }, //THIS IS THE LAST COMMA WHICH NEEDS TO BE REMOVE
        ]

 

Now its working great on Internet explorer.

 

One easy solutions if you dont have enough time to remove the last comma:

{
            title: 'Clackable',
            start: new Date(y, 11, 27),
            end: new Date(y, 11, 29),
            url: 'http://solutions4all.info/'
        },
        {
            title: 'Clackable',
            start: new Date(y, 12, 27),
            end: new Date(y, 12, 29),
            url: 'http://solutions4all.info/'
        },
        {
            title: 'arafat',
            start: new Date(y, 10, 30),
            end: new Date(y, 10, 31),
            url: 'http://solutions4all.info/'
        }, {} //After your loop add simple empty curly bracess
        ]