How to add JQuery in Html gadgets

All replies

  • There's a couple of things that you could change. There are two versions of jQuery being loaded. One should be enough. It is also important that the version of jQuery is compatible with the cycle plug-in. 

    The defer property on the script tags also ensures that the scripts are loaded after the page is loaded. There might be an issue that some of the javascript code is executed before the jQuery library is initialized. You could use the jQuery ready event to call your javascript method.

    $(document).ready(function() {
      // Handler for .ready() called.

    SharePoint Developer | @zeemanj | Blog

    Tuesday, February 14, 2012 10:28 PM
  • The last answer is not working.

    Someone help me.


    Wednesday, August 22, 2012 7:17 PM
  • If in Content editor webpart of SharePoint webpart page. Up coding is OK.

    But in Html Gadget of Public page, Up coding is not working


    Monday, August 27, 2012 6:31 PM
  • Have you tried removing the defer="defer" elements on the script tags?

    SharePoint Developer | @zeemanj | Blog

    Thursday, August 30, 2012 7:59 PM