|
|
 |
BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6
 | This is the forum to discuss the Wrox book Professional Ajax, 2nd Edition by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780470109496 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

May 25th, 2009, 04:16 PM
|
|
Registered User
|
|
Join Date: May 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
zxml library XMLHttpRequest() problem
I have been using the excellent zxml library for the last year so on a site hosted on Ubunu 6.04. I have now migrated to Ubuntu 8.04 and the Ajax now fails. I have narrowed the problem to the line:-
Code:
return new XMLHttpRequest();
in zxml. js. Using IE8 I get the error "Object doesn't suppot this property or method" (IE7 gave similar error). Strangely, if after loading the page I 'refresh' the browser the code then works.
Can anyone explain what is going on here?
Thanks.
|

May 26th, 2009, 06:38 PM
|
 |
Wrox Author
|
|
Join Date: Nov 2005
Location: , Texas, USA.
Posts: 33
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Howdy, dastard.
I can't think of anything off the top of my head that would cause this. Can you provide a link to the page giving you the error?
|

May 26th, 2009, 07:37 PM
|
|
Registered User
|
|
Join Date: May 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks for replying Jeremy. I seem to have inadvertently found the solution myself. The page is on an intranet and on trying to find the minimum code to replicate the problem I found that
Code:
<html>
<head>
<title>Ajax test</title>
<script type="text/javascript"src="js/zxml.src.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script language="javascript" type="text/javascript">
var oXHR = zXmlHttp.createRequest();
</script>
</head>
gives an error whilst
Code:
<html>
<head>
<title>Ajax test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript"src="js/zxml.src.js"></script>
<script language="javascript" type="text/javascript">
var oXHR = zXmlHttp.createRequest();
</script>
</head>
is ok.
Thus calling the js library before the meta tag does not work. Perhaps this is to be expected - I don't know. Perhaps you could comment? Anyway it's working now!
Thanks again,
Dastard
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |