Click here to Skip to main content
15,885,216 members
Articles / Web Development
Tip/Trick

Visual Event - useful bookmarklet for web developers -

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
15 Jan 2013CPOL1 min read 9.9K   1  
Useful bookmarklet for web developers to work with events on page.

Introduction

Visual Event is an Open Source JavaScript bookmarklet which provides debugging information about events that have been attached to DOM elements. Visual Event shows:

Which elements have events attached to them

The type of events attached to an element

The code that will be run with the event is triggered

The source file and line number for where the attached function was defined (Webkit browsers and Opera only)

How to use 

Navigate to author's page, locate the bookmarklet, and drag to favorites bar. 

How it works? 

Bookmarklet supports number of widely used JavaScript libraries, like  jQuery 1.2+, YUI 2,MooTools 1.2+, Prototype 1.6+,Glow as well as Dom 0 events, i.e. 'onclick'. etc. 

Example of use:  you navigate to site that is built using one of specified above libraries, and bookmarklet visually highlights element with attached events,  as well as shows  source of the event subscriber function. 

 Let's demonstrate on example of the CodeProject website:

This is how menu organized:

Image 1

This is how submit a tip logic organized:

Image 2

Points of Interest

This is easy to use tool that can be used by developer - to evaluate website logic, someone else page coding approach, etc I believe this is must have bookmarklet for every web developer.

Links 

Author's page for the bookmarklet: http://www.sprymedia.co.uk/article/Visual+Event+2 

Source on Github  https://github.com/DataTables/VisualEvent 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Ukraine Ukraine
Web Developer, interested in bleeding age web technologies and projects.

Experienced and interested in:
- High load web projects, bespoke software development
- DevOps: Chef, Ansible, Vagrant
- NoSQL (mongodb)
- Client stack (javascript core, jquery, AngularJS, HTML5 apis)
- *AAS (Amazon beanstalk, Redhat openshift)
- MEAN & Pure JS stack (Javascript, AngularJS, Node.JS, MongoDB)


-> DevOps inquiries
-> Other inquiries
-> Follow me on Github

Comments and Discussions

 
-- There are no messages in this forum --