DWR - DOJO problem

View: New views
1 Messages — Rating Filter:   Alert me  

DWR - DOJO problem

by amittarecg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am rendering a jsp using a  DWR call . Rendering is done using innerHtml of DIV tag ,like following
var detailsDiv = document.getElementById("detailsDiv");
detailsDiv.innerHTML = result;

'result' is returned from a DWR call. Now the jsp getting rendered through this contains dojo widget, which is not getting rendered at all. I am trying to display a richtext widget for a textarea element. But somehow it gives error for line ,
dojo.widget.createWidget("dojo:RichText",{widgetId: "rtDesId"},dojo.byId('descriptionRId'));

where ''descriptionRId'' is a text area id inside the jsp getting rendered

I am calling above line after the following line,
detailsDiv.innerHTML = result;

All the javascript metioned here gets called inside a callback of a DWR call.