DOM events

9 views
Skip to first unread message

new_moo

unread,
Sep 1, 2009, 8:57:14 AM9/1/09
to Firebug
Hi, how I could I event handlers ?
for example when I see this code
<a onclick='callMyFunc();" ... />
I understand what callMyFunc - i'ts event handler'

but when I set event handler like this (jQuery)
$(document).ready(function(){
$('a').click(
function(event) {
$(this).hide("slow");
event.preventDefault();
}
)
});

How I could find this event handler with help FireBug.. especially if
html and js source not 2 rows ;)

Thanks.

johnjbarton

unread,
Sep 1, 2009, 11:11:05 AM9/1/09
to Firebug
We are currently working on an Events panel (and/or HTML Events side
panel). We'll be ready in Firebug 1.5, but we don't know when Firefox
support will ship.
jjb

>
> Thanks.

Garrett Smith

unread,
Sep 1, 2009, 2:35:33 PM9/1/09
to fir...@googlegroups.com
On Tue, Sep 1, 2009 at 5:57 AM, new_moo<poi...@gmail.com> wrote:
>
> Hi, how I could I event handlers ?
> for example when I see this code
> <a onclick='callMyFunc();" ... />
> I understand what callMyFunc - i'ts event handler'
>

[snip example]

> How I could find this event handler with help FireBug.. especially if
> html and js source not 2 rows ;)
>

Add a breakpoint to the "click" callback function.

Navigate FB to script tab, select the script that the code appears in,
set a breakpoint at:-

$(this).hide("slow");

Garrett

Steven Roussey

unread,
Sep 4, 2009, 7:33:08 PM9/4/09
to Firebug

> We are currently working on an Events panel (and/or HTML Events side
> panel). We'll be ready in Firebug 1.5, but we don't know when Firefox
> support will ship.
> jjb

Is there support in any prebuilt versions? Like nightlies of 3.6 or
3.7?

-steve--

Jan Odvarko

unread,
Sep 5, 2009, 2:56:19 AM9/5/09
to Firebug
> Is there support in any prebuilt versions? Like nightlies of 3.6 or
> 3.7?
https://build.mozilla.org/tryserver-builds/ope...@mozilla.com-eventlistenerservice10b/

Honza
Reply all
Reply to author
Forward
0 new messages