Saran Jawaban How to add JQuery in Html gadgets

  • Tuesday, February 14, 2012 2:03 PM
     
     

    I try add Html Gadget by:

    but:

    How to fix it


    Dennis

All Replies

  • Tuesday, February 14, 2012 10:28 PM
     
     Proposed Has Code

    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.
    });

    http://api.jquery.com/ready/


    SharePoint Developer | @zeemanj | Blog

  • Wednesday, August 22, 2012 7:17 PM
     
     

    The last answer is not working.

    Someone help me.


    Dennis

  • Monday, August 27, 2012 6:31 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


    Dennis

  • Thursday, August 30, 2012 7:59 PM
     
     
    Have you tried removing the defer="defer" elements on the script tags?

    SharePoint Developer | @zeemanj | Blog