Copied to clipboard

Flag this post as spam?

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


  • shine 43 posts 83 karma points
    May 15, 2013 @ 12:22
    shine
    0

    how to use of jquery in xslt?

    hello friends

     

    here is my jquery which i want to set in xslt and put my image dynamic path aftre images in the script but i don't have any idea that how can i set it?

    so please any busy have solutions than tell me

    <script type='text/javascript'>
    (function(jQuery) {
        function init() { wSlideshow.render({elementID:"491099086771648837",nav:"numbers",navLocation:"top",captionLocation:"bottom",transition:"fade",autoplay:"0",speed:"5",aspectRatio:"auto",showControls:"true",randomStart:"false",images:[{"url":"\/3111\/3733317_orig.jpg","width":"323","height":"250"},{"url":"\/595\/3889208.jpg","width":"323","height":"250"},{"url":"6\/9\/4\/5\/6945512.jpg","width":326,"height":250}]}) }
    jQuery ? jQuery(init) : document.observe('dom:loaded', init)
    })(window._W && _W.jQuery)

    </script>

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    May 15, 2013 @ 22:35
    Jan Skovgaard
    1

    Hi Shine

    Not sure why you want to mix JavaScript and XSLT? :)

    You should at all costs see if it's possible to avoid this since it creates confusion and mixes code and is a bad practice. And it's almost always possible to avoud this mixing if you think carefully about what it is you're trying to achieve.

    So what is it exactly you're trying to do with the above script?

    Looking forward to hearing from you.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft