Amit
Thanks for answering. My fault the path to gears_init.js was not
respective to the manifest.json file. But now it works fine and a
GearsHttpRequest object is created.
I tried to do read my navigation file as a string. What I get back is
an empty string:
<script type="text/javascript">
var request = google.gears.factory.create('beta.httprequest');
request.open('GET', '/highlights/en/navigation.xml');
request.onreadystatechange = function() {
if (request.readyState == 4) {
updatePage(request.responseText);
}
};
request.send();
function updatePage(str){
...
}
</script>
I am aware of the restriction that the GearsHttpRequest cannot access
the response as an XML-DOM object. But I expected at least a string.
Was that a wrong idea?
Thanks
Riccardo