Click here to Skip to main content
15,889,795 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
XML
I need to convert v:line, v:path, v:textpath VML language in a crossbrowser compatability manner. v:line code sample:

<v:line
from="150,100"
to="300,225"
strokeweight="8px"
strokecolor="red"
style=position: absolute;
</v:line>

What should be the approach?
Posted

Please see my recent answer: how can i learn all the cross browser techniques?[^].

—SA
 
Share this answer
 
Comments
Maciej Los 19-Mar-13 3:03am    
+5
Sergey Alexandrovich Kryukov 19-Mar-13 9:23am    
Thank you, Maciej.
—SA
To be honest: you can not.
More precisely there is no solution that will work for on all platforms and all versions of all browsers out of the box. So you should add some constraints to this cross-browser requirement. VRML was never a widely supported solutions.
Some approaches if a subset is enough, as you posted:
SVG: see support table: http://caniuse.com/svg[^]
HTML5 canvas: see support table: http://caniuse.com/canvas[^]
(plugins and workarounds are available for older browser versions too)
Some other approaches:
http://www.jsgl.org/doku.php[^]
http://raphaeljs.com/[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 19-Mar-13 2:45am    
Good points, a 5.
—SA
Maciej Los 19-Mar-13 3:02am    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900