Try using jQuery/YUI perhaps? Or at least debug it using Firebug/Developer tools -> Network. I'm assuming url in code example got modified by this forum as having a tag inside url would not work.
Some nitpicks:
- Your writing to the DOM on every readystate callback, probably causing rendering reflows on every call.
- 'dyn' is now a global variable
- This will not work in IE 6, it does not have XMLHttpRequest object but an ActiveX object instead - I think you need to define xhr.onreadystatechange after xhr.open, but most people have have moved on to use libs for these things by now so not sure anymore.
- the readystate is 4 (whitch mean the REST api is sending something)
- the status of the response is 0 (200 is expected normally) - the responseText is empty (the json format of content/node/2 is expected)
I've check the php code in kernel/private/rest. The code make an intensive use of eZ/zeta components MvcTools. The response is created by the MvcResult class. When this class is instanciated, the status properties is set to 0. I think this is the problem. May be there is some change to do in the rest.ini settings...
You must be logged in to post messages in this topic!