Shortcut FireBug dan Stop JQuery Event Functions

firebug

*) sumber gambar: getfirebug.com

Tips temuan baru:

  1. Daripada ribet2 klik kanan dan pilih ‘Inspect Element with Firebug‘ untuk membuka Firebug, langsung aja pencet tombol F12, nah keluar kan jendela firebugnya..
  2. Untuk stop paksa eksekusi fungsi/event jquery bila terjadi looping eksekusi, tambahi aja script:
e.stopImmediatePropagation()

misal contoh scriptnya:

$("div a").click(function (e) {
   // Do something else
   e.stopImmediatePropagation();
});

sumber:
http://www.sitepoint.com/stop-jquery-event-functions/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s