Вопрос

If you head over to flowbase.co.uk and view the source, you'll see what I mean. The text, when clicked, fires a function in an external js file (scripty.js). This then should retrieve the contents of an XML file on the same server and parse those contents into an XML document before displaying the length of the variable holding this XML document. For some reason, i'm not getting any joy - nothing at all happens when clicking the text.

Any ideas?

Это было полезно?

Решение

responseXML is not a function, it is a variable.

Change

dataModel = requestData.responseXML();

To

dataModel = requestData.responseXML;
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top