Coder Social home page Coder Social logo

Comments (12)

Bennett-Seth avatar Bennett-Seth commented on August 15, 2024 1

Eureka! That did it :) Thanks! Looks great now.

from calendar-javascript-lib.

sbennett08 avatar sbennett08 commented on August 15, 2024

working_event
not_working_event

Here's a image of the working events, as well as the ones that aren't printing.

from calendar-javascript-lib.

nizarmah avatar nizarmah commented on August 15, 2024

Oh my! I will look into this during the weekend @sbennett08 🙁 I'm really sorry about that, but I have some work to do during the week.

The issue is probably the format of the JSON,
So here's the format that you should use

var data = {                                  // dictionary
    year: {                                      // dictionary
        month: {                               // dictionary
            day: [                               // array
                // add here as many Event objects as you like
            ]
        }
    }
}

And the event object is:

{
    startTime: "00:00",
    endTime: "24:00",
    text: "Christmas Day"
}

Send me your JSON output, if you can and I'll point out what's wrong exactly with it 👍 Again sorry for the quick response, I'll give a more detailed one in the weekend.

from calendar-javascript-lib.

sbennett08 avatar sbennett08 commented on August 15, 2024

from calendar-javascript-lib.

sbennett08 avatar sbennett08 commented on August 15, 2024

from calendar-javascript-lib.

nizarmah avatar nizarmah commented on August 15, 2024

Hey @sbennett08 😄 Were you referring to any screenshots, because they aren't visible on my end 🙁

By the way, I should be able to help with this issue during the week this time 🙂 I'm pretty sure it is a JSON issue, though. Here's why

Here's clearer idea of the format of the "data" variable for the calendar.

2020:
7:
02: [{…}]
07: Array(4)
0: {startTime: " 20:11:00", endTime: " 16:11:00", text: "123"}
1: {startTime: " 20:05:00", endTime: " 20:05:00", text: "Event for DEV TEST"}
2: {startTime: " 11:36:00", endTime: " 12:36:00", text: "TEST PRIVATE TICKET"}
3: {startTime: " 11:32:00", endTime: " 11:32:00", text: "TEST EVENT"}

Alright, so regarding 0, 1, 2, and 3, those need to be an array of objects too, even if there's a single object in the array.

If you have any screenshots of the actual dictionary, it might be more helpful 🙂

from calendar-javascript-lib.

sbennett08 avatar sbennett08 commented on August 15, 2024

from calendar-javascript-lib.

nizarmah avatar nizarmah commented on August 15, 2024

@sbennett08 I don't see them :( No need for a youtube video, can you send them through the GitHub UI instead of through email replies? Maybe that's the reason they aren't showing up on the ticket 🤔

from calendar-javascript-lib.

sbennett08 avatar sbennett08 commented on August 15, 2024

overview_record
second_overview_record
working_record
failing_record

Can you see these?

from calendar-javascript-lib.

sbennett08 avatar sbennett08 commented on August 15, 2024

From these examples, the date: 7/07 is the one that's not printing. That's the last image. The third one is printing. The other two are to provide a wider view of what the whole object looks like.

from calendar-javascript-lib.

nizarmah avatar nizarmah commented on August 15, 2024

Sorry for the really late reply. And there's no error at all in the console? That's weird...

It might be related to the day being 07 and not just 7. That's the only thing I have in mind. Because I bombarded this codepen example (https://codepen.io/nizarmah/pen/LkjjWV) with more than 1000 dummy data and I couldn't recreate the error.

So, it is most likely the 07. It probably should be 7 instead. Please try it and let me know @sbennett08 .

from calendar-javascript-lib.

nizarmah avatar nizarmah commented on August 15, 2024

I'm glad :) Sorry again for the delayed response. If there's anything else, please let me know 👍

from calendar-javascript-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.