PDA

View Full Version : Loading XML data into tab



jaforom
17 Sep 2009, 6:04 AM
I have three tabs. In last one I do:


tabs.getItem(id).load(url)where url is a XML file that contains the line


<?xml-stylesheet type="text/xsl" href="leyenda.xsl"?>so leyenda.xsl renders using data inside XML file and the output "must" be HTML.

But the output is not HTML, I only view the images's URLs (the XSL is a legend of a cartographic layer, with one image and a text description for every graphic item), one per line.

Is not TabPanel capable to load XML/XSL content?

aconran
17 Sep 2009, 6:35 AM
Hrm, this would require you to do the transform on the client. This is certainly possible http://www.w3schools.com/xsl/xsl_client.asp

Although I'd probably recommend that you take a look at Doug Henderick's Managed IFrame User extension here on the forum and loading the document in an iframe.

jaforom
17 Sep 2009, 10:37 PM
Thanks for your response (and sorry by my english...). Before using load() method, I was using an iframe, but I didn't can make the scroll bars visible (if the content of the iframe does overflow it). I'll try it again.

jaforom
18 Sep 2009, 12:22 AM
A question: how can I enable scrollbars inside iframe? I set scrolling attribute to "yes", but the iframe doesn't show scrollbars.