Ignore:
Timestamp:
2010-11-08T17:31:20+13:00 (13 years ago)
Author:
sjb48
Message:

Iframe for preview working. Links are modified to use excerptid=gs_content

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/layouts/main.xsl

    r23276 r23298  
    177177
    178178    <xsl:call-template name="xml-to-gui">
    179         <xsl:with-param name="node-set" select="//format[@type='browse']"/>
     179        <xsl:with-param name="node-set" select="//format"/> <!-- [@type='browse']"/>  -->
    180180        <xsl:with-param name="metadataSets" select="//metadataSetList"/>
    181181    </xsl:call-template>
     
    212212        <div class="draggable_gsf_icon css_gsf_icon block" title="gsf:icon"><table class="header"><tbody><tr><td class="header">ICON<select><option value = "document" selected = "document">Document</option><option value = "classifier">Classifier</option><option value = "source">Source</option></select></td><td><a href="#" class="remove ui-icon ui-icon-closethick">[x]</a></td></tr></tbody></table></div>
    213213        <br/>
    214         <div class="draggable_gsf_text css_text" title="text">TEXT</div>
     214        <div class="draggable_gsf_text css_text" title="text"><table class="header"><tbody><tr><td class="header"><input type="text" name="rawtextinput" size="10" value=""/></td><td class="header"><a href="[myhref]" class="ui-icon ui-icon-closethick"/></td></tr></tbody></table></div>
    215215        <div class="draggable_table css_table" title="gsf:table">NEW TABLE</div>
    216216        <div class="draggable_tr css_tr" title="gsf:row">NEW TABLE ROW</div>
     
    239239<!-- *************************************************************************************** -->
    240240<H2>Preview</H2>
    241                     <!-- <iframe name="preview" id="iframe" width="98%" height="300">Your browser does not support iframes</iframe> -->
    242 
    243                     <!-- <xsl:variable name="preview"> -->
     241                    <iframe name="preview" id="iframe" width="98%" height="300">Your browser does not support iframes</iframe>
     242
     243                    <xsl:variable name="preview">
     244                    <!-- <button type="button" onclick="loadXMLDoc()">Change Content</button> -->
    244245                    <div id="gs_content">
    245246                        <!--
     
    250251
    251252                    </div>
    252                     <!-- </xsl:variable> -->
    253 
    254                     <!-- <script type="text/javascript">
     253                    </xsl:variable>
     254
     255                    <script type="text/javascript">
    255256                        preview_html = <xsl:text disable-output-escaping="yes">'</xsl:text><xsl:copy-of select="$preview"/><xsl:text disable-output-escaping="yes">';</xsl:text>
    256                     </script> -->
     257                    </script>
    257258
    258259                    <div id="gs_footer">
Note: See TracChangeset for help on using the changeset viewer.