On 31 Jul 2006 16:51:55 +0200, "roy" <as*@for.myemailwrote:
>hi,
i need some help with xml and js ...
in my html page i've to show a grid with some data retrieved from
an xml file ...
i need to this beacuse i've to use online, on a webserver and offline
with all files on a usb key, cd, etc ...
which is the best way to accomplish this ?
i suppose a solution it could be via javascript
-locally open the xml file that contains the data e then
render then grid
now i wornder about the best way to do this ...
i've read about xsl transofrmation and so on ...
if it's possible i'h to achieve this with a cross-browser solution !
thanks much in advace for any help,suggestion,reference ...
andrew
Andrew,
I've had some experience in these situations where I've used AJAX
to format data from a table or directly from the XML file coming from
the server. Once your back in the client script you can parse out the
data using DOM and format it as needed for display. The XSLT is a
good idea. I don't have any working code using XSLT as I'm currently
in the processing of developing a site using this framework. Here is
a link that will get you some information using AJAX:
http://developer.mozilla.org/en/docs/AJAX
I would hold off on the XSLT until you can effectively communicate
client/server using the AJAX component. If you need some more
information on AJAX let me know and I'll send you a couple sample
scripts.
Matt