dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: YUI datatable and XML datasource without XHR

  1. #1
    Join Date
    May 2007
    Posts
    6

    YUI datatable and XML datasource without XHR

    I am involved in a project where I have to use the YUI datatable.
    The problem is that YUI works fine with online xml ie. xml fetched from an online source such as a website.
    ie.

    var myDataSource = new YAHOO.util.DataSource("./bin/k.php");

    works fine.
    but when I use something like this.

    var xmldata="<?xml version='1.0' encoding='UTF-8'?>
    <details>
    <name>david</name>
    <age>22</age>
    </details>";
    YAHOO.util.DataSource(xmldata)...

    it does not work.
    The problem is that the project I am working on does not provide live XML data from server. The XML has to be fetched using authentication from a different JS. So I get only the XML data stored in a variable like 'xmldata'.
    Is there any way to make YUI datatable to accept this data and display he details on the table.

  2. #2
    Join Date
    Apr 2010
    Posts
    1
    hi me too want that plz help me

Similar Threads

  1. Help Please with sorting XML data in datagrid
    By Cab_0001 in forum ASP.NET
    Replies: 7
    Last Post: 01-18-2007, 09:33 PM
  2. data containers in a .NET distributed app
    By Daniel Pratt in forum .NET
    Replies: 27
    Last Post: 09-16-2002, 11:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center