locked
Jquery code is run in visual studio 2010 , but still not working in visual studio 2012 RRS feed

  • Question

  • User1749764156 posted

    Hi to all,
    Please find below my code  and solve my problem related to image player. This code working in VS2010 but still not working in VS2012 framework.

    Thanks,

    <script type="text/javascript"> $('#image_player').imagePlayer(); $('#image_player2').imagePlayer({ autoStart: false, stageWidth:600, stageHeight:400, captions: { // starting in frame 1, ideally you'd set a caption per frame 1: "Wind (m/s) - 2012/03/08 00:00", 2: "Wind (m/s) - 2012/03/08 03:00", 3: "Wind (m/s) - 2012/03/08 06:00", 4: "Wind (m/s) - 2012/03/08 09:00", 5: "Wind (m/s) - 2012/03/08 12:00", 6: "Wind (m/s) - 2012/03/08 15:00", 7: "Wind (m/s) - 2012/03/08 18:00", 8: "Wind (m/s) - 2012/03/08 21:00", 9: "Wind (m/s) - 2012/03/09 00:00", 10: "Wind (m/s) - 2012/03/09 03:00", 11: "Wind (m/s) - 2012/03/09 06:00", 12: "Wind (m/s) - 2012/03/09 09:00", 13: "Wind (m/s) - 2012/03/09 12:00", 14: "Wind (m/s) - 2012/03/09 15:00", 15: "Wind (m/s) - 2012/03/09 18:00", 16: "Wind (m/s) - 2012/03/09 21:00", 17: "Wind (m/s) - 2012/03/10 00:00", 18: "Wind (m/s) - 2012/03/10 03:00", 19: "Wind (m/s) - 2012/03/10 06:00", 20: "Wind (m/s) - 2012/03/10 09:00", 21: "Wind (m/s) - 2012/03/10 12:00" }, delay: 1/12 // 12 frames per second }); </script>

    Thursday, May 16, 2019 11:25 AM

All replies

  • User475983607 posted

    Visual Studio is an editor it does for building applications.   You are having trouble converting an application created in 2010 to 2012?  Secondly, "not working" is too vague of a description.   What is not working?

    The code shown runs in the browser not the server.  Press F12 in your browser.  This will open the browser's dev tools.  open the console view and look for JavaScript errors.  

    Thursday, May 16, 2019 12:42 PM
  • User2101710649 posted

    Hi 

     Please check  your application running in Visual Studio 2010 in the file system or IIS. If you running in VS2012 in IIS express some times it then checks file path of jquery reference in the application

     

    Thursday, May 16, 2019 12:42 PM