...

XML, Javascript and HTML question

Neworld
03-18-2003, 01:27 PM
how can I parse XML with javascript to create HTML.

mpjbrennan
03-19-2003, 09:24 AM
One way is to load the XML file as an ActiveX object. Here's an example:

http://www.patrick-brennan.com/javascript/xml_sort_table.html

patrick

brothercake
03-20-2003, 01:28 AM
btw - if your goal is simply to be able to produce client-side pages generated from XML data, javsacript is not necessary. You can also add a stylesheet tag directly into the XML document.

Neworld
03-20-2003, 10:53 AM
Where can I find some tutorials about that? What I need is something capable to display the directories that exist inside a cd. The html will be the index page of that same cd.

brothercake
03-21-2003, 04:08 PM
You want to read the directory listing of the CD ... hmm ... we've come full circle here from your original thread (http://www.codingforums.com/showthread.php?s=&threadid=16505)

Basically - I suggested XML to you because of its usefulness as a mini-database you can parse client side.

But actually reading the CD and extracting its directory listing is something else entirely.

You mentioned ActiveX support being problematic - well basically that's it; the only browser-based way of reading a CD directory is through active X.

What's the bottom line here - you want to build a CD-based catalogue? But surely - at the point when you burn the CD, you know what it contains ... you can make a static file, no?

Neworld
03-21-2003, 04:21 PM
Well. I could. But this is the fun in it. I have to choose from, let say, something like 2000 products. The products are inside a database and there's the possibility of choosing all the products. Problem number two: each product has a field called categorie, and it can be an infinite number of categories. Each categorie is a "folder" so resuming, It could take a lot to do that. So the easiest way was to use a language that everyone can use (no need of special software)

brothercake
03-21-2003, 07:04 PM
Sounds to me like what you need is a native application.

Neworld
03-24-2003, 12:19 PM
Can you "translate" that?

brothercake
03-26-2003, 12:41 AM
I mean Windows software; a program that runs on the CD and acts as a directory browser.

Sorry I can't be more helpful; this is beyond what I know about.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum