Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-23-2012, 04:16 AM   PM User | #1
Jian0203
New Coder

 
Join Date: Mar 2012
Posts: 47
Thanks: 2
Thanked 0 Times in 0 Posts
Jian0203 is an unknown quantity at this point
Javascript to draw shapes

Hi, I want to ask is it possible for me to use javascript to draw shapes and i wish to insert value into the shapes ?

My javascript will first retrive the data from an excel documents, then based on the fields contents, the data will be sorted into correct categories and draw an arrow to the next step.

Below is a print screen of the result i wish to come out. Is it possible to complete this task by using javascript ?

Senior coders, please give me some advice. Thanks for helping

Jian0203 is offline   Reply With Quote
Old 05-23-2012, 04:44 AM   PM User | #2
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,461
Thanks: 52
Thanked 457 Times in 455 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
shapes are best drawn with CSS which can then be manipulated by javascript. the border radius property helps with circles and ovals but is not supported by older browsers. This page has a good choice of the different shapes you can make but like I say, have a look at them in a variety of browsers before deciding on any of them.

Last edited by xelawho; 05-23-2012 at 04:51 AM..
xelawho is offline   Reply With Quote
Old 05-23-2012, 08:10 AM   PM User | #3
Jian0203
New Coder

 
Join Date: Mar 2012
Posts: 47
Thanks: 2
Thanked 0 Times in 0 Posts
Jian0203 is an unknown quantity at this point
So it's impossible to draw shapes and insert value in it using javascript ?
Jian0203 is offline   Reply With Quote
Old 05-23-2012, 10:07 AM   PM User | #4
Jian0203
New Coder

 
Join Date: Mar 2012
Posts: 47
Thanks: 2
Thanked 0 Times in 0 Posts
Jian0203 is an unknown quantity at this point
Quote:
Originally Posted by xelawho View Post
shapes are best drawn with CSS which can then be manipulated by javascript. the border radius property helps with circles and ovals but is not supported by older browsers. This page has a good choice of the different shapes you can make but like I say, have a look at them in a variety of browsers before deciding on any of them.
Do I have any other option ? I tried to search more information online and i had got canvas and svg but they both don't support IE except IE9.

I wish to complete this just by one script. Is it possible to do so? Or do i have any other option to complete the task shown in the #1 post ?

Thanks for helping.
Jian0203 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:28 AM.


Advertisement
Log in to turn off these ads.