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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • javascript brokeness in 4.1.1
Pages: [1]

Author Topic: javascript brokeness in 4.1.1  (Read 816 times)

devfloppy

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
javascript brokeness in 4.1.1
April 24, 2012, 10:19:38 am
I recently upgraded from 2.2 to 3.something and then to 4.1.1 (drupal 6).  I had been using Firefox and everything has been working great.  Recently another user started using Internet explorer and stated that the dashboard never loaded.  I confirmed.  The dashboard does not load and you get an error stating that Javascript must be enabled.  The menu buttons did work, but the toolbar across the top was missing the search box and didn't respond to clicks.  I tracked the issue down to here:

packages/jquery/plugins/jstree/jquery.jstree.js

Changed line 72/73 from this:
                                                document.getElementsByTagName("head")[0].appendChild(tmp);
                                                 tmp.styleSheet.cssText = opts.str;
to this:
                                                tmp.styleSheet.cssText = opts.str;
                                                document.getElementsByTagName("head")[0].appendChild(tmp);

and the first error went away (Error: Invalid argument).  Now I'm getting an error on line 75.  When I comment it out like so everything works, but presumably I'm missing some styles (although everything looks good to me).

                                        else {
                                                //tmp.styleSheet.cssText = tmp.styleSheet.cssText + " " + opts.str;
                                        }

The Javascript error that I see when that line is uncommented is: Error: Invalid argument.

I didn't spend a lot of time trying to debug, but opts.str looks valid as does tmp and tmp.styleSheet.  I don't ever use IE so I'm not sure what the error is, but I'm interested to know if anyone has run into this and if there is a real solution to this as opposed to my aweful hack :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • javascript brokeness in 4.1.1

This forum was archived on 2017-11-26.