jsmecham / calendarview Goto Github PK
View Code? Open in Web Editor NEWA lightweight calendar widget for the Prototype JavaScript framework.
Home Page: http://calendarview.org/
A lightweight calendar widget for the Prototype JavaScript framework.
Home Page: http://calendarview.org/
Does not instruct you to use prototype.js which is required, also uses function CalendarView which cannot be found.
Hii Ive just downloaded your plugin i want to disable all past from today's date please help and also how to change date format to dd-mm-yyyy
We germans like the monday for the first Day of the week, so I changed the Arrays for the Daynames and
// Calculate the first day to display (including the previous month)
date.setDate(1)
date.setDate(-(date.getDay()) + 2) <== here was a + 1
What we need is a config-variable (actually I didn't understand how to bring variables into the code) and a connection between the array key and this variable... And we need to bring this variable to the line of code pasted above
To style days in the past and the future, I needed classes for it.
Lines 362++
// Today, past and future
if (date.getFullYear() == thisYear && date.getMonth() == thisMonth && day == thisDay) {
cell.addClassName('today')
} else if (date.getFullYear() >= thisYear && date.getMonth() >= thisMonth && day >= thisDay) {
cell.addClassName('futureDay')
} else {
cell.addClassName('pastDay')
}
Hi. I guess this is more of a patch than an issue.
I downloaded your project, and found that It looked really strange when simply embedded (without the patch). All the navigation buttons where pushed to the left in the parenting tr element. This was fixed by adding this code in my css (it might need a more precise definition to avoid collision):
div.calendar td.button {
display: table-cell;
}
I hope this will help others.
Best regards
Emil
I'm trying to use the closeHandler parameter to run my function after the calendar pop-up closes. When I run it like this:
Calendar.setup(
{
dateField: 'txtDeparture',
triggerElement: 'departureBtn',
closeHandler: 'updateFunc'
}
)
I get this error in Firebug:
this.closeHandler is not a function
http://www.mywebsite.com/js/calendarview.js
Line 495
When I put a watch on that line, I see that "closeHandler" equals my function name but I think there might be a problem in the way I'm setting up that parameter. I can run my function through an onblur event and get the results I expect so I don't think it's my function causing the issue. Any clarification you can provide would be welcome.
Todd McClintic
http://www.mcclinticdesign.com
Currently all the lines in the the main library are not terminated in semi-colon, thus making it's impossible to minify and pack the javascript using asset_packager.
I have a semi-colonized version of the script, but it has several modifications so I can't push it back - yet. Anyhow, I want to bring this issue up for future fix.
First Off: Big fan of the library!
I'm having issues using the calendar view when the input element and/or trigger element are displayed from within a Modalbox.
The only way I was able to get the popup calendar to display is by setting the zIndex on the container to be greater than that of the modalbox from within the showAt method of Calendar. Setting the zIndex solves that portion of the issue.
The other issue seems to be with actually capturing the event when it's triggered. Modalbox has two methods of displaying a modalbox: Ether by displaying a hidden div as it's contents, or by using ajax to pull content for use. In the former, the event is never triggered when I click the input box contained within the modal window. But, if I set the div display to block & click the input outside of the modalwindow it works fine.
Again, thanks for a great library. If you need any further information let me know. I was able to create a workaround by creating a simple method in Calendar which can be called directly to display the calendar popup, which willows me to call the method onClick, rather than adding an event listener after the fact.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.