Hey Anthony,

2008/12/1 Anthony Buck <[EMAIL PROTECTED]>:
> Koen,
>
>    Cheers for clearing up the JS issue :) Is there any way of using input 
> images in the system? i.e. <Input type="image"...>.Specifically i was 
> thinking that they would be a better replacement for the JavaScript "onclick" 
> used to catch click events on images as they gracefully degrade on non-js 
> systems?

I am aware of this. What we need to do is, when an onclick is needed
for an image, and there is no JavaScript availability, use the input
type image as you suggest, instead of wrapping the image inside a
button (as we do now).

This has the added benefit of being able to get the mouse coordinates,
which for example would be useful to improve WSlider so that it is
entirely functional even when no JavaScript is present. Other than
that there is not really a benefit: when JavaScript is not available,
we are already (since Wt 1.0!) not using onclick anyway. It has been
marked in the code as a small TODO item..

Regards,
koen

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to