skunker

Hi,

 

I'm a complete newbee to the gadget stuff, and I've a short (and stupid) question:

Can I use a XML with a simple XSL-Stylesheet instead a HTML as the main-file( ), or do I have to use the DOM Stuff to display and work with XML in  Gadgets

(so: Is the IE XSLT-Processor accessable from Gadets )

Thanks for help :)

 

Best Regards,

Skunker

[edit:update]

It is working with an iframe, but atm i can not open a flyout from the iframe....

 

this is the code ...


<head><title>gadget</title></head>
<style>body{
    width:130;
    height:170;
    font:8 pt Arial;
    color:black;
    }
</style>


<script type="text/javascript">
    function flyout()   {
      System.Gadget.Flyout.file = "about.html";
      System.Gadget.Flyout.show = true;
   }
</script>


<body>
<iframe src="sidebar.xml" width="130" height="170" frameborder="0" scrolling="no">

</body>
</html>

In the iframe should the function flyout() be used. I have no ideas how .. 

Got it: top.flyout()



Re: Sidebar Gadget Development XSLT-Processor?

Andy E

You can use javascript to process the XSL. Use XMLHttpRequest() to create two xml objects, one for your XML, and one for the XSL. Then use xmlObject.transformNode(xslObject).

Andy