Re: Catching multiple XMLHttpRequests
hi kayaker
this is an interesting application, i am working on similar things. i
am using an own XMLHttpRequest/Microsoft.XMLHTTP- function and didn't
have any problem so far. but as i am on an early stage, i only access
static files so far and there is no DB behind yet (and that is the main
reason why i don't have a plublic link ready).
but i am using an nested function and the request-object isn't global,
may be that could help
function LoadXMLDoc(Url) { // BASE SUR
http://developer.apple.com/internet/webcontent/xmlhttpreq.html
if (window.XMLHttpRequest) {
var Request = new XMLHttpRequest();
Request.onreadystatechange = ProcessReqChange;
Request.open('GET', Url, true);
Request.send(null);
} else if (window.ActiveXObject) {
Request = new ActiveXObject('Microsoft.XMLHTTP');
if (Request) {
Request.onreadystatechange = ProcessReqChange;
Request.open('GET', Url, true);
Request.send();
}
}
function ProcessReqChange() {
if (Request.readyState == 4) {
if (Request.status == 200) {
AddPoints(Request);
} else {
alert('There was a problem retrieving the XML data:\n' +
Request.statusText);
}
}
}
}
seems you got your sources here
http://developer.apple.com/internet/webcontent/xmlhttpreq.html isn't
it ;-)
btw, how do you select the points depending on the zoom level? are you
just taking one of a group of availables in a given area or is there
any order why there are picture let's say 6 picture points on zoomlevel
14 and 48 on level 10? why those 8 and not other ones, why 8? just
interested if you have some hierachy behind all that.
greetings from austria/europe,
andré
0 Comments:
Yorum Gönder
<< Home