From: Marc G. <mgu...@ya...> - 2010-01-29 11:51:44
|
Hi, what would be your definition of clickable? An element on which something may happen when you click it? Cheers, Marc. -- Blog: http://mguillem.wordpress.com jason franklin-stokes wrote: > dear all, > > is it possible to find out if an element is clickable. i.e. i am looking for a function like: > > node.isClickable? > > for example i would like to collect all the image (and or text) nodes on the page and then with somthing like: > > (simple jruby code to illustrate the case) > > clickable_images = [ ] > images.each {|image| clickable_images << image if image.isClickable?) > > any ideas?? > > thanks a million > > jason. |