Hi, I've been twisting my head with this for several hours, so now I give up...I'm implementing Identify on a dynamic service, where the main content comes from a esri.request call (from a different REST endpoint somewhere, based on the ID of the feature). I'm doing it pretty much the same way as the "Indentify - Popup" sample. But on the template I do this:
var template = new esri.InfoTemplate(); // new esri.dijit.PopupTemplate(); - I've tried both
template.setTitle("Some title");
template.setContent(getInfoWindowContent);
feature.setInfoTemplate(template);
And the function generating the content looks exactly like the getTextContent function in the "InfoWindow - Deferred" sample.When I return a string from the getInfoWindowContent function, it works fine. But when I return dojo.Deferred, I get a JavaScript error like this:Exception... "Could not convert JavaScript argument arg 0 [nsIDOMHTMLDivElement.appendChild]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.6 :: <TOP_LEVEL> :: line 14" data: no]http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.6Line 14If this is not supported, does anyone have any suggestions on how to accomplish this?Thanks.