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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • pop-up calendar not working
Pages: [1]

Author Topic: pop-up calendar not working  (Read 1896 times)

mike4miyu

  • Guest
pop-up calendar not working
June 13, 2007, 10:57:43 pm
Hi,

after upgrading to 1.7.9682 the pop-up calendar to select dates stopped working?

any help apreciated.

Mike

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: pop-up calendar not working
June 14, 2007, 07:09:11 am
Mike - Load a screen that has the calendar selector on it (like Edit Contact) and do "view source" from your browser. You should see a line like this near the top:
Code: [Select]
<script type="text/javascript" src="http://demo.civicrm.org/drupal/sites/all/modules/civicrm/js/calendar.js">

Copy the js file url into your browser location bar:
http://demo.civicrm.org/drupal/sites/all/modules/civicrm/js/calendar.js

... and see if that jscript file displays in your browser window. If not, then your Global Settings >> Resource URL is incorrect or perhaps you didn't get the complete codebase for some reason.

(Of course make sure you don't have Javascript disabled in your browser preferences :-) ).

Protect your investment in CiviCRM by  becoming a Member!

mike4miyu

  • Guest
Re: pop-up calendar not working
June 14, 2007, 09:22:10 pm
Yes, the code <script type="text......  does appear near the top of the file.

Yes, copying the url:
http://mydomain.org/sites/all/modules/civicrm/js/calendar.js

does display the jscript file in the browser so resource url setting must be ok.

what are the other possibilities to check for?

I am also get the message "done but with errors on the page" in the browser for all civicrm pages.
the details of the error are: syntax error Line 2, Char 1
I assume this is line 2 char 1 corresponds to line 2 char 1 of "view source"
in which case there is an error with the doc type code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Am I on the right track here?

thanks for your help

Mike

edit: The doc type code above is identical to the other drupal pages which have no errors, so I guess I'm on the wrong track
« Last Edit: June 14, 2007, 09:48:40 pm by mike4miyu »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: pop-up calendar not working
June 15, 2007, 07:47:42 pm
You'll need to get a Jscript debugging tool for your browser. Using Firefox - I recommend the Web Developer plugin - which will show you exactly the line in the jscript that is throwing the error.
Protect your investment in CiviCRM by  becoming a Member!

mike4miyu

  • Guest
Re: pop-up calendar not working
June 20, 2007, 07:59:20 am
Thanks Dave,

I did as you suggested and learnt a lot in the process.

I turns out my files were either incomplete or corrupted from the last upgrade. I upgraded to 1.7.9821 and made sure I untared on the server rather than upload the whole civicrm directory which was the stupid mistake I made last time.

Now ALL my problems are fixed. (for now)

Thanks again,
Mike

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • pop-up calendar not working

This forum was archived on 2017-11-26.