Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the 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
Showing results 1 to 25 of 87
Search took 0.01 seconds.
Search: Posts Made By: jmcpeak
Forum: BOOK: Beginning JavaScript 5th Edition April 7th, 2016, 01:00 PM
Replies: 2
Views: 1,387
Posted By jmcpeak
Thanks for your contribution, roberttan. Your...

Thanks for your contribution, roberttan. Your approach is a much more concise solution.

However, consider these things:

- it's a beginning book. The vast majority of people reading this book...
Forum: BOOK: Beginning JavaScript 5th Edition January 11th, 2016, 12:44 AM
Replies: 20
Views: 1,953
Posted By jmcpeak
Well there are certainly many more mistakes than...

Well there are certainly many more mistakes than the official errata leads one to believe. =)

I created a new Github repository (https://github.com/jwmcpeak/beginningjavascript5e) that has the...
Forum: BOOK: Beginning JavaScript 5th Edition January 8th, 2016, 03:39 PM
Replies: 20
Views: 1,953
Posted By jmcpeak
Well I'm late to the party, but I'll add my...

Well I'm late to the party, but I'll add my $0.02.



It must be a problem with the epub version. All of the examples have HTML5 doctypes, and there are no remnants of XHTML DTDs in the physical...
Forum: BOOK: Beginning JavaScript 5th Edition January 8th, 2016, 02:47 PM
Replies: 2
Views: 652
Posted By jmcpeak
Even though the semi-colon is missing in the 4th...

Even though the semi-colon is missing in the 4th Edition, it is not intentional in the 5th. It's a code sample that I missed. There should be a semi-colon at the end of that statement.
Forum: BOOK: Beginning JavaScript 5th Edition January 8th, 2016, 02:40 PM
Replies: 2
Views: 703
Posted By jmcpeak
No, you're not missing anything. The book is both...

No, you're not missing anything. The book is both wrong and extremely poorly worded in that passage.
Forum: BOOK: Beginning JavaScript 5th Edition August 6th, 2015, 04:47 PM
Replies: 1
Views: 794
Posted By jmcpeak
Frankly put, Safari is behind the pack of modern...

Frankly put, Safari is behind the pack of modern browsers, as far as features/support/technology is concerned. It appears to still exhibit the old behavior of not updating the page until the code...
Forum: BOOK: Beginning JavaScript 5th Edition August 6th, 2015, 04:33 PM
Replies: 1
Views: 580
Posted By jmcpeak
Hi, PiotrG! Nice catch. Thanks for the...

Hi, PiotrG!

Nice catch. Thanks for the report!
Forum: BOOK: Beginning JavaScript 5th Edition August 6th, 2015, 04:32 PM
Replies: 1
Views: 560
Posted By jmcpeak
Hi, Jake. My apologies for such a late response. ...

Hi, Jake. My apologies for such a late response.

Different browsers behave differently. I can test that example later when I have my Mac at my disposal, but I imagine it's a quirk of Safari. FWIW,...
Forum: BOOK: JavaScript 24-Hour Trainer April 15th, 2015, 04:13 PM
Replies: 8
Views: 1,538
Posted By jmcpeak
Howdy, Coda. The key to the newer example is...

Howdy, Coda.

The key to the newer example is the contents of the getEmployeeInfo() method.

this.getFullName() + ", " + this.position;

The first part of the statement is this.getFullName()....
Forum: BOOK: JavaScript 24-Hour Trainer April 15th, 2015, 12:18 PM
Replies: 8
Views: 1,538
Posted By jmcpeak
Hello, Coda. Lesson 9 discusses the concept...

Hello, Coda.

Lesson 9 discusses the concept on inheritance in JavaScript. Inheritance in JavaScript is achieved by chaining one object's prototype with another object's prototype. So from that...
Forum: BOOK: JavaScript 24-Hour Trainer June 21st, 2013, 11:38 AM
Replies: 1
Views: 1,779
Posted By jmcpeak
Howdy mrubin78, The code you provided uses...

Howdy mrubin78,

The code you provided uses ToUpperCase() instead of toUpperCase(). That should solve the problem for Firefox. As for IE9, make sure the browser is in IE9 standards mode.
Forum: BOOK: JavaScript 24-Hour Trainer June 21st, 2013, 10:01 AM
Replies: 5
Views: 1,650
Posted By jmcpeak
Apologies, mrubin78. My spam filter caught...

Apologies, mrubin78.

My spam filter caught the email alerting me to your reply. It looks like the issue is in the HTML for the frameset pages (main and top):

frameset_main:
<body>
...
Forum: BOOK: JavaScript 24-Hour Trainer February 5th, 2013, 10:30 AM
Replies: 1
Views: 760
Posted By jmcpeak
Howdy, econophil. It looks like the code...

Howdy, econophil.

It looks like the code works because you're executing handleonload(). By adding the () to the end of the function name, you execute that function. And since the page is a very...
Forum: BOOK: JavaScript 24-Hour Trainer January 7th, 2013, 11:42 AM
Replies: 1
Views: 874
Posted By jmcpeak
You don't have to specify the parameter if you...

You don't have to specify the parameter if you don't need it. Most of the time, however, you'll it defined even if it's not used. It's a practice the majority of people follow.
Forum: BOOK: JavaScript 24-Hour Trainer January 7th, 2013, 11:39 AM
Replies: 1
Views: 883
Posted By jmcpeak
Howdy, Econophil. Apologies for the late...

Howdy, Econophil. Apologies for the late response.

There are different types of object-oriented languages. The most common are class-based OO languages (C#, C++, Java, etc). A programmer defines a...
Forum: BOOK: JavaScript 24-Hour Trainer December 4th, 2012, 01:22 AM
Replies: 4
Views: 1,459
Posted By jmcpeak
Howdy, econophil. From a teaching...

Howdy, econophil.

From a teaching standpoint, I wanted to focus on teaching JavaScript. Going a route that requires extra CSS and/or polyfills adds unwanted complexity to the already complex topic...
Forum: BOOK: Beginning JavaScript 4th Edition November 21st, 2012, 11:35 AM
Replies: 1
Views: 969
Posted By jmcpeak
Howdy, Truck35. The problem boils down to...

Howdy, Truck35.

The problem boils down to the conditions in the if and while statements. Let's look at the if statement:

// original
if (isNaN(a||b||c)==true)

It's understandable why you...
Forum: BOOK: JavaScript 24-Hour Trainer October 17th, 2012, 11:17 AM
Replies: 5
Views: 1,650
Posted By jmcpeak
Howdy, mrubin78. I apologize for my delay in...

Howdy, mrubin78.

I apologize for my delay in getting back with you. I'm afraid I cannot help you without seeing your code. Can you please copy and paste the code for each of the files, or upload...
Forum: BOOK: JavaScript 24-Hour Trainer October 17th, 2012, 11:13 AM
Replies: 2
Views: 919
Posted By jmcpeak
Howdy, Julsfelic. The issue is the submit...

Howdy, Julsfelic.

The issue is the submit button's type attribute. It is set as "button", which by default does not submit a form. Change that to "submit", and you'll be good to go.
Forum: BOOK: JavaScript 24-Hour Trainer June 28th, 2012, 12:23 AM
Replies: 3
Views: 1,373
Posted By jmcpeak
Howdy, RuthL. I apologize for the...

Howdy, RuthL.

I apologize for the discrepancy between the code download and the examples in Chapter 19. I will look into getting the code download updated.

As to what works and what doesn't:...
Forum: BOOK: JavaScript 24-Hour Trainer June 24th, 2012, 11:09 AM
Replies: 1
Views: 2,024
Posted By jmcpeak
Howdy, Bofonic. How are you running this...

Howdy, Bofonic.

How are you running this page? Are you double-clicking the icon? Pages using Ajax have to be served from a web server. So if you haven't already, setup a web server on your...
Forum: BOOK: JavaScript 24-Hour Trainer March 22nd, 2012, 11:12 AM
Replies: 8
Views: 1,538
Posted By jmcpeak
Howdy, E01T. Yes, you can put properties on...

Howdy, E01T.

Yes, you can put properties on the prototype, and the numberOfLegs property would be a good candidate for the prototype. But some Person instances might not have 2, so the constructor...
Forum: BOOK: JavaScript 24-Hour Trainer March 15th, 2012, 04:48 PM
Replies: 1
Views: 605
Posted By jmcpeak
Howdy, Wes. Can you copy and paste the code...

Howdy, Wes.

Can you copy and paste the code you're using, please (both HTML and JavaScript)?
Forum: BOOK: JavaScript 24-Hour Trainer March 13th, 2012, 02:53 PM
Replies: 4
Views: 806
Posted By jmcpeak
Howdy, Zanderfly. The PHP is failing on the...

Howdy, Zanderfly.

The PHP is failing on the call to json_encode(). The exact error is:

<b>Fatal error</b>: Call to undefined function: json_encode() in...
Forum: BOOK: JavaScript 24-Hour Trainer March 12th, 2012, 07:34 PM
Replies: 4
Views: 806
Posted By jmcpeak
Howdy, Zanderfly. First, yes, you are...

Howdy, Zanderfly.

First, yes, you are correct by choosing non ASP JavaScript.

As to your particular problem, I'm afraid I can't offer any help without a link. Unless your server is insecure,...
Showing results 1 to 25 of 87

 


All times are GMT -4. The time now is 06:01 AM.


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