excanvas.js problem in IE 9

1,490 views
Skip to first unread message

Johann Spies

unread,
Dec 1, 2011, 6:51:48 AM12/1/11
to jqplot...@googlegroups.com
Good day,

I am new to this group and hope to find some wisdom here :)

My first jqplot-project does not show up in IE9 while FF, Chrome and Opera do not complain.

It complains about this:

SCRIPT87: Invalid argument.
excanvas.js, line 170 character 11

And that line in smaller context looks like this:

        if (attrs.height && attrs.height.specified) {
          // TODO: use runtimeStyle and coordsize
          // el.getContext().setHeight_(attrs.height.nodeValue);
====>          el.style.height = attrs.height.nodeValue + 'px';
        } else {
          el.height = el.clientHeight;
        }
I am not sure which version of excanvas.js it is.  I have downloaded it with jqplot and the two top lines looks like this:

// Memory Leaks patch from http://explorercanvas.googlecode.com/svn/trunk/
//  svn : r73

Any help will be appreciated.

Regards
Johann

--
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

Robert Forkel

unread,
Dec 1, 2011, 7:02:29 AM12/1/11
to jqplot...@googlegroups.com
I encountered the same problem: The line with the error appends 'px'
to a value which possibly already is a string like '450px' or '50%'
thereby creating an invalid argument for the height property. I fixed
this by specifying explicit height and width in pixels for the element
containing the plot.
regards
robert

> --
> You received this message because you are subscribed to the Google Groups
> "jqplot-users" group.
> To post to this group, send email to jqplot...@googlegroups.com.
> To unsubscribe from this group, send email to
> jqplot-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/jqplot-users?hl=en.

Robert Forkel

unread,
Dec 1, 2011, 7:05:50 AM12/1/11
to jqplot...@googlegroups.com
To add some detail:
Here's related discussion:
http://groups.google.com/group/google-excanvas/browse_thread/thread/ee0e9ab16a37c9b3
And i do assign the height and width via css like:

#plot { height: 300px; width: 500px; }

Johann Spies

unread,
Dec 1, 2011, 7:38:21 AM12/1/11
to jqplot...@googlegroups.com
Excellent!  Thank you very much.
Reply all
Reply to author
Forward
0 new messages