CalendarView Action

I put together a quick Action to apply the http://calendarview.org
calendar picker to a Freeway form field. Version 0.1 is posted to
ActionsForge if you want to try it out. I’d be interested if anyone
tries it in conjunction with other Prototype goodies, I need to know
if it plays well with others…

Thanks,

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,
Thank you very much for writing this action.

Just wanted to know which part of the script or line number can I change the date format that is “inserted into the date field”?

Instead of the year+month+day and me being on the opposite side of the equator, I would not mind the opposite so… day+month+year. Many thanks again.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I had a look, and it is configurable. I’ll add a text field for it to
the Action and release a new one. Basically there’s a parameter that
you set like this: %Y-%m-%d.

Walter

On Dec 18, 2008, at 7:13 AM, Pete wrote:

Hi Walter,
Thank you very much for writing this action.

Just wanted to know which part of the script or line number can I
change the date format that is “inserted into the date field”?

Instead of the year+month+day and me being on the opposite side of
the equator, I would not mind the opposite so… day+month+year.
Many thanks again.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Also, is there a way to modify the calendar display so that the month only shows the actual number of days instead of showing the numbers from previous/next month?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Okay, version 0.2 is posted, with the new date format loveliness. Be
sure to read the documentation for the acceptable formatting tokens.
(It’s a variant of the cryptic C date formatting, but not exactly the
same and not as full-featured.)

Walter

On Dec 18, 2008, at 9:48 AM, Walter Lee Davis wrote:

I had a look, and it is configurable. I’ll add a text field for it
to the Action and release a new one. Basically there’s a parameter
that you set like this: %Y-%m-%d.

Walter

On Dec 18, 2008, at 7:13 AM, Pete wrote:

Hi Walter,
Thank you very much for writing this action.

Just wanted to know which part of the script or line number can I
change the date format that is “inserted into the date field”?

Instead of the year+month+day and me being on the opposite side of
the equator, I would not mind the opposite so… day+month+year.
Many thanks again.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The calendar is not configurable in that manner, but you do realize
that it’s a full calendar, and it runs from one month into the next,
and you can navigate outside of the current month, right?

I suppose if you really wanted to be sneaky, you could make an inline
style in the before /head part of your page that set the class
otherDay to visibility:hidden. That might do the trick.

Walter

On Dec 18, 2008, at 11:57 AM, chuckamuck wrote:

Also, is there a way to modify the calendar display so that the
month only shows the actual number of days instead of showing the
numbers from previous/next month?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The calendar is not configurable in that manner, but you do realize
that it’s a full calendar, and it runs from one month into the next,
and you can navigate outside of the current month, right?

That’s unfortunate. It is not a normal view of a calendar and will put some people off. The extra CSS would be necessary in my opinion.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Of course, the moment I type this, I started looking in the CSS, and
it is supposed to look “disabled”, but doesn’t because the CSS wasn’t
specific enough. (Thank you, Xyle scope!)

I’ll post a revised 0.21 in a minute, but the exact rule you need to
add in order to hide these fields would be

div.calendar tr.days td.otherDay { visibility: hidden; }

Walter

On Dec 18, 2008, at 12:06 PM, Walter Lee Davis wrote:

The calendar is not configurable in that manner, but you do realize
that it’s a full calendar, and it runs from one month into the next,
and you can navigate outside of the current month, right?

I suppose if you really wanted to be sneaky, you could make an
inline style in the before /head part of your page that set the
class otherDay to visibility:hidden. That might do the trick.

Walter

On Dec 18, 2008, at 11:57 AM, chuckamuck wrote:

Also, is there a way to modify the calendar display so that the
month only shows the actual number of days instead of showing the
numbers from previous/next month?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry, please define “normal” here. Compared to what well-known
product? I have had a calendar that looked like this one since I could
read one, which is a rather shocking number of years ago.

Walter

On Dec 18, 2008, at 12:09 PM, chuckamuck wrote:

