CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • DatePicker JS isn't working
Pages: [1]

Author Topic: DatePicker JS isn't working  (Read 1532 times)

jubex

  • Guest
DatePicker JS isn't working
December 08, 2009, 02:34:53 pm
I moved my CiviCRM installation to a new domain, but left the database in the same place. Now, it seems, the datepicker js isn't working at all. Hovering over the calendar icon and clicking elicit no response whatsoever.

I have a profile set up on a second drupal site, the datepicker doesn't work on either site: the drupal site with Civicrm or the site with just the profile.

Other js seems to work in CiviCRM (auto complete, etc.)

I know next to nothing about js, and I'm very frustrated. A lot of birthdates from my prospects are coming in odd (Jul 31 1902, etc.). Please help!

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: DatePicker JS isn't working
December 08, 2009, 11:51:34 pm
can u make sure resource urls are pointing to correct domain.

related url to access resource url setting is here : http://drupal.demo.civicrm.org/civicrm/admin/setting/url?reset=1

kiran
You Are Designed To Choose... Defined By Choice.

jubex

  • Guest
Re: DatePicker JS isn't working
December 09, 2009, 06:29:33 am
Thanks for the reply, kiran.

The Resource URLs are set up correctly, and there are no error messages whatsoever. It seems that other javascript and resources are working just fine (assuming that the auto-complete features are JS as well).

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: DatePicker JS isn't working
December 09, 2009, 07:39:24 am
Can you replicate it on http://drupal.demo.civicrm.org.

Kurund
Found this reply helpful? Support CiviCRM

jubex

  • Guest
Re: DatePicker JS isn't working
December 09, 2009, 08:20:01 am
I can't, Kurund. I believe that it may have had something to do with moving the installation (although the resource URLs are setup correctly and nothing else is apparently "broken").

The datepicker doesn't work in my CiviCRM installation as well as in any pages I insert a profile snippet. Could it have something to do with the js files not being loaded or not being loaded properly? If so, how can I troubleshoot.

If you'd like to see an example: https://maculele.org/decatur/try-a-free-capoeira-class. Behavior inside of the CiviCRM forms (e.g., contact's demographic data) are the same: No response.

When I view source for the contact form on my site, I have a few lines that reference the js:
Code: [Select]
<script type="text/javascript" src="/sites/maculele.org/modules/civicrm/packages/jquery/plugins/jquery.toolTip.js"></script>
 
<style type="text/css">@import url(/sites/maculele.org/modules/civicrm/css/skins/aqua/theme.css);</style>
<script type="text/javascript" src="/sites/maculele.org/modules/civicrm/js/calendar.js"></script>
<script type="text/javascript" src="/sites/maculele.org/modules/civicrm/js/lang/calendar-lang.php?en_US"></script>
<script type="text/javascript" src="/sites/maculele.org/modules/civicrm/js/calendar-setup.js"></script>
 
<script type="text/javascript">var cj = jQuery.noConflict(); $ = cj;</script>

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: DatePicker JS isn't working
December 09, 2009, 08:28:48 am
So have you embed profile html inside drupal node?
There was a bug with calendar in HTML snippet: http://issues.civicrm.org/jira/browse/CRM-5390

This fix will be part CiviCRM v3.0.3 release in 1 or 2 days

Kurund
Found this reply helpful? Support CiviCRM

jubex

  • Guest
Re: DatePicker JS isn't working
December 09, 2009, 09:00:51 am
Yes, I've embedded the profile in a node which worked before I moved the installation and upgraded to CiviCRM 3.0 (I did both around the same time  :-\ )

I look forward to the release. Will this also fix the issue inside of the CiviCRM forms (e.g. at a URL such as http://<site>/civicrm/contact/add?reset=1&action=update&cid=1)?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • DatePicker JS isn't working

This forum was archived on 2017-11-26.