|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 7/12/2007 5:31:15 PM
Posts: 3,
Visits: 4
|
|
| Using VB Script and the dragnode chart. I can get the XML out of the chart and into the MS Parser but haven't a clue how to get to the <dataset> node. Any pointers to a worked example would be much appreciated dim strX, boolLoadOK, strXML 'Response.ContentType="text/xml" 'Response.Write(Request("strXML")) 'Get the XML from the Fusion Charts form... strXML = Request("strXML") 'set up instances of the MS parser set objXML = CreateObject("Microsoft.XMLDOM") set objLst = CreateObject("Microsoft.XMLDOM") objXML.async = false objLst.async = false
'Now read the Fusion Chart data into the xml parser instance objXML.LoadXML("strXML") if objXML.parseError.errorcode<>0 then 'error handling code else 'It all works to here. Now I try to select a single node, and then write the node text attribute to the page Set Node = objXML.documentElement.selectSingleNode("dataset") request.write(Node.text) ' And nothing happens...... end if
set objXML = Nothing set objLst = Nothing
%>
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 7/29/2008 12:15:49 PM
Posts: 2,001,
Visits: 474
|
|
Try traversing the entire tree using DOM once and see if it's able to access the elements.
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|