home page latest news web development curriculum vitae consulting contact me


  • Curriculum Vitae (CV)
  • Major web solutions
  • Web design projects
  • Software solutions


  • C# (Microsoft .NET)
  • JAVA
  • Dynamic HTML
  • PHP & MySQL
  • ASP.NET - C# & VB.NET
  • Perl & CGI
  • C | C++
  • Vector Markup Language
  • SMIL
  • Assembler
  • Databases
  • Wap Development
  • Web site promotion
  • Web Marketing




I am trying to render some VML graphics but nothing shows up, why?

(Free programming example written by Anton Zamov.
Need a professional consulting or development service? Click here!
Find more free examples on "The ultimate source for developers" )


This situation could happen if for example you have
such a page:
 
<html>
<head>
 
</head>
<body>
  
 <v:line from='50,0' to='480,0' ></v:line>
 
</body>
</html>
 
and it's true, in this case you'll see just a blank page.
 
The solution of this problem is simple, just copy and paste the following
lines at the beginning of your html document:
 
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
 
So at the end the page looks like this:
 

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<head>
 
</head>
<body>
 
  
 <v:line from='50,0' to='480,0' ></v:line>
 

</body>
</html>
 
 
 
and everything is ok.




C# (Microsoft .NET) | JAVA | Dynamic HTML | PHP & MySQL | Perl & CGI | C | C++ | Vector Markup Language
SMIL | Assembler | Databases | Wap Development | Web site promotion | Web Marketing

Copyright Anton Zamov 1998-2005