Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Display dynamic content in a frame controlled by the tree created from XML in another frame [modified]

Display dynamic content in a frame controlled by the tree created from XML in another frame [modified]

Scheduled Pinned Locked Moved XML / XSL
xmlhtmldata-structureshelptutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    allenzzzxd
    wrote on last edited by
    #1

    I have an XML file: Now I want generate an HTML file from it. The HTML has two vertical frames. The left one displays the treeview of the XML file. And I want the right one display content of the tree view: when I click on the "foo" node, the content will be displayed on the right. Now I have written an XSL file to get a treeview:

    root

    Foo

    An HTML file which has: function populateFrames(){ var x = new ActiveXObject("Microsoft.XMLDOM"); var s = new ActiveXObject("Microsoft.XMLDOM"); x.async = false s.async = false x.load("source.xml"); s.load("tree.xsl"); var html = x.transformNode(s); var destination = document.frames("header").document.open("text/html","replace"); destination.write(html); } As you can see, the tree will display in the "header" frame, and I want the content in the "main" frame. Could anyone tell me how to do this? It's very urgent: I'm waiting on line. Thanks very much for your help. modified on Wednesday, March 11, 2009 1:03 PM

    modified on Wednesday, March 11, 2009 1:06 PM

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups