DateBocks 2.0.1 - Bugfix Edition

About DateBocks

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.

http://datebocks.inimit.com


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 :slight_smile:

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.


Kind regards,

Nathaniel B.

Inimit Innovations Inc.
http://inimit.com

Nathaniel B. schrieb:

http://datebocks.inimit.com

ticket to http://dev.toolbocks.com with the error message and the
versions of your browser and operating system.

No Bugreport, but:
Formerly it did not worked with Firefox 1.5 on Windows 2k. This version
now works and is looking really nice!
Good work,

Gregor

Nathaniel B. wrote:

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 :slight_smile:

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!

Hey Hammed,

Didn’t consider that match before :slight_smile:

TimeBocks is on it’s way, along with a combined DateTimeBocks.

-NSHB

On 8/23/06, Hammed M. [email protected] wrote:

DateBocks is a pure JavaScript library using DHTML and advanced date
This version fixes a number of bugs which arose due to the incredible

  • Windows XP Firefox 1.5
    Kind regards,


Kind regards,

Nathaniel B.

Inimit Innovations Inc.
http://inimit.com

Hi, i think it’s pretty cool, but one thing that I’d like to do that it
doesn’t: “3 days ago” “2 weeks time” etc.

Nathaniel B. wrote:

  • Windows XP Firefox 1.0

Jeremy W.
Serval Systems Ltd.

www.servalsystems.co.uk http://www.servalsystems.co.uk
Tel: 01342 331940
Fax: 01342 331950

Hey Jeremy,

Just added two new feature request tickets based on your
recommendations.

http://dev.toolbocks.com/tickets/14
http://dev.toolbocks.com/tickets/15

Thanks for the feedback.

-NSHB

On 8/23/06, Jeremy W. [email protected] wrote:

to
support on various mailing lists. I had tested it in a few browsers,

  • Windows XP Opera 9.1


Kind regards,

Nathaniel B.

Inimit Innovations Inc.
http://inimit.com

Nathaniel,

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’ :slight_smile:

jokes aside, it’s a great control. Any plans for a TimeBocks?

Cheers

Hammed

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?!?

Thanks very much in advance,

Peter V.

Hey Peter,

Added the bug for the “Engines.start :datebocks”

http://dev.toolbocks.com/tickets/19

For the helper, my guess is you haven’t added the required line to
your application_helper.rb file…

module ApplicationHelper
include DatebocksEngine
end

There is a demo application I made which has DateBocks running which I
use on http://datebocks.inimit.com at

http://svn.toolbocks.com/demos/datebocks_engine/

With Apache, you likely have to restart the FCGI process you have
running. For some reason you may need a stop/start.

-NSHB

On 8/24/06, [email protected] [email protected]
wrote:


support on various mailing lists. I had tested it in a few browsers,

  • Windows XP Opera 9.1

Nathaniel B.

Inimit Innovations Inc.
http://inimit.com


Kind regards,

Nathaniel B.

Inimit Innovations Inc.
http://inimit.com

Hi Nathaniel:

I’ve added tickets 16-18.
I especially like 16 “once in a blue moon”

Just adding common date expressions.

Thanks for the plugin,
– Tom.

On 8/23/06, Nathaniel B. [email protected] wrote:

-NSHB



Tel: 01342 331940

Nathaniel B.

Inimit Innovations Inc.
http://inimit.com


“Nothing will ever be attempted, if all
possible objections must first be
overcome.” - Samuel Johnson

“Luck is what happens when
preparation meets opportunity.” - Seneca

Thanks for adding the tickets.

I especially like the wikipedia common date expressions for #18.

-NSHB

On 8/24/06, Tom J. [email protected] wrote:

About DateBocks

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


Kind regards,

Nathaniel B.

Inimit Innovations Inc.
http://inimit.com

there’s a typo in your install instructions, it should be
“Engines.start :datebocks”, you’re missing a frustrating s!

Nathaniel B. wrote:

  • Windows XP Firefox 1.0

Jeremy W.
Serval Systems Ltd.

www.servalsystems.co.uk http://www.servalsystems.co.uk
Tel: 01342 331940
Fax: 01342 331950

Hey Jeremy,

Thanks for the heads-up.

Someone pointed that out, and I submitted a bug report.

http://dev.toolbocks.com/tickets/19

-NSHB

On 8/25/06, Jeremy W. [email protected] wrote:

to
support on various mailing lists. I had tested it in a few browsers,

  • Windows XP Opera 9.1


Kind regards,

Nathaniel B.

Inimit Innovations Inc.
http://inimit.com

Nathaniel,

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?

On 8/25/06, Nathaniel B. [email protected] wrote:

-NSHB


let it happen again :slight_smile:
If you find that your configuration doesn’t work, please submit a
Jeremy W.


seth at subimage interactive
http://www.subimage.com/sublog/

Hi !

2006/9/1, subimage interactive [email protected]:

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.

Can you request the files from your browser ?
http://app.com/engine_files/datebocks_engine/stylesheets/engine.css

Or whatever ? What about permissions ? You can confirm that you have
Engines.start in environment.rb ?

Have you run into this before? Any ideas what’s going on?

Nope. Works beautifully here.

Bye !

François Beausoleil
http://blog.teksol.info/
http://piston.rubyforge.org/

Francois,

I’ve done lots of work with engines (see Substruct :slight_smile:

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.

On 9/1/06, Francois B. [email protected] wrote:

http://app.com/engine_files/datebocks_engine/stylesheets/engine.css
François Beausoleil
http://blog.teksol.info/
http://piston.rubyforge.org/


seth at subimage interactive
http://www.subimage.com/sublog/

I especially like the wikipedia common date expressions for #18.

Hehe, the first thing I tried was “4 score and 7 years ago” :slight_smile: 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”

  • Mark.

Nathaniel,

is there any config parameter to change the default date format from
YYYY - MM -DD to MM/DD/YYYY?

Rafael

On 8/21/06, Nathaniel B. [email protected] wrote:



Kind regards,

Nathaniel B.

Inimit Innovations Inc.
http://inimit.com


http://www.bdcsoftware.com" - Automotive CRM

Hey Seth,

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.

-NSHB

On 9/1/06, subimage interactive [email protected] wrote:

On 8/25/06, Nathaniel B. [email protected] wrote:
-NSHB


www.servalsystems.co.uk


Nathaniel Steven Henry Brown

Open Source Insight - http://nshb.net
Open Source Development - http://inimit.com
Open Source Training - http://osevents.com

Nathaniel, I wrote Substruct :slight_smile:

Yeah - stupid me it’s a permissions problem. Good looking out.

On 9/1/06, Nathaniel B. [email protected] wrote:

About DateBocks
with.
doing sufficient testing on the previous version. Will be sure not to

Open Source Insight - http://nshb.net
Open Source Development - http://inimit.com
Open Source Training - http://osevents.com


seth at subimage interactive
http://www.subimage.com/sublog/