Project

General

Profile

« Previous | Next » 

Revision 3738

include the contextURL parameter that is now being passed in by the DBTransform class.
pass this value to the javascript that assembles the iframes

View differences:

lib/style/common/resultset.xsl
35 35
  <xsl:param name="sessid"/>
36 36
  <xsl:param name="qformat">default</xsl:param>
37 37
  <xsl:param name="enableediting">false</xsl:param>
38
  	<xsl:param name="contextURL"/>
38 39
  <xsl:template match="/">
39 40
   <html>
40 41
      <head>
41 42
        <link rel="stylesheet" type="text/css" 
42
              href="./style/skins/{$qformat}/{$qformat}.css" />
43
              href="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" />
43 44
        <script language="Javascript" type="text/JavaScript"
44
                src="./style/skins/{$qformat}/{$qformat}.js" />
45
                src="{$contextURL}/style/skins/{$qformat}/{$qformat}.js" />
45 46
        <script language="Javascript" type="text/JavaScript"
46
                src="./style/common/branding.js" />
47
                src="{$contextURL}/style/common/branding.js" />
47 48
        <script language="JavaScript">
48 49
          <![CDATA[
49 50
          function submitform(action,form_ref) {
......
59 60

  
60 61
      <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
61 62
      <script language="JavaScript">
62
          insertTemplateOpening();
63
          insertSearchBox();
63
      	<![CDATA[
64
          insertTemplateOpening("]]><xsl:value-of select="$contextURL" /><![CDATA[");
65
          insertSearchBox("]]><xsl:value-of select="$contextURL" /><![CDATA[");
66
         ]]>
64 67
      </script>
65 68
      <xsl:call-template name="resultstable"/>
66 69
      <script language="JavaScript">
67
          insertTemplateClosing();
70
      	<![CDATA[
71
          insertTemplateClosing("]]><xsl:value-of select="$contextURL" /><![CDATA[");
72
         ]]>
68 73
      </script>
69 74
    </body>
70 75
    </html>

Also available in: Unified diff