|
Ok, I found a way to kick off a function within an xml document. It just goes like this:
<script type="text/javascript" src="/mylibrary.js"></script>
<script type="text/javascript">
//<![CDATA[
myFunction();
//]]>
</script>
Now I just need myFunction to be able to grab the whole contents of the frame it is on. I thought I could just do a document.body.innerHTML but I have discovered that innerHTML does not work with an XML document (doh!). I've been trying to find the JavaScript command that will give me what I'm after, but I'm not having any luck right now.
Thanks in advance,
Darren
|