开发者

How to populate xml doc in div from another div like an iFrame using ajax?

I have a "sidebar" div with links that I would like to link up to some xml files. (with xslt that references three other xml files) I would like the xml to be displayed in the "body" div kinda like an iframe. I cannot find a good solution for this as I am using the browser's native XSL transformation and not "wrapping" the xml up into html. I have been looking into an ajax solution but can only find ajax scripts that populate html or txt files. I have also looked at jquerys .load() solution and mootools XMLRPC but is a little complicatingfor me. I am new with ajax and any help or direction would be greatly appreciated. Here is a link to my last post if you need开发者_如何学C more background info. How to display XSLT in IE 8 and Chrome with javascript and three XML files?


You can use the IE's default stylesheet: DEFAULTSS.xsl

However, in the later versions of IE it cannot be readily downloaded as in the previous versions (res://msxml.dll/DEFAULTSS.xsl), so you need to find it by search.

As this isn't standard XSLT, I would recommend its adaptations such as the one contained in the XPath Visualizer.


I have found a SOLUTION. I used a server side php script I found on this site - link Then I used this ajax script to load the xml - link It works perfectly. I am very happy. Now I would like to try and use a php scan script to scan the directory and another script to create a new link to my new "populated" xml docs. CHALLENGING - yes we will see. Any info or direction would be appreciated.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