• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

drawing box and connecting them

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to draw boxes (inside which I want to write the boxname)independently and connect them using connector(like -> so that I can make a tree structure. I can create tree which look like the windows directory structure. But here I want to drawboxes for each nodename and connect them later.

Is it possible to use JavaScript and accomplish this task?
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
draw a box, all you need to do is set the border around your element. The line is tricky since You either have to use images or borders from other elements dynamicaly positioned.

Eric
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Kathryn",

There aren't may rules that have been put into place here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
Nimmy
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could you please explain this. Do you mean that I can use javascript or DHTML for doing this task? There is one more condition that I should be able to drag and drop this boxes.

Thanks
Kathryn
 
Bear Bibeault
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kathryn,

My request for you to adjust your display name to JavaRanch standards was not a suggestion. It is a requirement of the JavaRanch. Please adjust your display name as requested in my post prior to your next post.

With regards to your question, HTML and Javascript are not well suited technologies to general drawing. You are limited to what you can fake using images and CSS attributes of rectangular areas. If you need general drawing abilities you may want to investigate alternate technologies, such as Applets.

thanks,
bear
Forum bartender
 
reply
    Bookmark Topic Watch Topic
  • New Topic