Copied to clipboard

Flag this post as spam?

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


  • Touhid 97 posts 117 karma points
    Nov 29, 2010 @ 08:31
    Touhid
    0

    javascript problem

    I have a javascrip code, which are as -

    <script type="text/javascript" src="s3Slider.js"></script>
    <script type="text/javascript">
         $(document).ready(function() {
            $('#slider').s3Slider({
                timeOut: 4000
            });
        });
    </script>

    But i dont know how to use in xslt .can any one help me??

    touhid

     

  • Lachlann 344 posts 626 karma points
    Nov 29, 2010 @ 14:58
    Lachlann
    0

    Hi Touhid,

     

    This should work in your XSLT you may need to wrap the code with CDATA though. Just from the code you posted up it seems that the s3Slider.js script is in the root of the site? it might be better to put this in the scripts folder and reference it as /scripts/s3SLider.js

    If it isn't working can you tell more about the error.

     

    L

  • Colin Browne 31 posts 52 karma points
    Nov 29, 2010 @ 16:47
    Colin Browne
    0

    Best way is to simply create a separate js file and then reference that in one of the masterpages/templates that of the page you want the javascript code to appear on.

  • Touhid 97 posts 117 karma points
    Dec 01, 2010 @ 07:05
    Touhid
    0

    thnks. it works.

    touhid

Please Sign in or register to post replies

Write your reply to:

Draft