Got a problem with jquery. I cant get a .xml file from the server, using the ajax function in jquery. I tried to call an alert upon succes and upon error, but nothing triggers. I did it this way:
$.ajax({
type: "GET",
url: "Levels.xml",
dataType: "xml",
error: function(){
alert("Ajax failed!");
},
success: function(xml){
alert(xml);
}
});
That did not work. Edit: I have this code in my xml file:
<?xmlversion="1.0" encoding="ISO-8859-1"?>
<Level id="TestLevel" theme="woods">
<Wall>
<Row>111111111111111111111</Row>
<Row>100000000000000000001</Row>
<Row>100000000000000000001</Row>
<Row>100000000000000000001</Row>
<Row>100000000000000000001</Row>
<Row>100000000000000000001</Row>
<Row>100000000000000000001</Row>
<Row>100000000000000000001</Row>
<Row>100000000000000000001</Row>
<Row>100000000000000000001</Row>
<Row>100000000000000000001</Row>
<Row>111111111111111111111</Row>
</Wall>
</Level>
Renaming the XML File to something else like "sites.xml"
fixes this on my server.
Appears that "levels" is somehow related to the xml request by ajax.
cheers
PrimuS