logo

New Response

« Return to the blog entry

You are replying to:

    • avatar
    • Mark C
    • Posted on Mon 29 Jan 2007 12:22 PM

    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?

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: