Yes, it was. I'm not sure who or what was inserting the newline char. I'm a little weak at advanced JS. Here is how I got it to work:
var pos = "";
var myjson = xmlHTTP.responseText ;
otherjson = eval("(" + myjson+ ")");
view["data"]=otherjson ;
var documents= view["data"].viewentry ;
for (var i=0; i<documents.length; i++)
{
alert('in loop: ' )
pos += documents[i].entrydata[1].text[0] ;
}
$("viewtable").innerHTML = pos ;
So, per wikipedia, I ran an eval on what was returned back to me. I then modifed your example to point view["data"] to the eval return, rather than what was returned from Domino. I'm developing in 7.0.2 and FF 1.5.0.9
Yes, it was. I'm not sure who or what was inserting the newline char. I'm a little weak at advanced JS. Here is how I got it to work:
var pos = "";
var myjson = xmlHTTP.responseText ;
otherjson = eval("(" + myjson+ ")");
view["data"]=otherjson ;
var documents= view["data"].viewentry ;
for (var i=0; i<documents.length; i++)
{
alert('in loop: ' )
pos += documents[i].entrydata[1].text[0] ;
}
$("viewtable").innerHTML = pos ;
So, per wikipedia, I ran an eval on what was returned back to me. I then modifed your example to point view["data"] to the eval return, rather than what was returned from Domino. I'm developing in 7.0.2 and FF 1.5.0.9
Any ideas?