Reputation: 610
I am having trouble figuring out what is causing the click event to fire more than once in the webapp below. Please visit the url, click on any level [from Ground - 4], and then click on a unit.
http://plaza.foxqa.com.au/touch/index.html
That will bring up the Unit Details [price, images etc.]. The images in this page has a click event attached to them which basically enlarges the image. This event keeps stacking up. It will work fine when a unit is clicked for the first time.
Then it will fire twice for the second unit and three times for the third unit and so on. I tried to unbind the click event once the enlarged view is closed but still not working.
Any help would be appreciated.
Edit: Please test this in Google Chrome.
Edit 2: Steps that might help you figure out the problem sooner.
I know following all of this is a pain but please take some time to analyze it.
Upvotes: 1
Views: 553
Reputation: 610
Found the bug. If anyone comes across this situation where the jQuery click events are building up over time, the most likely culprit is the
jQuery.live()
Its doesn't need to be nested under other click events.
Upvotes: 0
Reputation: 8321
please look again at your application.
there are some errors(JavaScript coding errors) that you can see in firebug console.
Upvotes: 2