Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 14th, 2009, 11:33 AM
Registered User
 
Join Date: Aug 2009
Location: Concord, NH area
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!
Reply With Quote
  #2 (permalink)  
Old August 14th, 2009, 02:05 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:47 AM.


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