| Author |
Java - Matlab problem
|
Andrew Walker
Greenhorn
Joined: Apr 03, 2006
Posts: 2
|
|
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
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24050
|
|
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.
|
[Jess in Action][AskingGoodQuestions]
|
 |
Andrew Walker
Greenhorn
Joined: Apr 03, 2006
Posts: 2
|
|
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 ]
|
 |
 |
|
|
subject: Java - Matlab problem
|
|
|