Copied to clipboard

Flag this post as spam?

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


  • Vincent DeCapite 64 posts 83 karma points
    Oct 29, 2010 @ 19:23
    Vincent DeCapite
    0

    Flash Output XML / Breadcrumb issue

    Hi All,

    I have this XSLT that shows a list of people in a flash swf interactive map. The map is all loaded through XML which is fine. The problem I am having is there is a "printable version" button on the top right that outputs a text document of just the people ina list format.. When people click on this the breadcrumb does not change.. Anyway to do this or output it to a different page?

    Here is the code:

    <?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" xmlns:tagsLib="urn:tagsLib"
     exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets tagsLib ">

    <xsl:output method="html" omit-xml-declaration="yes"/>
    <xsl:param name="currentPage"/>
    <xsl:template match="/">
    <xsl:value-of select="umbraco.library:RegisterJavaScriptFile('SWFObject','http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js')" />

    This is the part right here I am talking about:

    <div style="text-align: right;padding-right:20px;padding-bottom:10px;"><a href="{umbraco.library:Replace(umbraco.library:NiceUrl($currentPage/@id), '.aspx', '/distributorsprint.aspx')}">Printable Version</a></div>
    <div id="distributorsFlash"></div>
    <script type="text/javascript">
    var flashvars = {
     dataFile: '<xsl:value-of select="umbraco.library:Replace(umbraco.library:NiceUrl($currentPage/@id), '.aspx', '/DistributorsXML.aspx')" />'
    };
    var params = {
     wmode: 'transparent',
     quality: 'high',
     allowscriptaccess: 'always'
    };
    var attributes = {};
    swfobject.embedSWF("/elements/flash/GlobalNetwork.swf", "distributorsFlash", "680", "390", "9.0.0","", flashvars, params, attributes);
  • Sean Mooney 131 posts 158 karma points c-trib
    Oct 29, 2010 @ 19:40
    Sean Mooney
    0

    Vince,

    The loading of this is happening via ajax. If you want the bread crumbs to change you will have to chase down the function that is making the ajax call and work some jquery magic

Please Sign in or register to post replies

Write your reply to:

Draft