Mars Express HRSC image viewer [message #53146] |
Tue, 27 March 2007 03:04  |
greg michael
Messages: 163 Registered: January 2006
|
Senior Member |
|
|
Hi folks!
I recently put a new site online which, of course, is coded with IDL
(ION script). Aside from the fact that you might be amused to play
around with it (there're something like 2 TB of images there), I'd
very much appreciate any suggestions for improvements of any kind -
especially in relation to the interface/ION side of things.
http://www.geoinf.fu-berlin.de/hrscviewweb/
many greetings,
Greg
|
|
|
|
|
Re: Mars Express HRSC image viewer [message #53230 is a reply to message #53146] |
Wed, 28 March 2007 08:31   |
Jean H.
Messages: 472 Registered: July 2006
|
Senior Member |
|
|
greg michael wrote:
> Hi Jean,
>
> Clicking the image recentres the view - then when you change zoom, it
> should be around that point. Is that what you meant?
Yes, this statement, on your page, would be helpful!
... or, but that may be a 'user preference', it would be nice that when
you click on the image (anywhere), it does a) the zooming and b) of
course, to recenter the view.
> I thought maybe I could add some crosshairs to make it clear that
> recentring is what's happening: what do you think?
Yep!
> It would be nice to have double-clicks for zooming as well, but I
> don't think this can be done with html.
Right click then?
Or you can have 2 modes: a zooming mode (see 1st comment) or a spanning mode
Jean
> many thanks for the comment,
> Greg
>
>> Greg,
>>
>> the zooming is kind of hard... it would be nice to be able to click on
>> the image and to zoom around the specified point. Also, what the program
>> does when clicking on the image is not obvious at first. Along with the
>> zoom idea, you could have arrows around your image (click to move the view)
>>
>> Jean
>
>
|
|
|
|
|
|
|
Re: Mars Express HRSC image viewer [message #53274 is a reply to message #53146] |
Fri, 30 March 2007 11:11  |
Jean H.
Messages: 472 Registered: July 2006
|
Senior Member |
|
|
greg michael wrote:
>> Certainly. This can be handled with some client side javaScript. The
>> onDblClick event is supported by Netscape v6+ and IE4+ for most HTML
>> elements.
>
> Hi Rick,
>
> Thanks for the suggestion. I found this sample code:
>
> <input type="button" ondblclick="JavaScript: alert( 'ondblclick
> event' )" value="Double Click Me!">
>
> That detects the double-click - do you know how I can pass that
> information back to the server?
>
> Greg
http://javascript.internet.com/miscellaneous/enlarge-image.h tml
<img src="img/picture4-sm.gif" height="150" name="image1"
ondblclick="enlargeImage1()" onclick="dropImage1()">
So I guess you can write a function that redirect you to your image
page, with a tag in the address stating that a double click occurred..
window.location = "http://www.google.com/?dblclik=true" or you might
even skip this and have a function with the zoom parameters (double
click) and another one with the pan parameters (single click)
Jean
|
|
|
Re: Mars Express HRSC image viewer [message #53279 is a reply to message #53200] |
Fri, 30 March 2007 10:09  |
greg michael
Messages: 163 Registered: January 2006
|
Senior Member |
|
|
> Certainly. This can be handled with some client side javaScript. The
> onDblClick event is supported by Netscape v6+ and IE4+ for most HTML
> elements.
Hi Rick,
Thanks for the suggestion. I found this sample code:
<input type="button" ondblclick="JavaScript: alert( 'ondblclick
event' )" value="Double Click Me!">
That detects the double-click - do you know how I can pass that
information back to the server?
Greg
|
|
|