t is not a normal view of a calendar and will put some people off.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

May I suggest using this Prototype based calendar instead for your action that does display calendar properly?

http://positionabsolute.net/blog/2007/09/javascript-date-chooser.php


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I looked at this in my search for a good candidate for action-izing.
This library is really heavy, lots of configuration, lots of dependent
files, lots of implementation detail that would make the user
interface and the resulting page really chunky. I picked calendarview
because it does less, and works elegantly.

If you would like to hide the out-of-month dates, please do try the
css, I’m confident it will work.

And I still need to know where you buy your calendars, because I’m
convinced they’ve been cheating you out of extra days!

Walter

On Dec 18, 2008, at 12:18 PM, chuckamuck wrote:

May I suggest using this Prototype based calendar instead for your
action that does display calendar properly?

http://positionabsolute.net/blog/2007/09/javascript-date-chooser.php


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks for all your efforts benefiting the Freeway community Walt. I do understand you don’t need any help from me.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hang on, I do need to understand what you need here. In the end I do
have to take my own counsel, but please don’t take my answer the wrong
way.

I do want to be clear here: from your perspective, is there anything
besides the “not displaying the leading and trailing days of a month”
that you particularly like about the DateChooser? Do you need any of
the other bells and whistles that it provides?

Please understand my perspective here as well: I have a limited amount
of time to invest in the community while also supporting (and finding)
my clients. When I look at something with a half-dozen supporting
libraries that need to be loaded in a particular order, and a
considerable configuration facet to get it to do anything, I say
“Pass!” emphatically.

Now if 99% of this library is correct from your POV, can you either a)
live with that 1% that rankles you, or b) paste a line of CSS into
your page?

Thanks, and please don’t go away angry here…

Walter

On Dec 18, 2008, at 12:33 PM, chuckamuck wrote:

Thanks for all your efforts benefiting the Freeway community Walt. I
do understand you don’t need any help from me.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Not to worry, there’s nothing personal here, but I do understand you have to do what you feel is right or worthwhile depending on your circumstances. Without actually looking at the calendar code I suggested, I simply pointed to it for it’s formatting. I am not going to argue merits of that one way or the other.

Truly Walt, your efforts are greatly appreciated by the Freeway community. Not many here would bother with, let alone attempt writing actions. In my case, time (and perhaps inclination) is not on my side, and I want every advantage I can find to make work easier, so by all means keep up your efforts.

As far as the CSS goes, I would rather have it done as part of the action process to change colors, or even font, but if I must I can adjust the styles.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Wow Walter, I think that more than covers every date formatting possibility. Too Good!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I put together a quick Action…

I have said it here before and I will say it again.

Thank you Walter - FW would not be as great to work with if it wasn’t for the effort that you, and a core of others like you, put in here.

Of course every action or script or code that we use on our sites may not be 100% what we would like it to be but what is the alternative? Searching through loads of pages and many sites to find the exact match only to find that it is a pig to implement.

I think that you have produced a very elegant solution for a …quick Action.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter,
I founded very useful your action, which I have adapted to the Italian.

Umberto


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, everybody, and Umberto, if you would like to contribute your Italian version back, please contact me off-list (click my name in any post for contact info) and I’ll add you to the CalendarView project in ActionsForge so you can upload.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Wow! Thanks a lot - indeed I was not successful getting it work properly when we started the topic earlie.
Very happy that you could turn it into an action!!!

Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’ll post a revised 0.21 in a minute,

Walter,

This is a really great action, but I have one problem with it. I can’t
get the Date Text that gets put into the Text Field to upload with the
form. I put default text in the text field and if I hit my submit
button without doing anything, the default text gets passed to my php
page. If I use the calender view to enter text into the text field
then click the submit button, the php Post variable is Null. Further
once the calendar view puts text in the text field, the shadow box
around the text field disappears, like the text field has disappeared?

LLE


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options