You're almost there - the difference between loading an XML file
through the XMLHttpRequest object versus sending out a request via
HTTP is that you don't get a HTTP status code when getting the file
locally. Here's an example which parses an XML file called
"config.xml" in the top level of the widget bundle:
function onProcessReadyStateChange() {
// only if request shows "loaded"
if(request.readyState == 4) {
if(request.status == 200 || request.responseXML) {
clearTopicList();
buildTopicList(request.responseXML);
} else {
alert("There was a problem retrieving the XML data:\n"; +
request.status + " : " + request.statusText);
}
}
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/dashboard-dev/email@hidden