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 CiviReport (Moderator: Dave Greenberg) »
  • Collapsible sections don't work
Pages: [1]

Author Topic: Collapsible sections don't work  (Read 3722 times)

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Collapsible sections don't work
October 17, 2009, 07:48:40 am
Hey all,

I am now on CiviCRM 3.0.0, but I had the same problem in 2.2.3. In the backend, wherever there is a little TreePlus.gif, which I gather uses javascript to display something, it doesn't work. It does work for me on your demo site, but not my site.

For example, in the Reports section, at the top of the page of many of the reports there are 2 such links: "Report Criteria" and "Report Sections". I can't access these sections.

Any ideas on how to get these working? If not, I would settle for a hack that makes the content they control set to show by default.

Thanks very much,
Phil

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Collapsible sections don't work
October 20, 2009, 05:42:54 am
This might mean that Common.js file is not loaded properly - however, you would encounter some other UI problems as well, since it contains some other JS helper functions. Can you check (e.g. using firebug, or checking for the path in page source and trying to load the file in the browser) if this file gets loaded?

Does it happen only in CiviReport or elsewhere in CiviCRM as well?

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Re: Collapsible sections don't work
October 26, 2009, 05:01:06 pm
I'm not very good with firebug, and I don't know a thing about javascript, but yes, I can see that common.js appears to be loading.

I've run into problems with one solution I tried, but it's a bit of a digression, so I thought it better to post that separately: http://forum.civicrm.org/index.php/topic,10536.0.html

Javascript is not working on other areas of my backend either, nor was it when I was on CiviCRM 2.2. For example, I want to import contacts and add them to a group, but I can't because the link to do that on import is controlled by javascript.

Should I just reinstall Civi?

Thanks,
Phil

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Collapsible sections don't work
October 26, 2009, 08:33:14 pm
Did you do this .... "Checking for the path in page source and trying to load the file in the browser" ? (Select "View Source" from browser File menu and search for Common.js - then copy and paste the entire URL into the browser location bar. You should see the javascript code displayed in your browser).
Protect your investment in CiviCRM by  becoming a Member!

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Re: Collapsible sections don't work
October 26, 2009, 09:14:30 pm
Oh, thanks. I viewed the source, but missed the pasting the url into the browser bar part. Cool trick. The file is loading properly there.

Still, no luck on getting the javascript links working in the backend. I'd be happy to give backend access to one of the moderators here.

For now, I've decided to learn a bit about javascript tonight.

Thanks,
Phil

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Collapsible sections don't work
October 27, 2009, 03:35:05 am
Hm, if the file is loading fine, let's check the browser. Which one are you using? Do you have JavaScript enabled?

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Re: Collapsible sections don't work
October 27, 2009, 09:27:15 am
I've figured it out!

Michal, it wasn't the browser, but thanks very much for the suggestion.

It is some kind of conflict with another javascript file, a rockettheme extension called RokBox. So I guess javascript can conflict like css, which makes perfect sense now that I know it.

Now I just have to figure out how to exclude the offending javascript file from being loaded in the backend.

Thanks again for your help so far.

Phil

jursulak

  • I’m new here
  • *
  • Posts: 7
  • Karma: 3
  • CiviCRM version: 4.5.6
  • CMS version: Wordpress 4.1.1
Re: Collapsible sections don't work
February 19, 2010, 04:12:21 pm
Sorry, I know this is an older post.

I was having the same problem as Phil. I saw in this thread that he figured out that the issue was with rokbox.js loading in the backend of Joomla.

I did a quick search and found Phil's post at RocketTheme looking for help to stop rokbox.js from loading in the backend here: http://www.rockettheme.com/forum/index.php?f=201&t=80122&rb_v=viewtopic Which has the solution by Sam Lewis.

Thanks Phil & Sam


nseltzer

  • I’m new here
  • *
  • Posts: 7
  • Karma: 1
Re: Collapsible sections don't work
March 24, 2010, 01:04:29 pm
This fixed the problem I had with the collapsible sections not working.  Thanks!!

weroiu

  • Guest
Re: Collapsible sections don't work
May 21, 2010, 10:38:49 am
I had the same problem.

THE SOLUTION:

Go to Extensions-> Plugin Manager

Disable Content - RokBox

Disable System - RokBox

Worked for me!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Collapsible sections don't work

This forum was archived on 2017-11-26.