On 25 April 2011 10:46, Hemant Bhargava
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:> 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.
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
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.