Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: Issue with passing product id in parameter

  1. #1
    medsupply is offline Senior Member
    Join Date
    Jul 2011
    Posts
    99

    Default Issue with passing product id in parameter

    I am having issues passing the funtion that dynamically generates the product id number below:

    <object data="http://api.treepodia.com/video/treepodia_player.swf" type="application/x-shockwave-flash" width="400px" height="300px" title="product video player">
    <param name="src" value="http://api.treepodia.com/video/treepodia_player.swf"/>
    <param name="flashvars" value="video=http://api.treepodia.com/video/get/UA-ONLINEMEDSUPP/<xsl:value-of select="ProductID" disable-output-escaping="no" />&amp;auto-play=false&amp;backcolor=0x000000&amp;frontcolor=0 xCCCCCC&amp;lightcolor=0x557722&amp;allowfullscree n=false&amp;ShowLogo=1&amp;play_on_click=true"/>
    </object>


    If I pass it anywhere else, it works but not in that location. How can I format <xsl:value-of select="ProductID" disable-output-escaping="no" /> so it passes as just the product id number?

  2. #2
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    Have you tried this :-

    Code:
    <object data="http://api.treepodia.com/video/treepodia_player.swf" type="application/x-shockwave-flash" width="400px" height="300px" title="product video player">
    <param name="src" value="http://api.treepodia.com/video/treepodia_player.swf"/>	
    <param name="flashvars" value="video=http://api.treepodia.com/video/get/UA-ONLINEMEDSUPP/{ProductID}&amp;auto-play=false&amp;backcolor=0x000000&amp;frontcolor=0 xCCCCCC&amp;lightcolor=0x557722&amp;allowfullscree n=false&amp;ShowLogo=1&amp;play_on_click=true"/>
    </object>

  3. #3
    medsupply is offline Senior Member
    Join Date
    Jul 2011
    Posts
    99

    Default

    Awesome, it fixed it! I did not know you could pass it that way. Can the same be done with the Product SKU?

  4. #4
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    You tell me...


    TTFN

    BFG