Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript HTML jQuery
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 10-Mar-13 1:30am
muthuu587
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Please see my recent answer: how can i learn all the cross browser techniques?[^].
 
—SA
  Permalink  
Comments
Maciej Los at 19-Mar-13 3:03am
   
+5
Sergey Alexandrovich Kryukov at 19-Mar-13 9:23am
   
Thank you, Maciej.
—SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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/[^]
  Permalink  
Comments
Sergey Alexandrovich Kryukov at 19-Mar-13 2:45am
   
Good points, a 5.
—SA
Maciej Los at 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)

  Print Answers RSS
0 OriginalGriff 5,170
1 DamithSL 4,357
2 Maciej Los 3,750
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,851


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 19 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100