Re: Need Help With Datebock plugin

dlo
Thu, 29 Mar 2007 00:35:18 -0000

Nathaniel,

Ok, I don''t have a URL but I''m willing to send you my project
over.
Please email me at spankdan-/E1597aS9LQAvxtiuMwx3w@public.gmane.org  But
checking the error console I
get this error:

Error:  DatetimeToolbocks is not defined
Source file http://localhost:3000/table_rate/create Line 153

I click on the error and it brings me to,


        new DatetimeToolbocks({
          elementId: ''DatetimeToolbocksTableRateStartDate'',
          inputName: ''table_rate[start_date]'',
          inputValue: '''',
          showHelp: true,
          format: ''yyyy-mm-dd'',
          autoRollOver: true,
          calendarOptions: {align:"Br"}
        });


where new DatetimeToolbocks is highlighted.

The line in my code is like this.

<%= toolbocks_date_select ''table_rate'',
''start_date'' %>

Hope to hear from you soon Nathaniel and yes I can see the control on
your page.

dlo

Nathaniel Brown wrote:
> Very strange. Does it at least work when you visit
> http://datetime.toolbocks.com ?
>
> You might have to restart your server if you didn''t already do so.
You
> ma have old javascript old in your public dir which gets updated on
> restart.
>
> Also, if you have a URL I can check out, I wouldn''t mind seeing it
for
> myself. There should be a javascript error that appears. If you can
> paste that in here, would definaely help track down the reason why
> it''s not working for you.
>
> Nathaniel.



--
Posted via http://www.ruby-forum.com/.