| Jez Brewster 2004-03-02, 12:36 pm |
| Deferred loading of data via the Treeview HTC in BizDesk sounds like a great idea, but I must be missing a trick somewhere.
If I have a treeview data island of:
========================================
=============
<xml id=<xml id='taxonomyTreeViewXml'><document skip='yes'><s caption='ServiceLine'><HC caption='Pharmaceuticals and Healthcare'><Therapeu caption='Therapeutic Area' closed='yes'><expand /></Therapeu><CNS caption='Central Nervous System' closed='yes'><exp
and/></CNS></HC><FS caption='Financial Services'/></s><operations hidden='yes'><expand formid='treeViewExpand' /></operations></document></xml>
========================================
=============
.... and I want to load the children of the element "Therapeu" on-demand. I created an HTML form called "treeViewExpand" and used the onItemOpen event to set a hidden input value on this form. Then I set the ACTION property on the HTML form to a ASP con
taining the following:
========================================
=============
<!-- #INCLUDE FILE="../../include/BDXMLHeader.asp" --><!-- #INCLUDE FILE="../../include/ASPUtil.asp" --><!-- #INCLUDE FILE="../../include/DBUtil.asp" --><!-- #INCLUDE FILE="../../include/HTTPXMLUtil.asp" --><%
ServiceXMLRequest()
Sub ServiceXMLRequest()
Response.Write "<Oncology caption='Oncology' closed='yes'/><Respirat caption='Respiratory' closed='yes'/>"
End Sub
========================================
=============
The error message that I receive "Only one top level element is allowed in an Xml document" is logical. But HOW do I go about retrieving multiple children for a taxonomy term. If I can only ever return one child, this seems fairly confusing.
I'd be grateful for any pointers.
|