Ticket #5647 (closed enhancement: fixed)
expose functionality like dijit.layout.ContentPane and dojox.layout.ContentPane's setContent outside of dijit
| Reported by: | sfoster | Owned by: | sfoster |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | Dijit | Version: | 1.0 |
| Severity: | normal | Keywords: | |
| Cc: | alex, bill, dante, jburke |
Description (last modified by sfoster) (diff)
the ContentPane?'s hog some really useful functionality. They provide the most complete implementation of injecting html into a node - with widget parsing on the new content, script execution, style extraction/rendering, path correction etc.
If you want to use those facilities, the answer today is dijit / dojox. If your project isnt using dijit already, you are forced to load it.
I'd like to see an api like (names just for the sake of example) dojox.html.setContent(elm, htmlString); dojox.html.setContent(elm, nodeList); dojox.html.setContent(elm, nodeList, { parseContent: true, extractScripts: true});
..and so on. Eventually the implementation currently spread across the 2 ContentPanes? could call into this (if it could make it into base as dojo.setContent, or dojo.html.setContent)
(I've mentioned this idea a couple of times on #dojo, but couldnt find any ticket for it yet)
preview patch coming...