Is it possible to view the contents of a treeview with innerHTML when the data has been populated with an XML file? If so, could you give an example?
Thanks…
Hello,
could you please explain your requirement in details. What innerHTML did you mean ? and what shoudl be done with it ?
Alex, I am trying to take the contents of one dhtmlxtree and display into a
elsewhere on my page. I thought that by using innerHTML to display with onclick() to the div will solve my problem, but that�s not the case � When I click the preview template button, I get an undefined error. My treeviews are populated with XML with drag and drop activated. Thanks for bearing with a newbie.
The innerHTML script:
function showText(){
var myTemplateholder = document.getElementById(‘myTemplateholder’).value;
document.getElementById(‘showMe’).innerHTML = myTemplateholder;
}
The build your template container Div:
And the WYSIWYG holding area:
The innerHTML script:
function showText(){
var myTemplateholder = document.getElementById(‘myTemplateholder’).value;
document.getElementById(‘showMe’).innerHTML = myTemplateholder;
}
The build your template container Div:
And the WYSIWYG holding area:
div doesn’t have value property. Try to use innerHTML instead:
var myTemplateholder = document.getElementById(‘myTemplateholder’).innerHTML;
Once again, thanks for your help Alex!