Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Keith R Hubbard 175 posts 403 karma points
    Jan 18, 2010 @ 02:22
    Keith R Hubbard
    0

    Jquery Innerfade and Umbraco

    • Umbraco Version: umbraco v 4.0.2.1 (Assembly version: 1.0.3441.17657)
    • asp.net version 2.0 - 3.5
    • Windows and iis version 2003 svr iis6.0
    • Stacktrace

    I am having trouble getting jquery innerfade to pull the class .innerfade.  I am getting to the UL ID in the xslt but then it stops. 

     

    XSLT

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet
        version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:msxml="urn:schemas-microsoft-com:xslt"
        xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"
        exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">


    <xsl:output method="xml" omit-xml-declaration="yes"/>

    <xsl:param name="currentPage"/>
    <xsl:variable name="MediaRootId" select="$currentPage/data [@alias = 'MediaRoot']"/>
    <xsl:template match="/">

    <!-- start writing XSLT -->

    <xsl:if test="$MediaRootId != '' ">
            <!-- just added as cast-workaround -->
    <ul id="portfolio">
            <xsl:for-each select="umbraco.library:GetMedia($MediaRootId, 'false')/node">

                    <li>
                        <xsl:if test="@nodeTypeAlias='Image'">
                          <xsl:element name="img">
                            <xsl:attribute name="src">
                              <xsl:value-of select="data [@alias = 'umbracoFile']"/>
                            </xsl:attribute>
                          </xsl:element>
                         
                         
                        
                        </xsl:if>
                  </li>

                <!-- Add other <td> entries here to display further info -->

            </xsl:for-each>
    </ul>
          </xsl:if>
    </xsl:template>

    </xsl:stylesheet>

    The images are listing down the page

    you can see the site at http://altavistaymce.org on the home page

     

  • Keith R Hubbard 175 posts 403 karma points
    Jan 18, 2010 @ 02:23
  • Sebastiaan Janssen 5061 posts 15544 karma points MVP admin hq
    Jan 18, 2010 @ 09:34
    Sebastiaan Janssen
    0

    I'm sorry, but I don't understand what the code snippet has to do with your issue. Also the link you've provided doesn't seem to work.

    Umbraco doesn't interfere with you HTML/CSS/JavaScript, so the problem you're having is most likely that there's something wrong with the select you're doing in jQuery. 

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies