• 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

Java - Matlab problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi to all

I have a plot that has been created with MATLAB and i have been told by a friend that he once saw a JavaScript that with a click on a point in the plot it could make that point in the plot usable. Every point in the plot is a website and when he clicked on a point it opened up a browser and took him to that webpage. Does anyone have a clue how this could be done or if there is a JavaScript available? I have looked in the web and can't find anything. If anyone has a clue how this could be done it would be much appreciated. Thanks
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Andrew,

Welcome to JavaRanch!

"JavaScript" is a language for programming Web pages. "Java" is a language used frequently for programming in Web servers. They're quite different languages. You've posted in a forum about Java, but your reference to "JavaScript" is closer to reality.

There are lots of different ways to approach this. One simple one, especially if the points on the plot aren't too dense, is to use Client-side image maps. There are plenty of other alternatives as well.

I'm going to move this to our HTML and JavaScript forum, where this question is more on-topic. Go look for it there.
 
Andrew Walker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ernest and thanks for your reply. I have looked at the tutorial and it seems a very good way. I didn't know that this kind of image was called an image map so after searching i have found more information about them.

The difficulties are that firstly, it is indeed very dense and secondly there are too many points to name them individually as to the website i want them to link to. I have installed MapEdit and i ve learned how to use it but i would need a way to automate the procedure of assigning websites to hotspots. None of the ways i have found to create an image map seem to be able to work with too many points. What are the other solutions? Thanks, Lambros

I have the coordinates of my points but because they are too many it would'n be very efficient to do it this way.
[ April 04, 2006: Message edited by: Andrew Walker ]
 
I'm doing laundry! Look how clean this tiny ad is:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic