|
Subject:
|
Chapter 4 Example Code Errors
|
|
Posted By:
|
beckerm13
|
Post Date:
|
8/15/2006 1:09:40 PM
|
While trying to run the examples from Chapter 4, I get an error stating that "Your browser doesn't support an XML DOM document" on line 2, char 1529 using IE6.
When trying to view the zxml.js file, the code is displayed on one line, no matter what viewer/editor I use.
Usng Firefox 1.5.0.6 I get the following:
Error: missing catch or finally after try Source File: file:///C:/download/777781Pro_AJAX/Ch04/XSLT/Best%20Picks%20Revisited/zxml.js Line: 1, Column: 183 Source Code: );}else if($a.useActiveX){if(!$a.XMLHTTP_VER){for(var i=0;i<$a.ARR_XMLHTTP_VERS.length;i++){try{new ActiveXObject($a.ARR_XMLHTTP_VERS[i]);$a.XMLHTTP_VER=$a.ARR_XMLHTTP_VERS[i];break;};catch($e){}}};if($a.XMLHTTP_VER){return new ActiveXObject($a.XMLHTTP_VE
Error: zXmlHttp is not defined Source File: file:///C:/download/777781Pro_AJAX/Ch04/XSLT/Best%20Picks%20Revisited/book.htm Line: 9
When trying to view the zxml.js file, the code is displayed on one line, no matter what viewer/editor I use.
Any suggestion on how to get these Chapter 4 examples to run? It seems it is related to the zxml.js file.
Marty
|
|
Reply By:
|
nzakas
|
Reply Date:
|
8/25/2006 9:49:16 PM
|
Marty,
Please download the latest zXml version from http://www.nczonline.net/downloads/.
Nicholas C. Zakas Author, Professional JavaScript for Web Developers (ISBN 0764579088) http://www.nczonline.net/
|
|
Reply By:
|
beckerm13
|
Reply Date:
|
9/28/2006 3:34:43 PM
|
Nicholas:
I am using the latest 777781Pro_AJAX.zip from the download area. No change.
Marty
|
|
Reply By:
|
nzakas
|
Reply Date:
|
9/28/2006 3:40:14 PM
|
Marty,
Please download the latest zXml version from http://www.nczonline.net/downloads/.
Nicholas C. Zakas Author, Professional JavaScript for Web Developers (ISBN 0764579088) http://www.nczonline.net/
|