dynamic XML data island


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: dynamic XML data island

  1. #1
    Vincent Guest

    dynamic XML data island


    Hi there,

    I have a data island bound as the data source for input fields. The xml that
    forms the data island is getting dynamically created.
    //
    function window.onload()
    {
    xmldso.XMLDocument.load("/test/t/test.xml");
    }
    //
    I am using SQL Server 2000.
    My XML file is like this: /localhost/virtualdir/template/file.xml(see above)
    When adressing this XML file, it automatically extracts data from my database.

    While viewing my page from the webserver itself with IE, all works fine.

    But when I try to view the page from the outside, it doesnt load data at
    all.

    While when I try to view the same page but with a link to another XML File(which
    is static with exactly the same structure), it works.
    //
    function window.onload()
    {
    xmldso.XMLDocument.load("bedrijfoverzicht.xml");
    }
    //

    How can I get this thingy working? How can I get my file-direct working?
    It seems as if the test/t/test.xml is being seen as a local file or some
    like that?!?

    Thnkx

  2. #2
    Thorir Guest

    Re: dynamic XML data island


    Well... if this is the link to your file:
    /localhost/virtualdir/template/file.xml

    then that appears to be on your machine, not "outside" on a server.. and
    ofcourse the server can't access you document..

    is this the answer?

    "Vincent" <vincent@meos.nl> wrote:
    >
    >Hi there,
    >
    >I have a data island bound as the data source for input fields. The xml

    that
    >forms the data island is getting dynamically created.
    >//
    >function window.onload()
    >{
    > xmldso.XMLDocument.load("/test/t/test.xml");
    >}
    >//
    >I am using SQL Server 2000.
    >My XML file is like this: /localhost/virtualdir/template/file.xml(see above)
    >When adressing this XML file, it automatically extracts data from my database.
    >
    >While viewing my page from the webserver itself with IE, all works fine.
    >
    >But when I try to view the page from the outside, it doesnt load data at
    >all.
    >
    >While when I try to view the same page but with a link to another XML File(which
    >is static with exactly the same structure), it works.
    >//
    >function window.onload()
    >{
    > xmldso.XMLDocument.load("bedrijfoverzicht.xml");
    >}
    >//
    >
    >How can I get this thingy working? How can I get my file-direct working?
    >It seems as if the test/t/test.xml is being seen as a local file or some
    >like that?!?
    >
    >Thnkx



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