Click here to Skip to main content
11,640,788 members (61,707 online)
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 0:30am
muthuu600
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 Mika Wendelius 380
1 OriginalGriff 205
2 DamithSL 153
3 CPallini 125
4 Afzaal Ahmad Zeeshan 124
0 Mika Wendelius 370
1 OriginalGriff 205
2 CPallini 125
3 DamithSL 105
4 Afzaal Ahmad Zeeshan 70


Advertise | Privacy | Mobile
Web04 | 2.8.150731.1 | Last Updated 19 Mar 2013
Copyright © CodeProject, 1999-2015
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