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 217
Search took 0.04 seconds.
Search: Posts Made By: nzakas
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 July 19th, 2011, 10:14 PM
Replies: 1
Views: 1,847
Posted By nzakas
"Intervals may be skipped" doesn't mean that the...

"Intervals may be skipped" doesn't mean that the code in the example won't be executed. It means that if you're using intervals, they may not occur as frequently as you think based on what's already...
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 November 6th, 2010, 10:07 PM
Replies: 1
Views: 1,916
Posted By nzakas
The code is correct, it was just a way to show...

The code is correct, it was just a way to show that catchall getters and setters could be used.

In any event, it's not useful now since ECMAScript 4 is dead and won't be implemented.
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 November 6th, 2010, 04:30 PM
Replies: 5
Views: 1,478
Posted By nzakas
I wouldn't use a try-catch for the event handler...

I wouldn't use a try-catch for the event handler situation. This is pretty easy to detect just checking for the functions. Generally speaking, if you test for a function and it's there, you can...
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 November 5th, 2010, 09:02 PM
Replies: 5
Views: 1,478
Posted By nzakas
Strictly speaking, this is not a contradiction....

Strictly speaking, this is not a contradiction. My words were "your code". In this case, it's not your code that's throwing the error, it's the browser's code (appendChild). The point of my statement...
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 November 1st, 2010, 07:20 PM
Replies: 1
Views: 1,474
Posted By nzakas
code should not be quoted. This issue was...

code should not be quoted. This issue was reported on the errata...
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 November 1st, 2010, 07:19 PM
Replies: 3
Views: 1,632
Posted By nzakas
The first issue has already been reported, please...

The first issue has already been reported, please see:
http://www.wrox.com/WileyCDA/WroxTitle/Professional-JavaScript-for-Web-Developers-2nd-Edition.productCd-047022780X,descCd-ERRATA.html

As a side...
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 November 1st, 2010, 07:11 PM
Replies: 3
Views: 1,523
Posted By nzakas
Yes, you are correct, the wording should be...

Yes, you are correct, the wording should be changed. I'll make sure this gets updated.
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 September 28th, 2010, 06:10 PM
Replies: 1
Views: 1,145
Posted By nzakas
This isn't a contradiction: one is talking about...

This isn't a contradiction: one is talking about performance, the other is talking about maintainability. You definitely shouldn't embed HTML into your JavaScript code - that's absolutely true. That...
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 September 18th, 2010, 09:54 PM
Replies: 1
Views: 1,024
Posted By nzakas
Prefix is passed in as part of...

Prefix is passed in as part of document.evaluate(). When this method encounters a namespace prefix, it runs the namespace resolver function and passes in the namespace prefix to be resolved.
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 September 14th, 2010, 03:49 PM
Replies: 1
Views: 1,119
Posted By nzakas
Yes, activeXString is a custom property on the...

Yes, activeXString is a custom property on the function. Remember, in JavaScript functions are also objects. The function remains in memory until the page is unloaded, so you can add properties to it...
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 September 9th, 2010, 08:57 PM
Replies: 1
Views: 673
Posted By nzakas
Page 60 is correct.

Page 60 is correct.
Forum: BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 July 29th, 2010, 07:09 PM
Replies: 1
Views: 2,021
Posted By nzakas
Please keep in mind that this is just an example....

Please keep in mind that this is just an example. :)

You're correct in that you'll get the last added comment. Whether you want that or not is, of course, dependent on the behavior you're after. It...
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 July 22nd, 2010, 07:32 PM
Replies: 2
Views: 1,278
Posted By nzakas
Hi Mike, You're testing the result incorrectly....

Hi Mike,

You're testing the result incorrectly. The way you should be testing it is:

var functions = createFunctions();

alert(functions[0]()); //10
alert(functions[1]()); //10

//etc.
Forum: BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 May 9th, 2010, 01:01 AM
Replies: 2
Views: 2,599
Posted By nzakas
It's a bit difficult to tell what could be wrong...

It's a bit difficult to tell what could be wrong from your description, but you should double-check that $_POST is available and readable first. Although $_POST is usually available, it might not...
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 March 6th, 2010, 04:56 PM
Replies: 8
Views: 2,049
Posted By nzakas
You're right, inheritance in JavaScript isn't...

You're right, inheritance in JavaScript isn't straightforward and is very different than any other language. I don't think one can explain in a forum post, which is why I wrote the book. :)

I'm...
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 March 1st, 2010, 12:04 AM
Replies: 8
Views: 2,049
Posted By nzakas
I'd like to help, but pasting a bunch of code...

I'd like to help, but pasting a bunch of code without any questions doesn't really tell me what information you're looking for. When asking for help in these forums, it's best to state 1) the...
Forum: BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 January 1st, 2010, 04:22 PM
Replies: 2
Views: 1,911
Posted By nzakas
You should be able to accomplish this by...

You should be able to accomplish this by replacing all instances of 'txtUsername' with 'txtUserName' in the PHP and HTML.
Forum: BOOK: JavaScript Programmer's Reference December 9th, 2009, 10:02 PM
Replies: 3
Views: 1,757
Posted By nzakas
Thanks for the heads up. Safari 4 wasn't out when...

Thanks for the heads up. Safari 4 wasn't out when this book was written, so that makes it a big tough to test code there. :)

Are you sure that's the correct page number? I checked (2nd edition) and...
Forum: BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 December 9th, 2009, 09:58 PM
Replies: 1
Views: 949
Posted By nzakas
The best way is to separate the data and the...

The best way is to separate the data and the markup with a string and then use split() to parse the response.

I find JSON much easier to use, but you could also create an XML document where one...
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 December 9th, 2009, 09:56 PM
Replies: 2
Views: 7,224
Posted By nzakas
Internet Explorer is the only browser that now...

Internet Explorer is the only browser that now doesn't support XPathEvaluator. You can use selectNode() and selectSingleNode() on the DOM Document object instead (IE only).
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 December 9th, 2009, 09:55 PM
Replies: 1
Views: 924
Posted By nzakas
An XSLT file is just an XML file, so you can load...

An XSLT file is just an XML file, so you can load it into a DOM in the exact same way as you would any other XML file. Only IE has the concept of FreeThreadedDocument, all other browsers just use the...
Forum: BOOK: Professional JavaScript for Web Developers 2nd edition ISBN: 9780470227800 December 9th, 2009, 09:54 PM
Replies: 1
Views: 2,108
Posted By nzakas
I'm not sure I completely understand the...

I'm not sure I completely understand the question. If you want to read an XML file, your best bet is to use an XMLHttpRequest to retrieve the file and then get the string out of responseText (instead...
Forum: BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 December 4th, 2009, 12:00 AM
Replies: 1
Views: 830
Posted By nzakas
This chapter was just a description of more...

This chapter was just a description of more advanced Ajax management. In many cases, you probably won't need this level of control over the requests.
Forum: BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 December 3rd, 2009, 11:59 PM
Replies: 1
Views: 1,111
Posted By nzakas
That is fine. A closure looks like this: var...

That is fine. A closure looks like this:


var value;
function doSomething(){
alert(value)
}

It doesn't have anything to do with parameter passing. Your onreadystatechange handler is a closure...
Forum: BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 November 25th, 2009, 12:19 AM
Replies: 2
Views: 6,420
Posted By nzakas
This is a Microsoft-specific error code. Please...

This is a Microsoft-specific error code. Please see the following documentation:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;193625
Showing results 1 to 25 of 217

 


All times are GMT -4. The time now is 04:12 PM.


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