I have a spry solution I am working that looks like the html document below.
This works fine and gives me no problems at all. However if I change the xml
file
to an xml string that is generated from mssql like this

<!--- get all open taks --->
<cfset tasks = createObject("component", "com.danvega.task
").getOpenTasksXML()>

The mssql query basically turns it into xml auto elements. This data is
returned like this and I am wondering why the spry data set does not work if
try to reference it like so

    <script>
        var dsTasks = new Spry.Data.XMLDataSet
("<cfoutput>#tasks#</cfoutput>","tasks/task");
        Spry.Data.Region.debug = true;
    </script>

<tasks><task><dueDate>2006-09-28T00:00:00</dueDate><taskId>274</taskId><taskmaster><taskName>Obtain
Client Data
Form</taskName><student><clientID>48</clientID><studentlast>Dawson</studentlast></student></taskmaster></task>
</tasks>


<html>
<head>
    <title>Taks List Example</title>
    <script src="../js/spry/xpath.js" type="text/javascript"></script>
    <script src="../js/spry/SpryData.js" type="text/javascript"></script>
    <script>
        var dsTasks = new Spry.Data.XMLDataSet("tasks.xml","tasks/task");
        Spry.Data.Region.debug = true;
    </script>
</head>

<body>

    <div spry:region="dsTasks">
        <div spry:state="loading">loading</div>
        <div spry:state="error">An error occured loading your dataset.</div>

        <div spry:state="ready">
        <table class="dg" cellpadding="0" cellspacing="0" border="0">
        <thead>
        <tr>
            <td>&nbsp;</td>
            <td>Task Name</td>
            <td>Client</td>
            <td>Due Date</td>
            <td>Action</td>
        </tr>
        </thead>
        <tbody>
        <tr spry:repeat="dsTasks">
            <td>{dsTasks::ds_RowNumber}</td>
            <td></td>
            <td></td>
            <td>{dsTasks::dueDate}</td>
        </tr>
        </tbody>
        </table>
        </div>

    </div>

</body>
</html>


-- 
Thank You
Dan Vega
[EMAIL PROTECTED]
http://www.danvega.org


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271337
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to