Back to happy. All is working. Thanks again TJ, and I love when
things work as expected! I have been pulling my hair out all
weekend!
Karl..
On Sep 19, 11:25 pm, kstubs kst...@gmail.com wrote:
Oh my gosh! OK, I never considered that bind() returns a function.
Wow... that changes everything.
Hello,
I am modifying this: http://cpicker.com/
I have made good progress, everything is working great. I now need to
make one last modification.
I think I need to do something like this but I am new to prototype and
don't really get it.
$(document.body).descendants().observe('click',
Hi,
Not entirely sure what you're trying to do, but this will fail:
$(document.body).descendants().observe
^-- Problem here
`#observe` is a function Prototype adds to *elements*, not arrays.
`#descendants` returns an array. Although you could fix this via
TJ, you inadvertently disabled Edit using JS Bin for this
example :) Who is JS Bin, is that yours? Very cool.
On Sep 20, 5:12 am, T.J. Crowder t...@crowdersoftware.com wrote:
Hi,
Not entirely sure what you're trying to do, but this will fail:
$(document.body).descendants().observe
Hi T.J.
Sorry for being unclear. I want the div to close when the user clicks
on anything BUT the div.
What you have written makes sense with the findElement. Can
findElement by used to literally find any element and then compare it
to find out if it is a child or parent of the relevant div.
I like to think of Event#findElement as the equivalent of the XPath
expression self-or-ancestor. I use it a lot for delegated observers,
like placing one click listener on a common parent element, then using
$('parentElement').observe('click', function(evt){
if
Hi Johan,
Thanks for the reply. The page is very simple. Just a div with an
img in it. The mouse does not move once inside, meaning I can move
the mouse over the img and let it go. The animation ramps up to full
opacity, and then pops back to 0.4.
There isn't some secret switch I am not