AnsweredAssumed Answered

YUI related issue !

Question asked by g_rathod on Mar 30, 2010
Friends,

While customizing part,


onUpdate: function onUpdate()
         {
            var success = function(res)
            {
               var fnSetter = function(id, val)
               {
                  Dom.get(parent.id + id).innerHTML = val ? $html(val) : "";
               };
              
               var person = YAHOO.lang.JSON.parse(res.serverResponse.responseText);
              
            
            Alfresco.util.PopupManager.displayPrompt(
            {
               title: "DebugWindow",
               text: "res :" + res.serverResponse.responseText;
            });
         


I got dialog printing res.serverResponse.responseText value that is my JSON object returning.
but when I am using  person.firstName  or person.lastName  it gives me undefined.

Error: Dom.get(parent.id + id) is null
Source File: http://localhost:8080/share/components/contact/users-min.js
Line: 536

eventhough response getting, I am not getting its values.
Help me.

Outcomes