View Single Post
  #3 (permalink)  
Old May 26th, 2009, 06:37 PM
dastard dastard is offline
Registered User
 
Join Date: May 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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