Sign In/My Account | View Cart  
advertisement

Article:
 Remote Scripting with AJAX, Part 1
Subject: Somewhat confusing typo in code listing
Date: 2005-08-23 11:31:23
From: jgehlbach

Hi!


There is a typo in the inline code listing on page 1. Near the bottom of onchangeReceipt(), the code listing says:


requester.onreadystatechange = requesterExecuteAction;


At the top of page 2, the commentary says that the handler assigned is onreadystatechangeReceipt(). It's confusing to go back to page 1 to review and not find what the commentary is talking about. example1.html in the downloadable code archive agrees with the commentary:


requester.onreadystatechange = onreadystatechangeReceipt;


Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First
  • Somewhat confusing typo in code listing
    2005-08-23 11:37:55 jgehlbach

    Oops, typo in my message too -- page numbers are wrong. I said page 1 was where the code listing is with the typo and page 2 where the commentary that references it; that is incorrect. The code listing containing the typo is on page 2 and the commentary that references the handler assignemnt is on page 3.


Sponsored By: