Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
In my GUI i want to draw line using javascript.line connect two different object or image for make graph on window screen so,here draw many line in one graph.so,plz tell me how to draw line if you have a code so,plz give me...
Posted
Comments
Sergey Alexandrovich Kryukov 30-Jan-12 0:33am    
Have you been banned by Google or what? Too bad...
--SA

I suggest you to use Raphaël—JavaScript Library[^]
also you may use HTML5 Canvas
Create a Drawing App with HTML5 Canvas and JavaScript[^]
 
Share this answer
 
Comments
Manoj Kumar Choubey 30-Jan-12 3:32am    
I will give 5 points
Mitesh Khatra 30-Jan-12 7:22am    
canvas not supported in IE older version...so plz solve this prob...
thatraja 30-Jan-12 7:40am    
What about Raphel? Check the other link
You can use HTML5 Canvas. I've found some complete working examples here:
http://stackoverflow.com/questions/6035764/draw-a-line-with-two-mouse-clicks-on-html5-canvas[^].

If you Google, you will find some more.

See also: http://en.wikipedia.org/wiki/HTML_canvas[^],
http://www.w3.org/TR/html5/the-canvas-element.html#the-canvas-element[^].

—SA
 
Share this answer
 
Comments
Mitesh Khatra 30-Jan-12 7:22am    
canvas not supported in IE older version...so plz solve this prob...

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