Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tried to Upgrade to Responsive and jQuery Error #26

Closed
KoniKodes opened this issue Aug 31, 2017 · 10 comments
Closed

Tried to Upgrade to Responsive and jQuery Error #26

KoniKodes opened this issue Aug 31, 2017 · 10 comments

Comments

@KoniKodes
Copy link

Hi,
I tried to use the upgrade for responsive and I am not sure what I did wrong, but this is the error:
jquery.min.js:2 Uncaught TypeError: Cannot use 'in' operator to search for 'length' in New Year's Eve
Have a Safe and Happy New Year's Eve!

at s (jquery.min.js:2)
at Function.each (jquery.min.js:2)
at String. (jquery.calendario.js:121)
at Function.each (jquery.min.js:2)
at Calendario.processCaldata (jquery.calendario.js:120)
at Calendario.init (jquery.calendario.js:48)
at new Calendario (jquery.calendario.js:9)
at HTMLDivElement. (jquery.calendario.js:405)
at Function.each (jquery.min.js:2)
at n.fn.init.each (jquery.min.js:2)

Right now all I have a blank page. Your help is greatly appreciated.

@KoniKodes
Copy link
Author

I am still having this error. Can someone help me please?

@deviprsd
Copy link
Collaborator

I have to look at your event data to help you out.

@KoniKodes
Copy link
Author

KoniKodes commented Sep 27, 2017 via email

@deviprsd
Copy link
Collaborator

deviprsd commented Oct 3, 2017

Paste it here.

@KoniKodes
Copy link
Author

KoniKodes commented Oct 4, 2017

hi-data.zip

@KoniKodes
Copy link
Author

KoniKodes commented Oct 4, 2017

Thank you.
Did not mean to close. It is still an issue.
I appreciate your help.

@KoniKodes KoniKodes reopened this Oct 4, 2017
@deviprsd
Copy link
Collaborator

Can you try to follow this format for your events as shown here, https://github.com/CalendarioFX/Calendario/blob/master/js/data.js. Then let me know if it works on not.

@KoniKodes
Copy link
Author

I found the script name changed from src="js/calendario.min.js to src="js/jquery.calendario.min.js. When I fixed my html to reflect that, I received this message:

~prev-hi-cal.html.htm:1 Refused to execute script from 'https://raw.githubusercontent.com/codrops/Calendario/master/js/update.js?_=1508696607847' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

@deviprsd
Copy link
Collaborator

When you are initializing the calendar, add checkUpdate and set it to false. Like how it is shown here https://github.com/CalendarioFX/Calendario/blob/61bfbc0d53087b00de49586bfd64ce9f26a6336e/index.html#L71

@KoniKodes
Copy link
Author

This is perfect! Thank you so much!
You can see my calendar here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants