[Dojo-interest] document.getElementById not working after domConstruct.place

Stephen Gevers nabble at steve.gevers5.com
Mon Oct 24 13:57:40 EDT 2016


You probably want “only” instead of “replace”

> On Oct 19, 2016, at 11:35 AM, dolot <dsouthern at targetedgeosystems.com> wrote:
> 
> Found the solution.  I simply replaced the line:
> 
> domConstruct.place(data, element, "replace");
> 
> with:
> 
> element.innerHTML = data;
> 
> My guess is that .place was replacing 'element' with 'data', rather than
> inserting 'data' into 'element'.  I guess I misunderstood how place was
> working.  In this case, I don't really need domConstruct at all.
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://dojo-toolkit.33424.n3.nabble.com/document-getElementById-not-working-after-domConstruct-place-tp4007006p4007007.html
> Sent from the Dojo Toolkit mailing list archive at Nabble.com.
> -- 
> Dojo Toolkit: http://dojotoolkit.org/
> Tutorials: http://dojotoolkit.org/documentation/
> 
> Dojo-interest at mail.dojotoolkit.org
> To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20161024/c4b93579/attachment.htm 


More information about the Dojo-interest mailing list