Detecting support for VML, help applying a previous post?

You can just make a call to that function provided by Google, and it will return true if VML is supported and false if not. Don't forget, you will still need to add the xmlns for VML somewhere in your HTML.

You can just make a call to that function provided by Google, and it will return true if VML is supported and false if not. Don't forget, you will still need to add the xmlns for VML somewhere in your HTML. If (!supportsVml()) window.

Location = "somedomain.com/no-vml.html"; Also, I would recommend using a cross-browser library for drawing vector graphics. There's a few to choose from in this blog post: Canvas/SVG/VML Drawing Roundup.

Thanks Andy for such a quick response, I am having difficulty getting it to work. If I post the google code and the following in an external js file: function redirectNoVml() { if (!supportsVml()) { window. Location = "../no-vml.

Htm"; } } and then call redirectNoVml() in the head of my html page, Would you expect this to work? Thanks – Martin Jan 19 '10 at 15:09 IE is showing the following error: Message: 'document. Body' is null or not an object – Martin Jan 19 '10 at 15:27 That error is occurring because the tag hasn't finished loading yet.

You need to either put your script after the body tag or in the onload event. – Andy E Jan 19 '10 at 17:18 Andy, yes this was the problem, thanks. – Martin Jan 19 '10 at 9:09.

VML is only supported in Internet Explorer (as of 5.0) and is not supported in any other browser. So checking for IE should be just enough. This can be done in many ways, for example:!document.namespaces.

Currently I just check for IE as you suggest, however I belive there are custom installations of IE where VML is not supported. There are also browsers that appear as IE which may not support it? – Martin Jan 19 '10 at 16:38 Use ie=!

-1, to check for Trident. As for the custom installations, I doubt they can be very different - VML is part of the browser. – Sergey Ilinsky Jan 19 '10 at 17:11 Interestingly enough, I recently had a discussion with a Microsoft employee (from the Desktop Gadgets team) regarding VML and he advised me against relying on it, even in IE.

I did find this to be an odd comment, as usually features like VML are left in and just deprecated. – Andy E Jan 19 '10 at 17:21 I can imagine VML depreacted in IE9 and replaced with SVG. – Sergey Ilinsky Jan 19 '10 at 19:02 As can I.In fact, I'm expecting canvas support in IE9.

A lot of signs are pointing that way, both from my own conversations with staff and with blog posts announcing they're using DirectX for rendering in IE9. – Andy E Jan 19 '107 at 10:47.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions