CalendarDateSelect Error:

Hello All,

I guess you guys can light me up better than google. I am getting a
pop-up when i introduced full_calendar functionality in my app. The
pop-up message is:-

CalendarDateSelect Error: Prototype could not be found. Please make sure
that your application’s layout includes prototype.js (.g. <%=
javascript_include_tag :defaults %>) before it includes
calendar_date_select.js (.g. <%= calendar_date_select_includes %>).

I know from where it is coming(calendar_date_select.js:4) from but cant
find out why is it coming as my app is already including prototype.js
before calendar_includes(whatever) method. I am stumped. Tried almost
all possible combinations to fetch javascript files.

Thanks in advance.

On 25 April 2011 10:46, Hemant B. [email protected] wrote:

I know from where it is coming(calendar_date_select.js:4) from but cant
find out why is it coming as my app is already including prototype.js
before calendar_includes(whatever) method. I am stumped. Tried almost
all possible combinations to fetch javascript files.

Firstly check by viewing the html source of the page in the browser
(View, Page Source or similar) that prototype.js is definitely
included.

Install Firebug for Firefox and with it enabled on that page check
that it does not throw up any errors.

If still no joy then copy the full html source in the browser (View,
Page Source, mark it and copy) and paste into the w3c html validator
to check for html syntax errors. In fact this is a good thing to do
even if you have fixed the problem, it often throws up errors that
will bite at some point in the future.

Colin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs