Gages do not work in IE

5 views
Skip to first unread message

vanboom

unread,
Jun 12, 2010, 3:24:46 PM6/12/10
to Closure Library Discuss
The google gages do not work in IE 8. They work in Opera, but not IE
8. Has anyone discovered a fix?

Bjorn Tipling

unread,
Jun 13, 2010, 5:57:37 PM6/13/10
to Closure Library Discuss
It is because the gauges use SVG which are not supported in versions
of IE earlier than IE9. Adobe provides an SVG viewer for older
versions of IE:

http://www.adobe.com/svg/viewer/install/

uchida_t

unread,
Jun 13, 2010, 10:28:51 PM6/13/10
to Closure Library Discuss
dup?
http://groups.google.com/group/closure-library-discuss/browse_thread/thread/787e764f78f8da50/

It is possible only to display it when this code is added to demos/
gauge.html.
However, it seems that this is not a correct method.

if (goog.graphics.VmlGraphics.IE8_MODE_) {
// If you want to use for other tag, add it here.
var useVmlTagNames = ['group', 'shape', 'fill', 'oval', 'path',
'textpath'];

// ref. goog.graphics.VmlGraphics.prototype.createDom
// ref. http://www.lrbabe.com/?p=104
// ref. http://ajaxian.com/archives/the-vml-changes-in-ie-8
var doc = document;
doc.namespaces.add(goog.graphics.VmlGraphics.VML_PREFIX_,
goog.graphics.VmlGraphics.VML_NS_);
var ss = doc.createStyleSheet();
ss.cssText = goog.array.map(useVmlTagNames, function(tag) {
return goog.graphics.VmlGraphics.VML_PREFIX_ + '\\:' + tag;
}).join(',') + '{behavior:url(#default#VML)}';
Reply all
Reply to author
Forward
0 new messages