xsl translation in javascript frame 
Author Message
 xsl translation in javascript frame

Here's my XSL:

<xsl:template match="Description">
  <xsl:choose>
    <xsl:when test="../HelpFile != true()">
      <xsl:value-of select="." />
    </xsl:when>
    <xsl:otherwise>
      <script language="javascript">
        function test(parm)
        {
          parent.test(parm)
        }
      </script>
      <xsl:value-of select="." /><xsl:text> </xsl:text><input value="Info"
type="button" onclick="test('hello')" />
    </xsl:otherwise>
   </xsl:choose>
</xsl:template>

This XSL is being transformed inside of a frame by some html/javascript code

Unfortunately, the test() function seems to "think" it's not within a frame
so parent returns "this" window.

Anyone have any possible solutions for this?

What I'm trying to do is ultimately have the parent window display HTML in a
different frame than what the XSL transformation is taking place in.

Thanks,

Jaz

P.S.

I'd rather use a anchor tag than the button but I can't seem to get that to
work in a different frame.

--

-Jaz


Jazz Guitar Site: http://www.*-*-*.com/



Mon, 21 Jul 2003 02:35:51 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. JavaScript and XML/XSL

2. SOAP Server implemented using XSL/JavaScript

3. translation from vbscript into javascript for compatibiliti with Netscape 4.7

4. Translation from JAVASCRIPT to VBscript - please

5. Translation To JavaScript

6. JavaScript and Cross-Frame scripting and security in MSIE 4.0, Re: How to access frames, via JavaScript : A Faq gets answered here

7. javascript and frames

8. Getting frame width with Javascript

9. javascript vs. netscape/frames

10. Refreshing a page/frame with javascript

11. How to resize a frame in JavaScript

12. calling a JavaScript function from another frame

 

 
Powered by phpBB® Forum Software