Wrox Programmer Forums
|
BOOK: Professional Ajax ISBN: 978-0-471-77778-6
This is the forum to discuss the Wrox book Professional Ajax by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780471777786
Important: For the new 2nd edition of this book, please post here instead: [url="http://p2p.wrox.com/forum.asp?FORUM_ID=307"]http://p2p.wrox.com/forum.asp?FORUM_ID=307[/url]
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ajax ISBN: 978-0-471-77778-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 7th, 2006, 04:15 PM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with xslt

hello,
tried you book.htm/xml/xsl
Works in IE6 but not in Firefox 1.4 and Opera 8.52:

This is in the JS-Console of Firefox:
Fehler: uncaught exception: [Exception... "Not enough arguments [nsIXMLHttpRequest.send]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://localhost/ajax/professional/C...sited/book.htm :: init :: line 19" data: no]

Any ideas???

 
Old March 7th, 2006, 04:30 PM
nzakas's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 217
Thanks: 0
Thanked 5 Times in 5 Posts
Default

It's impossible to know what the problem is without seeing the code that you are using or at least referencing which example you are having problems with. If you can be more specific, we may be able to help.

Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)
http://www.nczonline.net/
 
Old March 8th, 2006, 03:12 AM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It it the example from chapter 4, the files book.htm, book.xml and book.xsl, for cross-browser.
It is in the download: CH04\XSLT\Best Picks Revisited

Ralf

 
Old March 8th, 2006, 04:23 AM
AGS AGS is offline
Wrox Technical Editor
 
Join Date: May 2005
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

For Firefox you should use null as a parameter for send() method if there is no data to be sent:
Code:
 oReq.send(null);
Sorry, Nicholas, I've missed it somehow :).

As regards Opera there are other problems and as far as I understand this example was not intended to work in it.

Best regards
Alexei
 
Old March 8th, 2006, 06:15 AM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
works fine now in Firefox, but not in Opera 8.52

Error:

Book XML Exercise
http://localhost/ajax/professional/xsl/book.htm
Unknown thread
Error:
name: TypeError
message: Statement on line 1: Type mismatch (usually a non-object value used where an object is required)
Backtrace:
  Line 1 of linked script http://localhost/ajax/professional/xsl/zxml.js
    if (zXml.useDom)
    else
      Line 17 of inline#1 script in http://localhost/ajax/professional/xsl/book.htm
    var oXmlDom = zXmlDom.createDocument();
  Line 8 of inline#1 script in http://localhost/ajax/professional/xsl/book.htm
    transformXml(oReq.responseText);
  At unknown location
    [statement source code not available]

 
Old March 10th, 2006, 01:31 AM
jmcpeak's Avatar
Wrox Author
 
Join Date: Nov 2005
Posts: 87
Thanks: 0
Thanked 18 Times in 17 Posts
Default

Ugghh. That's my fault, Alexei.

As for Opera: Opera 8.x doesn't support XSL or XPath. Opera 9 (yet to be released) does, however, and may be covered in future revisions of Professional Ajax. Unfortunately, Opera (any version) still does not implement an XML DOM =/

------------------------
Jeremy McPeak
Author, Professional Ajax
http://www.wdonline.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT problem with IE 7 asadallahi BOOK: Professional Ajax ISBN: 978-0-471-77778-6 3 April 9th, 2009 09:33 AM
xslt problem mickhughes XSLT 3 March 28th, 2008 05:09 AM
XSLT problem her_today XSLT 1 October 23rd, 2006 11:09 AM
dynamic xslt -> xslt creation namespace problem jkmyoung XSLT 2 July 15th, 2006 12:42 AM
XSLT problem pendyalap XSLT 4 March 24th, 2006 04:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.