DateBocks is a pure JavaScript library using DHTML and advanced date
parsing to
generate the date based on the grammar passed. The purpose of DateBocks
is to
simplify the date entering process using common terms we are all
familiar with.
This version fixes a number of bugs which arose due to the incredible
support on various mailing lists. I had tested it in a few browsers,
but with the extensive depth of variations in browsers/os’s, I
recieved extensive feedback which is why this release has been
announced so soon after the last major upgrade. My apologies for not
doing sufficient testing on the previous version. Will be sure not to
let it happen again
This time around I have tested it in the following configurations:
Windows XP Firefox 1.0
Windows XP Firefox 1.5
Windows XP Opera 9.1
Windows XP IE6
Mac OSX 10.4 FireFox 1.5
Mac OSX 10.4 Safari 2.0.3
If you find that your configuration doesn’t work, please submit a
ticket to http://dev.toolbocks.com with the error message and the
versions of your browser and operating system.
This version fixes a number of bugs which arose due to the incredible
support on various mailing lists. I had tested it in a few browsers,
but with the extensive depth of variations in browsers/os’s, I
recieved extensive feedback which is why this release has been
announced so soon after the last major upgrade. My apologies for not
doing sufficient testing on the previous version. Will be sure not to
let it happen again
Most excellent! Both my friend and I were very excited to use this and
it worked for both of us, but we were concerned that it wouldn’t work
all the time. I’m very happy to hear that you are committed to it
working on all platforms and that you work so quickly to fix any
problems.
This is by far the best calendar/date-picker either of us has even seen.
Great job!
DateBocks works really well. I did find one deficiency however - I typed
“year of the pig” and instead of populating the correct year it says
something silly like ‘invalid date string’
jokes aside, it’s a great control. Any plans for a TimeBocks?
Thanks for a great engine, Nathaniel! But I had 2 issues when trying
to use it, one major and one minor issue…
Minor issue: the documentation says…
Add “Engine.start :datebocks” to the end of ./config/environment.rb
… but should read “Engines.start :datebocks” (ie. small type, should
be “Engines” instead of “Engine”)
Major issue: the documentation also says…
Restart your webserver of choice
That worked fine for WebRICK, but when I tried to deploy my application
in Apache/CGI, I get the following error message, eventhough I added
the required “includes” it both ApplicationController and the
ApplicationHelper:
undefined method `datebocks_field’ for #<#Class:0xb7848f6c:0xb7848f44>
Any ideas what might be going on? Weird that it works when I run my
app from WebRICK, but throws an exception when I run it from Apache?!?
This time around I have tested it in the following configurations:
versions of your browser and operating system. www.servalsystems.co.uk
Kind regards,
–
“Nothing will ever be attempted, if all
possible objections must first be
overcome.” - Samuel Johnson
“Luck is what happens when
preparation meets opportunity.” - Seneca
I’m deploying my app with Capistrano. Datebocks works beautifully on my
local machine, but when I send it to the server it looks as if the
engine_files (css/js) aren’t even being copied over into the public
directory.
Have you run into this before? Any ideas what’s going on?
I’m deploying my app with Capistrano. Datebocks works beautifully on my
local machine, but when I send it to the server it looks as if the
engine_files (css/js) aren’t even being copied over into the public
directory.
I’ve done lots of work with engines (see Substruct
So, I already tried that. Looks as if engine_files isn’t even being
created
in my site/current/public directory upon a deploy - which is really
strange.
I guess I should hit up the engines mailing list to see what’s up.
I especially like the wikipedia common date expressions for #18.
Hehe, the first thing I tried was “4 score and 7 years ago” The next
thing I tried was “in a fortnight”. Looks like the Wikipedia entry
covers them all (and more–I’ve never heard of a lustrum).
But one that may actually be useful that also didn’t work:
“a week from Friday”
As Francois mentioned, it is really a case of two things.
First would be that the Engines.start :datebocks isn’t being called.
If you have substruct, simply add a comma and put another symbol after
:datebocks.
Seeing as it is working locally, this doesn’t sound like it would be it
though.
Second would be the permissions on the engines_files directory. That
needs to be +rw by the same person who starts the web server. If that
is the case, and you can verify that the css/js files are indeed being
copied over, then it’s to do with the web server user not being able
to access the files.