S
starfoxsb
Hi all.
I have a huge amount of data burnt on a CD-Rom (coming from a DB),
written on XML files.
I would like to show them to the user, by a web page.
In my first version, I build the Html page by picking data from XML
files and trasforming them by an XSL Transformation.
It works well, but as the data are quite a lot, it would be much
better to have them in different pages (besides the trasformation is
very slow).
I then tried to use Ajax.
My thought was to open the XML file and then build the different pages
with the right data range (es. 1 to 20 on the first page, 21 to 40 on
the second, and so on...) by a javascript function.
Unfortunately since my script is not running under a web server, when
I try to use the "open" method I get the error "Access is denied" (I'm
using IE 7)
XMLHttpReqObj = new ActiveXObject("Microsoft.XMLHTTP");
XMLHttpReqObj.open('GET', 'MyFile.xml', true);
Does anyone have any suggestion for solving the problem?
How could I arrange my data into different pages?
Thanks a lot for your help...
Bye!
Matteo
I have a huge amount of data burnt on a CD-Rom (coming from a DB),
written on XML files.
I would like to show them to the user, by a web page.
In my first version, I build the Html page by picking data from XML
files and trasforming them by an XSL Transformation.
It works well, but as the data are quite a lot, it would be much
better to have them in different pages (besides the trasformation is
very slow).
I then tried to use Ajax.
My thought was to open the XML file and then build the different pages
with the right data range (es. 1 to 20 on the first page, 21 to 40 on
the second, and so on...) by a javascript function.
Unfortunately since my script is not running under a web server, when
I try to use the "open" method I get the error "Access is denied" (I'm
using IE 7)
XMLHttpReqObj = new ActiveXObject("Microsoft.XMLHTTP");
XMLHttpReqObj.open('GET', 'MyFile.xml', true);
Does anyone have any suggestion for solving the problem?
How could I arrange my data into different pages?
Thanks a lot for your help...
Bye!
Matteo