p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Web Development with jQuery (http://p2p.wrox.com/forumdisplay.php?f=782)
-   -   Example 3-4 (http://p2p.wrox.com/showthread.php?t=100054)

Don1 November 8th, 2018 12:36 AM

Example 3-4
 
It doesn't look like there's much interest in this book but I'll post my issues anyway.

Chapter 3, example 4 contains the following line of code:

$('div#finderFiles div.finderNode:first').trigger('click');

which only works on my system (i.e, highlights the first finderNode and its child) if said line of code follows the call to applyEventHandler(). In the book, $('div#finderFiles div.finderNode:first').trigger('click') precedes applyEventHandler().

Also, I would expect the named event ('click.finder') needs to be used in order to call the 'click.finder' event handler; i.e:

$('div#finderFiles div.finderNode:first').trigger('click.finder');

However, both 'click.finder' and 'click' call the 'click.finder' event handler.

Perhaps someone can lift the fog for me.

Thanks,
Don

Johny November 9th, 2018 02:21 AM

Online Pharmacy Pills
 
Online Pharmacy Pills: With the increasing demand for quality medicines we are providing door-step facility for better medications. Cognitive enhancement, pain, etc. are treated with quality drugs that too with just a click away. We believe that mere selling of products is not enough, thus we try to establish a good relation with our customers. Visit: Online Pharmacy Pills
www.onlinepharmacypills.net


All times are GMT -4. The time now is 07:37 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.