Wrox Programmer Forums
|
BOOK: Beginning JavaScript and CSS Development with jQuery
This is the forum to discuss the Wrox book Beginning JavaScript and CSS Development with jQuery by Richard York; ISBN: 9780470227794
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaScript and CSS 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 August 14th, 2009, 11:33 AM
Registered User
 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ready vs. ready

Hey Richard, and all, here's basic beginner Question:
On page 31 you refer to the jquery 'ready' event, and then a few pages later, pg 36, ex 2-1, you name a method in the script 'ready'... I understand these to be two different methods, and am wondering if it isn't a little confusing... how do you keep the concepts separate?
Thanks for your help!
 
Old August 14th, 2009, 02:05 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

You don't have to use the same name if you find it confusing, another common name for that function is "init()". Use whatever makes sense to you. I use "Ready()" because I think that's the best semantic description of what's happening, e.g., the document is ready, now that the document is ready, execute the corresponding "Ready()" function of my object to set things up in this document. I can see how a newcomer might look at that and ask why there are two functions named "ready"? Experienced developers will easily figure out what's going on.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ready for TheBeerHouse MVC? jminatel BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 May 29th, 2009 01:31 PM
The selected report is not ready for viewing. The report is still being rendered or a gp_mk BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 1 February 17th, 2009 03:05 AM
Check if drive is ready or not uday_mandava General .NET 0 February 15th, 2007 04:27 PM
test if Frame is ready... darkhalf Javascript 1 September 19th, 2006 05:00 AM
readyState not ready -- closed see google groups scottradny BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 March 30th, 2006 11:55 AM





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