Graphite dashboard not working in IE

Asked by Sathiya Balakrishnan

Hi,
I am trying to display the graphite dashboard in Internet Explorer, but the page is not rendering. I am getting the javascript error 'initDashboard' is undefined and expected identifier, string or number. But the graphite works perfectly fine in Chrome and Firefox. Could you please let me know if there is a plugin or fix for it?

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nicholas Leskiw (nleskiw) said :
#1

It's some kind of Javascript incompatibility.

I fixed several trailing commas and still get the following error in IE7:

Line: 12
Character: 27093
Code: 0
Error Message: 'tagName' is null or not an object
URL: http://graphite/dashboard/

Can anyone else help debug it?

On Mon, Oct 22, 2012 at 11:50 AM, Sathiya Balakrishnan <
<email address hidden>> wrote:

> New question #211981 on Graphite:
> https://answers.launchpad.net/graphite/+question/211981
>
> Hi,
> I am trying to display the graphite dashboard in Internet Explorer, but
> the page is not rendering. I am getting the javascript error
> 'initDashboard' is undefined and expected identifier, string or number. But
> the graphite works perfectly fine in Chrome and Firefox. Could you please
> let me know if there is a plugin or fix for it?
>
>
>
> --
> You received this question notification because you are a member of
> graphite-dev, which is an answer contact for Graphite.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~graphite-dev
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~graphite-dev
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Jimmy (jimmyattime) said :
#2

Hi, did we find a solution to this? I'm seeing the same problem.

Revision history for this message
MarkH (markh-launchpad) said :
#3

Looks like its similar to bugs 1023727 & 890743.

In v0.9.10 the fix was to remove extra commas from <GRAPHITE_HOME>/webapp/content/js/dashboard.js

diff -u dashboard.js.orig dashboard.js
--- dashboard.js.orig 2013-12-06 23:05:11.766313391 +0000
+++ dashboard.js 2013-12-06 23:13:26.488300292 +0000
@@ -558,7 +558,7 @@
               },
               { text: "From Saved Graph",
                 handler: newFromSavedGraph
- },
+ }
             ]
           }
         },
@@ -1978,21 +1978,21 @@
     fieldLabel: "From",
     name: 'sender',
     width: 300,
- allowBlank: false,
+ allowBlank: false
   });

   var toField = new Ext.form.TextField({
     fieldLabel: "To",
     name: 'recipients',
     width: 300,
- allowBlank: false,
+ allowBlank: false
   });

   var subjectField = new Ext.form.TextField({
     fieldLabel: "Subject",
     name: 'subject',
     width: 300,
- allowBlank: false,
+ allowBlank: false
   });

   var msgField = new Ext.form.TextArea({
@@ -2041,7 +2041,7 @@
     resizable: true,
     modal: true,
     layout: 'fit',
- items: [contactForm],
+ items: [contactForm]
   });
   win.show();
 }

Can you help with this problem?

Provide an answer of your own, or ask Sathiya Balakrishnan for more information if necessary.

To post a message you must log in.