[Proto-Scripty] Re: Selectively prevent onClick action ?

2009-02-20 Thread Jason Frisvold
david wrote: Sorry, I needed some more test, i did not use traditionnal event model: I'm not sure I understood the code you sent. Where does process() get called? I've put together a simple version of what I'm trying to do. Code follows: html head titleEvent Propagation/title

[Proto-Scripty] Re: Selectively prevent onClick action ?

2009-02-20 Thread Alex Mcauley
: [Proto-Scripty] Re: Selectively prevent onClick action ? david wrote: Sorry, I needed some more test, i did not use traditionnal event model: I'm not sure I understood the code you sent. Where does process() get called? I've put together a simple version of what I'm trying to do. Code

[Proto-Scripty] Re: Selectively prevent onClick action ?

2009-02-20 Thread Jason Frisvold
Alex Mcauley wrote: look at Event.stop(event) ... that will stop it bubbling up the DOM Excellent, thanks. but you need the event passed to the function That was the bit I was having a problem with, but I figured it out. I can pass the event itself via the function call. a href='#'

[Proto-Scripty] Re: Selectively prevent onClick action ?

2009-02-16 Thread david
Hi Jason, I don't think it's possible, because you use Event inline, and you can't control the event bubbling or propagation. If you register the event with or without prototype but programmatically with the traditionnal model, you could use the event.stopPropagation function or for IE the

[Proto-Scripty] Re: Selectively prevent onClick action ?

2009-02-16 Thread david
Sorry, I needed some more test, i did not use traditionnal event model: try this: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; lang=en xml:lang=en head titleo0O TEST O0o/title /head