Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Web Development with jQuery
This is the forum to discuss the Wrox book Web Development with jQuery by Richard York; ISBN: 978-1-118-86607-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Web Development with jQuery section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2018, 12:36 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2018
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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








Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.