Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Mar 2003
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    XML, Javascript and HTML question

    how can I parse XML with javascript to create HTML.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Newcastle, England
    Posts
    178
    Thanks
    0
    Thanked 0 Times in 0 Posts
    One way is to load the XML file as an ActiveX object. Here's an example:

    http://www.patrick-brennan.com/javas...ort_table.html

    patrick

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #4
    New to the CF scene
    Join Date
    Mar 2003
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You want to read the directory listing of the CD ... hmm ... we've come full circle here from your original thread

    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?
    Last edited by brothercake; 03-21-2003 at 04:16 PM.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #6
    New to the CF scene
    Join Date
    Mar 2003
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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)

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sounds to me like what you need is a native application.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #8
    New to the CF scene
    Join Date
    Mar 2003
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can you "translate" that?

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •