• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

vvOut_toJSON_pair problems

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • vvOut_toJSON_pair problems

    I'm having a problem when the string I need to output contains " (quote marks). For example a string of XML like:
    <?xml version="1.0" encoding="utf-8"?>

    when I try to execute this line of javascript:
    var resp = Ext.decode(response.responseText);

    I get the error

    Uncaught Ext.JSON.decode(): You're trying to decode an invalid JSON String: {"SUCCESS":"1","XMLDATA":"<?xml version=\"1.0\" encoding=\"utf-8\"?>"}


    note: I need the xml in a return variable. I do not wish to parse the xml and read it that way..

  • #2
    Persistence pays off.. Instead of using vvOut_toJSONpair, I first used vvUtility_encode(data:XML); and then vvOut_data(data:HTML);
    problem sovled.

    Comment

    Working...
    X